What's the foreign key in NK_Booking, though?Originally Posted by Lucie
There's something bizarre about all this. If animalName is the primary key for NK_Booking and that's part of the condition, why do you need anything else to select a unique tuple? Is animalName part of a compound key? Are your primary keys not unique (if not, that's a serious flaw)?
A literal JOIN isn't possible in an UPDATE query. That's why I used a scalar subquery: it produces the same effect.Therefore I have tried the following code with an inner join.
Mike



Reply With Quote


Bookmarks