If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Delete & Joins

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-11, 10:16
efghi efghi is offline
Registered User
 
Join Date: Aug 2011
Posts: 3
Delete & Joins

I am having trouble getting this to run... can anyone help me out?
I get this error: ORA-00933: SQL command not properly ended
and points to the INNER word in red below

delete from table1 a
inner join table2 s
on a.ponbr = s.ponbr
inner join table3 h
on a.ponbr = h.ponbr
inner join table4 n
on a.ponbr = n.ponbr
where a.revnbr < h.revnbr
or (a.revnbr = h.revnbr
and a.date < n.date
and (a.itemnbr = n.itemnbr and a.name = n.name));


Any ideas??
Reply With Quote
  #2 (permalink)  
Old 08-25-11, 10:33
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
it appears your version of Oracle does not ANSI syntax so convert SQL to non-ANSI syntax
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 08-25-11, 10:44
efghi efghi is offline
Registered User
 
Join Date: Aug 2011
Posts: 3
?

Quote:
Originally Posted by anacedent View Post
it appears your version of Oracle does not ANSI syntax so convert SQL to non-ANSI syntax
Doesn't 10g support Ansi sytax? That is the database version that is currently being used.
Reply With Quote
  #4 (permalink)  
Old 08-25-11, 10:47
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>Doesn't 10g support Ansi sytax?
In theory V10 is supposed to support ANSI syntax.
In reality the error indicates otherwise; at least for DELETE.
You are free to submit Service Request to MOS, for official resolution.
In the mean time, if you desire to proceed, I suggest you work around the error as best you can
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #5 (permalink)  
Old 08-25-11, 10:51
efghi efghi is offline
Registered User
 
Join Date: Aug 2011
Posts: 3
Re: ?

Ok thank you!
Reply With Quote
Reply

Tags
delete, error, join

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On