Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Join Table

Status
Not open for further replies.

171171

Programmer
May 13, 2003
16
ID
Hai,
I Have Problem in Select Statment .

Syntax:

SELECT bbm.cnobbm,ts.cnoretur,pay.ckdpay
FROM IcTrBBMHD bbm
INNER JOIN
dbo.aptrreturdt ts ON
ts.id_bbm = bbm.id
INNER JOIN
dbo.aptrpaydt pay ON
pay.id_bbm = bbm.id
order by ts.cnoretur,pay.ckdpay

OUTPUT :

cnobbm cnoretur ckdpay
---------- ------------ ----------
0000000374 0000000005 0000000011
0000000374 0000000005 0000000012
0000000374 0000000006 0000000011
0000000374 0000000006 0000000012

(4 row(s) affected)

I want Output Like This

cnobbm cnoretur ckdpay
---------- ------------ ----------
0000000374 0000000005 0000000011
0000000374 0000000006 0000000012

Please Any Body Help . Please


Thank's



 
Would just using a SELECT DISINCT on one of the last 2 fields work for you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top