SQL Server & Tibco Spotfire Ideas & Samples
SQL, TSQL, Tibco Spotfire...
Jan 28, 2009
select columns from three different tables using join in sqlserver 2005
--Select values from 3 diff tables
---------------------------------
SELECT DISTINCT A.NAICS,B.NAICSS,C.SIC
FROM #NAICS A JOIN NAIC_SIC..NAICS B ON
A.[NAICS]=SUBSTRING(CAST(B.NAICS AS VARCHAR),1,5)
JOIN [LE-NAICS] C ON
A.[NAICS]=C.NAICS
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)