SQL Delete
SQL Delete Example One
Delete From Director_Film_Table
Where Director_Last_Name = "Waters"
and Director_First_Name = "John";
| Sign In |
| to add your own comment |
| Comment by TheMadProfessor Rate this Comment |
No, the SQL executes as written, with or without parenthesis. Since the WHERE clause is written with an AND, both sets of criteria must be true for the deletion to occur. If it had been written with an OR instead, then it would execute as you suggest - all directors with a first name of "John" OR a last name of "Waters" would satisfy the criteria. |
| Comment by archive Rate this Comment |
I'm just starting our in SQL and have picked out what I logically see as a paradox using one of your very helpful examples.
|