Hello Everyone,
I have two tables almost the same structure
eg: Table1 and Table2 both has the following fields along with couple other field.
Table1/ Table2
--------------
JNo Ono Source ClientId StartDate ......
1 1001 S1 2 01/01/2008 ......
2 1002 S3 2 02/01/2008 ......
3 1003 S11 3 01/02/2005 ......
4 1004 S2 3 01/02/2004 ......
5 1005 S1 3 01/02/2008 ......
I want my query to return the follwoing result.
Output
-------
JNo Ono Source ClientId StartDate
1 1001 S1 2 01/01/2008
4 1004 S2 3 01/02/2004
Its based on the clientID and StartDate, each clients oldest startdate records needs to be retrived .
I am sure it must be a cup of tea, but I am not taht good at SQl.
I would really appreciate for any help.
Thanks.
I have two tables almost the same structure
eg: Table1 and Table2 both has the following fields along with couple other field.
Table1/ Table2
--------------
JNo Ono Source ClientId StartDate ......
1 1001 S1 2 01/01/2008 ......
2 1002 S3 2 02/01/2008 ......
3 1003 S11 3 01/02/2005 ......
4 1004 S2 3 01/02/2004 ......
5 1005 S1 3 01/02/2008 ......
I want my query to return the follwoing result.
Output
-------
JNo Ono Source ClientId StartDate
1 1001 S1 2 01/01/2008
4 1004 S2 3 01/02/2004
Its based on the clientID and StartDate, each clients oldest startdate records needs to be retrived .
I am sure it must be a cup of tea, but I am not taht good at SQl.
I would really appreciate for any help.
Thanks.