Course Hero Logo

Select petname from pet1 minus select petname from

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 46 out of 46 pages.

“SELECT PET_NAME FROM PET1 MINUS SELECTPET_NAME FROM PET2;” must have the sameresults as “SELECT PET_NAME FROM PET2MINUS SELECT PET_NAME FROM PET1;”.This is false.A particular DBMS may not support the MINUSstatement.This is true. The INTERSECT statementmay not be supported by a particularDBMS either.You want the results of the query “SELECTpet_name FROM Pet1 MINUS SELECT pet_nameFROM Pet2;”, but the DBMS that you are using doesnot support the MINUS statement.You could get theresults that you want with this query: “SELECTpet_name FROM Pet1 WHERE pet_name NOT IN(SELECT pet_name FROM Pet2);”.This is true. This is another way to obtainthese results.Page 46 of 46Module 35/14/2015...
End of preview. Want to read all 46 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Farr
Tags
Entity relationship model, entity, primary key, ERDs, primary keys

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture