TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Smart Lucky
NA
555
639.2k
SQL Query Problem
Oct 24 2014 3:01 PM
Hi dudes
I have query issues i have company table and a coupon table and relation is one to many means company can has many coupons i want just show in query company name with coupon name just one coupon of each company i did query in this way it is showing duplicate data...
SELECT comp.name,c.name FROM company comp LEFT OUTER JOIN coupon c ON c.companyid= comp.id
GROUP BY comp.name,c.name
Reply
Answers (
2
)
SQL structuring
Incorrect Syntax near "as"