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)
 Joining four tables

Author  Topic 

maddyslayer
Yak Posting Veteran

57 Posts

Posted - 2012-03-20 : 10:12:38
I need the query joining four tables. Four tables are Utility, UtilityIndustry, UtilitySubIndustry, UtilityRegStatus.


Columns in Utility are Utilityid and Name
Columns in Utility Industry are Industryid and Utilityid
Columns in UtilitySubIndustry are Industryid, Subindustryid and Regstatusid
Columns in UtilityRegStatus are Regstatusid, Subindustryid and Statustype.

How do i get all the records from the table Utility with Statustype='3'?

X002548
Not Just a Number

15586 Posts

Posted - 2012-03-20 : 10:43:36
Show us what you've attempted so far

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-20 : 15:30:12
how many threads you opened for same question?

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

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -