Informatics Practices

Ms. Manisha, a veterinarian, created a table 'VETERINARY' with the following columns:

ANIMAL_ID, VACCINATION_DATE, ANIMAL, OWNER_NAME

She wants to see the details of all the animals other than Dog and Cat which she has vaccinated.
She has written the following query:

SELECT * FROM VETERINARY WHERE ANIMAL NOT IN ('DOG', 'CAT');

Write a suitable alternate query for producing the same result.

Relational Database

3 Likes

Answer

SELECT * FROM VETERINARY 
WHERE ANIMAL != 'DOG' AND ANIMAL != 'CAT';

Answered By

3 Likes


Related Questions