How to simulate DISTINCT clause in SQL SERVER
Hi friends!!
I want to simulate the DISTINCT clause in SQL SERVER 2000 using a single SQL query or nested SQL query. Basically, I have a table containing Campaigns for Prospects(ssProspectCampaign). The "ssProspectCampaign" table contains record like :
Campaign CampaignName ProspectName
ID
----------------------------------------
1 Aviva Frenkel
2 Bahamas Promo AON
2 Bahamas Promo Marsh
3 ASPSalesource AON
4 ICICI Ebix
5 E-Global HSBC
5 E-Global Marsh
6 Auto Ins AON
7 Bajaj Cap Frenkel
8 Worker Comp HDFC
9 Commercial Ins AON
9 Commercial Ins Marsh
10 New York Max Marsh
LifeIns
Now, I want all the campaigns and their names but I want them
to appear only once and I want to do it without the "Distinct" clause....Can somebody help...I'm trying hard on it.
thanks
cheers,
debsoft
__________________
cheers,
debsoft
|