Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
If i have to get the statuses from four different tables but want to get first table disabled , second table active and also have statuses field from the 3rd and 4th table how would i do that?ALM,PV,AD,ACEselect * from all tblswhere alm.id = pv.idand alm status = 'disabled'and pv status = 'active'I want to include the status field from 3rd and 4th table.THanks
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2008-04-11 : 12:02:33
Post your table structures and sample data if you want accurate solution. But something like this should do it for you:-