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
 General SQL Server Forums
 New to SQL Server Programming
 i cannot select by where and group in other select

Author  Topic 

niyaz4872
Starting Member

41 Posts

Posted - 2012-08-01 : 04:59:23
SELECT (SELECT sum(RecordMoney) FROM vw_PayS_PersonInvoice WHERE (Company_ID='04') ) as test and group by SAL_FactorHdr.FactorHdr_ID )
FROM COM_Company INNER JOIN
**RIGHT OUTER JOIN
vw_PayS_PersonInvoice ON SAL_FactorHdr.FactorHdr_Ctm_ID = vw_PayS_PersonInvoice.Tafzili_ID
WHERE (SAL_FactorHdr.FactorHdr_Com_ID = '04')group by SAL_FactorHdr.FactorHdr_ID )

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2012-08-01 : 05:29:57
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=177363

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=177360

Duplicate.
Go to Top of Page
   

- Advertisement -