I would be highly obliged if you please help me in making a SQL query.I am stuck into it since morning.My problem is ,
I have 2 tables tbl1 and tbl2.
tbl1 has 2 cols bid(PK) and name (varchar)
tbl2 has 3 cols bid(FK),ename(varchar),edate(datetime)
Code:
data in tbl1 : 1 A
2 B
3 C etc
data in tbl2 : 1 aaa 12/12/2008
1 bbb 11/12/2008
2 ccc 12/12/2008
2 ddd 13/12/2008
3 ttt 14/12/2008
result would be somthing like :
Code:
bid name ename edate TotalData 1 A aaa 12/12/2008 2 2 B ddd 13/12/2008 2 3 C ttt 14/12/2008 1


