View previous topic :: View next topic
|
Author |
Message |
morfius9 Warnings : 1 New User
Joined: 22 Feb 2006 Posts: 27
|
|
|
|
What will the below query achieve?
Delete from A
Where exists
(Select 'F' from B
where B.date = current date)
WARNING: Do not use 'URGENT' in Title |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi morfius9,
I think it will delete all the row of table A
Corrections r welcome |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Hi,
In order to delete all the rows of table A the exist should have atleast one row selected from table B.If no row is selected ,then there will be no delete.
Correct me if i am wrong.
Regards,
Muthuvel. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Muthuwel.
Thanks for correcting me |
|
Back to top |
|
|
morfius9 Warnings : 1 New User
Joined: 22 Feb 2006 Posts: 27
|
|
|
|
Thanks Guys, I appreciate the help |
|
Back to top |
|
|
|