Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SQL Delete Join Statement
PostPosted: October 18th, 2007, 4:02 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
Hello,

Having problems using SQL delete statement to delete using Join.

The SQL Select Statement works:

Two tables Rec & Groups

Code:
SELECT Rec.Name, Groups.GroupName FROM Rec, Groups WHERE Rec.UserGroup = Groups.ID AND Groups.GroupName = 'MyGroup';


This works great and return the names from Rec who's UserGroup equals the GroupID from table Groups. My problem is deleting this. I have tried delete methods found at:

http://www.java2s.com/Code/SQL/Join/Delete-From-Join.htm
http://www.elevatesoft.com/dbisam4d5_delete_statement.htm


But I keep getting an SQL error in Opus:
Quote:
Specify the table containing the records you want to delete.


Any suggestions?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group