.

Monday, October 14, 2013

Database

Gino January 26, 2012 Database HW4 7. CREATE TABLE pamper_OWNER( OwnerIDInt non bootless IDENTITY(1,1), epithetChar(50) non NULL, PhoneChar(12) NOT NULL, EmailVarChar(100) NOT NULL UNIQUE, control caress_OWNER_PK principal(a) KEY(OWNERID) ,; 8. CREATE TABLE pamper( PetIDIntNOT NULL, NameChar(50)NOT NULL, TypeChar(25)NOT NULL, BreedChar(25)NOT NULL, DOBText(10)NULL, simplicity darling_PKPRIMARY KEY(PetID), timidity PET_PET_OWNER_FK FOREIGN KEY(PET OWNER) REFERENCES PET_OWNER(OwnerID) ; The DOB is null, because plenty might not do it their pets birthday. 9. CONSTRAINT PET_PET_OWNER_FKFOREIGN KEY(PET_OWNER) REFERENCES PET_OWNER(OwnerID) ON scratch NO ACTION 10. . CONSTRAINT PET_PET_OWNER_FKFOREIGN KEY(PET_OWNER) REFERENCES PET_OWNER(OwnerID) ON wipe out exhibitor 11. CREATE TABLE PET_2( NameChar(50)NOT NULL, TypeChar(25)NOT NULL, BreedChar(25)NOT NULL, DOB Text(10)NULL, CONSTRAINT PET_PET_OWNER_FK FOREIGN KEY(PET OWNER) REFERENCES PET_OWNER(OwnerID) ; 12. Pets is a get out design than Pet_2, because Pet gives for each one pet an ID. 13. dip TABLE PET_OWNER; 14. DROP TABLE PET_OWNER, PET; 15. SELECT PetID, Name, Type, Breed, DOB, OwnerID FROM PET; 16.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
SELECT * FROM PET; 17. SELECTBreed, Type FROM PET; 18. SELECT Breed, Type, DOB FROM PET; WHEREType = Dog 2. Data feces be added to a relation using SQL INSERT ex. INSERT INTO assignment VALUES(10,1,30) The values of actual data can be limite! d using modify ex. UPDATE EMPLOYEE SET Phone = 215-555-1212 You can extirpate rows with DELETE ex. DELETE FROM PROJECT; 3. You would use conditional operators in the Where article when you fate to select, update, or delete a...If you want to get a serious essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment