



版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、心之所向,所向披靡管理员视图的ER 模型如下:PublisherPublish_id1.* Write1.*1.1Author1.*Publish1.* Promote0.*Author_idBookISBN1.*1.1In 0.*1.*Belongto1.11.*OrderCategoryContain Order_numCategory_idber0.*Has1.1Customer0.1Has 1.*Customer_idPromotionPromotion_idLineItem1.*Ship0.1ShipmentTracking_number( 1)标识实体及有关的属性、属性域和主键如下
2、:Book Entity (Strong)- Title (single valued, simple string)- ISBN (single valued, simple alphanumeric string), pk- Edition (single valued, simple numeric)- Date of Publication (single valued, composite concatenation ofcharacters and numbers)- Price (single valued, simple floating point number)- Book
3、 Description (single valued, simple string) Author Entity (Strong)- Author Name- Author_id, pk- Publisher id (single value, simple numeric), pk- Publisher Name (single valued, simple string)- Address (single valued, simple string)- together the publisher name and address could make an alternate key
4、because no to publishers can have the same name and address- Customer_id (single valued, simple string), pk- Name (multivalued, one value for first, middle and last name, simple string)- Mailing Address (single valued, simple string)- Credit Card Number and Expiration Date (single value, simple nume
5、ric sequence), alternate key- Phone Number (single value, simple alphanumeric string)- Email Address (single valued, simple alphanumeric string) Shipment (strong)- Date of Shipment ( single valued, composite of strings and numbers)- Tracking Number (single valued, simple alphanumeric string), pk- Da
6、te of Expected Delivery (single valued, compoite of strings and numbers)- Order Number (single valued, simple number), pk- MailingAddress (single value, simple string)- Method of Shipment (single value, simple string)- Date and Time of Order (when the order was placed)- Total Price of the Order (mul
7、tivalue, composite) Promotion (strong entity type )- Promotion id number, pk- Percentage Discount Points (single value, simple float)- Duration of Promotion (start date and end date) (multivalued, composite attributes like the dates above)- Total price for each book that is ordered (single value, tw
8、o place precision float)- Quantity of each item ordered Category (strong entity)- Category ID (single value, simple numeric), pk- Category Name (single value, simple string)( 2)标识关系及其参与实体的作用、基数和多样性如下:- Book_Author(AuthorWrite Book)Roles: Book fulfills book role and author fulfills author roleCardina
9、lity: M:N, many books have many authorsParticipation: Book and Author are both total- Book_category(BookBelongTo Category)Roles: book fulfills the book role and categoryfulfills the category roleCardinality: M:N, one book can belong to many categories,one category cancontain many booksParticipation:
10、 book is total, it must belong to some category,category is partial, a category can exist withoutany books in it.- Publisher_Book (PublisherPublishBook)Roles: Book fulfills book or product role, Publisher fulfillspublisher or producer roleCardinality: 1:N, 1 publisher publishes many booksParticipati
11、on: Publisher and book are total- Customer_Order (CustomerHas Order)Roles: Customer fulfills buyer role and order fulfillsbought product roleCardinality: 1:N, 1 customer can have many ordersParticipation: Customer is partial and order is total- Book_Promotion (PromotionPromote Book)Roles: Book fulfi
12、lls book or product role, Promotionfulfills sale roleCardinality: M:N, many books can have many promotions, that isbooks can be part of more than 1 sale and eachsale can have many booksParticipation: Book is partial and promotion is total- LineItem_Order (OrderContain LineItem)- Roles : line item fu
13、lfills the line item (one item per line in an order) and the order fulfills the order role.- Cardinality: 1:N, one order contains many line items- Participation: Both line item and order are total- LineItem_Book (BookIn LineItem)-Roles:Book fulfillsthe book role,lineitem fulfillsthe lineitem role- C
14、ardinality: 1:N, one book can be in many line items- Participation: line item is total and book is partial- Shipment_LineItem- Roles: Partial order fulfills the partial order role andline item fulfills the line item role.- Cardinality: 1:N, one partial order can have many line items- Participation:
15、partial order is total and line item is partial- Isa_Category (CategoryHas Category)Roles: Category fulfills the subclass role and Supercategoryfulfills the superclass role.Cardinality: n:1, a super category can have many subcategoriesParticipation: Supercategory is total, there must be a supercator
16、y foreach subcategory, but supcategory is partial, not everysupercategory must have a subcategory to exist.the database application lifecycle-ER ModelsCreate the complete ER schema for your E-Commercedatabase from theE-CommerceProjectDescriptionin the Appendix.Note that the specification is from a u
17、ser's point of view, and hence does not tell you all of the keys (primary and alternate),all of the relationships, and the arity of relationships, etc. You should identify them.Make reasonable assumptions to complete the specification. Explicitly state all your assumptions. EVERY construct in yo
18、ur ER schema should be substantiated by either the specification above or your explicit assumptions.Make sure you identify all of the following:?The entity types (identify weak entities).Theattributesineachentitytype(identifyitassingle-valued/multi-valued, derived, simple/composite,etc).Leavetheattr
19、ibutesoutofthediagram.Instead,list each entity in a textual form, and beneath each one, list its attributes.The relationship types (identify the roles, the cardinality constraints, and participation constraints).Use the ER diagramming notations to draw your schema. Turnin your ER schema in a file na
20、medER.gif, and the attribute listin a text file namedER.txtAppendix C. E-Commerce Project Description? Datao Book Titleo Publisher o Customer o Ordero Fulfilled Order o Promotion? Taskso Accessing Books o Queryingo Browsingo Purchasingo Checking Order StatusIn this course, you will design and implem
21、ent the following project. Exercises in this course will ask you to build various components of the project. Towards the end of the course, all the pieces have to be combined to complete the project.DataThe system should capture information about books and customers and customer orders.Book TitleThe
22、 system will contain the following information about each book title:? Author? Title?ISBN? Publisher? Edition? Date of Publication? Price? Book Description? Categories (the various categories to which the book belongs)The book category is essentially a hierarchy: a category can have subcategories, e
23、ach of which can have further subcategories. A category can have a number of books listed under it.PublisherThe following information about the publisher should also be captured:? Publisher Name? AddressCustomerFor each customer, the system should record the following information:?Name (first name,
24、middle initial, and last name)? Mailing Address? Credit Card Number and Expiration Date? Phone Number (optional)? Email AddressOrderFor each order, the system should capture the following information:? Order Number? Customer? Mailing Address? Credit Card (to pay for the order)? Method of Shipment (n
25、ext day delivery, regular post)? Shipping Date (date the order will be shipped)? Date and Time of Order (when the order was placed)? Price of the Order which includes:o ISBN and Price of each Book Title (list price andpurchase price after discount)o Quantity Purchased (for each book title bought)o S
26、hipping Costo TaxFulfilled OrderWhen a title is not in stock, an order can be shipped in multiple shipments. Assume that a title is shipped for an order only when there are enough book copies of that title in stock. Assume that a shipment cannot combine books from different orders. For each shipment
27、, the system should keep track of the following information.? Order Number? Date of Shipment? Tracking Number (this could be the number assigned by the delivery agency)? Date of Expected Delivery? Titles Shipped and their QuantityPromotionPeriodically, the e-store will run promotions on a list of bo
28、oks.The promotions will consist of the following data:? Books being Promoted? Percentage Discount Points? Duration of Promotion (start date and end date)TasksIn the description of tasks below, there are hyperlinks to screen snapshots of a sample implementation of the E-Commerce system.Accessing Book
29、sBooks can be accessed by doing one of the following:?Queryingfor the attributesof a book (For example, a usermay want to find the books written by the author "John Doe" where the title contains the substring "database fundamentals". The system you build should support this funct
30、ionality.)? Browsing through the book categories? Looking at the list of the top 10 books sold for the last monthTo browse or query the books, users do not have to enter any user information. User information is only collected when the user is ready to buy.Whenever a book is displayed, a checkbox or
31、 some such item will also be displayed next to the book to add the book to the customer's shopping cart.QueryingThe typical querying process is as follows:1. The user queries the system (for the author's name or the book's title, or some other book attribute).2. The system displays the r
32、esults 10 (books) to a page. Only the title, author, publisher, and price are shown.3. For results exceeding 10 books, links at the bottom of the page should display a "Next" and "Previous" button to goto the next or previous 10 books, respectively.4.Whenthe user clickson a parti
33、cularbookname,allinformation about the bookis displayed.BrowsingThe typical process for browsing is as follows:? At the beginning, there is a drop-down list box of top-level categories. The user chooses one of these categories.? The system displays the first 10 books in this category (with a next/pr
34、evious button to display more books), and all thesubcategories within this category. For each book that is displayed, only the title, author, publisher, and price are shown.? The user can traverse through the books or the categories.?When the user clicks on a particular book name, all information about the book is displayed.PurchasingThe typica
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 共同所有房屋协议书范本
- 2025年云安全服务项目发展计划
- 二零二五年房产互换与绿色建筑认证协议
- 2025版高端房产劳动合同范本汇编
- 2025版新能源项目担保合同标准范本
- 心理健康课件下载网站
- 2025版企业环保排放达标技术服务合同
- 2025年度新型房屋建造垫资服务全面协议合同
- 二零二五版文化娱乐产业版权合作合同字体选用标准
- 二零二五年度车辆挂名责任免除合同范本
- 新能源考试题(含参考答案)
- 乡村社区后备干部考试题及答案
- 2025年医院管理知识考试试题及答案
- 福建省厦门市2025年高一化学第二学期期末调研模拟试题含解析
- DB41∕T 610-2024 高速公路收费人员操作规范
- 风电场应急培训
- 脊髓病变患者护理查房
- 科研绘图培训课件
- 车贷中介服务及贷后管理合作协议
- 【课件】破茧 逐光-2026届新高三启航主题班会:挑战极限成就梦想(含规划指南、学法指导、心理护航)
- 2025至2030中国GPU芯片行业市场发展现状调研及竞争格局与产业运行态势及投资规划深度研究报告
评论
0/150
提交评论