Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 SQL QUERY ISSUE 34

Author  Topic 

vipin_jha123
Starting Member

31 Posts

Posted - 2011-04-23 : 02:48:35
Dear All,

I awant to take below given data in select ststement
column 1=IF Count(AAS.acct_poa_as_rec_type ='J') >0 then "Y" else "N"
column 2=CMG.cust_name = Can be fetched by GAM.cust_id=AAS.cust_id AND AAS.acct_poa_as_rec_type='J'
column=3=CMG.cust_name = Can be fetched by GAM.cust_id=AAS.cust_id AND AAS.acct_poa_as_rec_type='J'
on the basis of given join condition
GAM.acid = AAS.acid
GAM.bank_id = AAS.bank_id
GAM.cif_id = CMG.cif_id
GAM.bank_id = CMG.bank_id


pl;ease do the needful help

thanks in advance

regards,
Vipin jha
   

- Advertisement -