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.
queation:why running the follwing qry in sql 2005 is not working?SELECT i.namelong "AMC_FULL_NAME", s.acqdate "FORECLOSURE_ACQ_DT", m.ns_acqdate "DATE_OF_RELEASE", m.ns_conphon "SERVICER_PHONE", 0 "TOTAL_AMT_DELQ"from country i, city m, state swhere m.deptno *= i.code1and i.cd_type = 'dept'and m.uniq_id *= s.muniq_idJosephine
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2008-06-20 : 10:22:47
You need to use ANSI join syntax. like this:-
SELECT i.namelong AS AMC_FULL_NAME, s.acqdate AS FORECLOSURE_ACQ_DT,m.ns_acqdate AS DATE_OF_RELEASE,m.ns_conphon AS SERVICER_PHONE,0 AS TOTAL_AMT_DELQfrom country i LEFT JOIN city mON m.deptno = i.code1LEFT JOIN state sON m.uniq_id = s.muniq_idwhere i.cd_type = 'dept'
jackv
Master Smack Fu Yak Hacker
2179 Posts
Posted - 2008-06-21 : 06:38:56
*= is not supportedJack Vamvas--------------------Search IT jobs from multiple sources- http://www.ITjobfeed.com