View previous topic :: View next topic |
Author |
Message |
rajeev5174 Beginner
Joined: 05 Jun 2007 Posts: 25 Topics: 10
|
Posted: Tue May 29, 2012 11:16 am Post subject: Left Outer Join SQL Query Error |
|
|
Hi,
The below query when i am trying to execute is giving error of -199, please some one let me know where the issue is.
Code: |
SELECT NAT_ID,TERM_DATE,EMPLOY_STAT_CODE FROM TABLE AS
(SELECT NAT_ID,TERM_DATE,EMPLOY_STAT_CODE
FROM PDGBLASC.V3_WIN_ASC_NID_US
WHERE LENGTH(RTRIM(NAT_ID)) < 5
AND STR_CTRY_CODE = 'CA' ) AS TABLE1
LEFT OUTER JOIN ASTE_ID_T ON SUBSTR(DIGITS(ASC_SS_NR),2,8)=
TABLE1.NAT_ID WITH UR;
|
Thanks,
Raj |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue May 29, 2012 11:25 am Post subject: |
|
|
sigh (picked that up from kolusu)
the -199 tells you have a misplaced keyword - what and where.
since you decided to provide only your sql (somewhat unreadable, correctable with code tags)
you are still stuck with solving the problem yourself.
the issue is your not bothering to look up the sql code description and recommended solution.
nothing we can do to help. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Tue May 29, 2012 3:47 pm Post subject: |
|
|
You SELECT . . . . FROM TABLE, but nothing is defined as TABLE . . .
Or my eyes are selectively failing . . . _________________ All the best,
di |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
rajeev5174 Beginner
Joined: 05 Jun 2007 Posts: 25 Topics: 10
|
Posted: Wed May 30, 2012 11:18 am Post subject: |
|
|
Thanks Kolusu for the info the query is corrected.
Thanks,
Raj |
|
Back to top |
|
|
|
|