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
mohammad qasim
NA
408
0
query to extract below result
May 4 2014 5:41 AM
i have 2 tables ( dept and employee )
dept table structure
sno deptname
1 hr
2 finance
3 accounts
employee table structure
empsno (pk ) deptsno( Fk) empname
1 1 a
2 1 b
3 1 c
4 1 d
5 2 e
6 2 fry
7 2 ghy
8 2 abc
9 3 yun
10 3 john
11 3 ppp
12 3 xyz
i want to make query
to show record like this
this should be resuls after query executing
empsno deptsno empname
3 1 c
7 2 ghy
11 3 ppp
Reply
Answers (
2
)
Define table for product
please clear this error.in sql server 2005