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
mohammad qasimPosted May 5, 2014, 4:09 AM
Ranjit PowarPosted May 4, 2014, 1:01 PM
from employee inner join
dept on employee.deptsno =dept.sno