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 ghy11 3 ppp

Ranjit PowarRank #553 · 4.4K reputationPosted May 4, 2014, 9:01 AM EDT
from employee inner join
dept on employee.deptsno =dept.sno
mohammad qasimRank #3,405 · 424 reputationPosted May 5, 2014, 12:09 AM EDT