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.
| Author |
Topic |
|
kidaduo
Starting Member
45 Posts |
Posted - 2008-06-20 : 09:54:52
|
| Help!I have a query that runs fine with 2 outer joins, but I am using "*=" syntax and this won't work for SQL 2005.I am replacing with 'LEFT OUTER JOIN'... I can get it to work okay for first join, but not when I add the secondAny ideaJosephine |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-06-20 : 10:13:33
|
| Nothing can be advised based on currently provided information. We need to get an idea of how your data is and what you're trying to achieve before giving a solution. So can you please post the involved tables' structures along with some sample data and output you're trying to achieve? |
 |
|
|
kidaduo
Starting Member
45 Posts |
Posted - 2008-06-20 : 10:17:14
|
This is my issues:why this qry is not working in 2005 sql?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_idquote: Originally posted by visakh16 Nothing can be advised based on currently provided information. We need to get an idea of how your data is and what you're trying to achieve before giving a solution. So can you please post the involved tables' structures along with some sample data and output you're trying to achieve?
Josephine |
 |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2008-06-20 : 10:19:38
|
| Try thisSELECT 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 city m left join country ion m.deptno = i.code1left join state son m.uniq_id = s.muniq_idwhere i.cd_type = 'dept' |
 |
|
|
kidaduo
Starting Member
45 Posts |
Posted - 2008-06-20 : 10:38:51
|
Excellent!quote: Originally posted by jimf Try thisSELECT 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 city m left join country ion m.deptno = i.code1left join state son m.uniq_id = s.muniq_idwhere i.cd_type = 'dept'
Josephine |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-06-20 : 18:19:20
|
| http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=105238MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|