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 2008 Forums
 Transact-SQL (2008)
 Multiple tables join

Author  Topic 

learntsql

524 Posts

Posted - 2011-08-01 : 07:27:07
Hi All,

I am joing three CTEs
each cte has 3 columns out of two have common values
when i am joing these are replicating and getting wrong output.
what is suggested way of writing query.
TIA.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-08-01 : 07:44:10
it will be very much easier for any of us to help you if you can post the table DDL, sample data, the query and the expected result.


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

learntsql

524 Posts

Posted - 2011-08-01 : 08:01:34
Thanks khtan,

I managed it.
its working.
ThankQ.
Go to Top of Page
   

- Advertisement -