You are on page 1of 3

SQLProject InternetBookShop

BACKGROUND

Thisprojectrequiresyoutodevelopadatabasetosupportacompanywhosecustomersliketo browseandpurchasebooksovertheInternet.Thisprojectrequiresyoutodevelopaprototype todemonstratethecapabilitiesanddesignofadatabase.Itisnotrequiredthatyoucreatea webbaseddatabaseatthistime;howeveryoumustbeabletoshowthefunctionalityand performanceofsuchadatabase.


PARTI Requirements

Customersshouldbeabletobrowseacatalogofbooksandplaceorders.Mostcorporate customersprovideaISBNnumberandaquantity;theyoftenpaybycreditcard.Thebooksare preparedforshipmentiftheyareinstock.Iftherearentenoughcopiesinstock,additional copiesareorderedandtheorderisdelayeduntilallbooksarereadyforshipment.Thecatalog includesallthebooksthatareavailableforsale.Theeachbook,thecatalogcontainsitsISBN number,title,author,purchaseprice,salesprice,andtheyearthebookwaspublished.Mostof thecustomersareregularsandshouldtheirnamesandaddressesshouldbeinthedatabase. Newcustomersmustbeenteredintothedatabasesothatanaccountcanbeestablished,before theycanorderabook.Onthewebsite,thecustomersshouldbeabletoenterauseridandlogin passwordbeforetheycanorderabook. Someadditionalinformation: Ifacustomerplacestwoordersforthesamebookinoneday,thefirstorderishandled bycreatinganewOrdersrelationshipandthesecondorderishandledbyupdatingthevalueof thequantityattributeinthisrelationship. Ifacustomerplacestwoordersfordifferentbooksinoneday,eachinstanceofthe Ordersrelationshipsetrelatesthecustomertoadifferentbook.
TASKS

1. DevelopanERdiagramtothatcapturestheentities,theirattributes,andtherelations. 2. DeveloptherelationalmodelthatfromtheERdiagram.

PARTII Additionalrequirements:

1. Itmustbepossibletoorderseveraldifferentbooksinasingleorder. 2. Thecustomermustbeabletodistinguishbetweenseveralordersplacedthe sameday. 3. Employeesshouldbeabletoseecustomerorderinformationwithseeing customersensitivecreditcarddata.


Tasks:

1. CompletethelogicalDBDesign 2. UpdatetheERdiagramandcreatetherelationaltablesthatwiththeappropriate constraints 3. Implementthedatabaseandcreateanyviewsthatarenecessary

PARTIII

Developthequeriesanduserinterfacethatsupportsthefollowingrequirements: 1. Customerssearchbooksbyauthorname,title,orISBN 2. Employeesregisternewcustomersandeditexistingcustomerdata. 3. Customerscheckoutafinalshoppingbaskettocompleteasale. 4. Customersaddanddeletebooksfromashoppingbasket 5. Customerscheckthestatusofanexistingorderandlookatoldorders 6. Employeeslookupcustomercontactinformation 7. Employeesaddnewbookstotheinventory 8. Employeesfulfillorders,andneedtoupdatetheshippingdate 9. Employeesanalyzethedatatofindprofitablecustomersandcustomerslikelytorespond tospecialmarketingcampaigns.

You might also like