University | Singapore University of Social Science (SUSS) |
Subject | ICT330: Database Management Systems |
Question 3 (35 marks)
(a)
(i) Transform the ERD in Figure Q3(a)(i) into a logical model.
Buy Custom Answer of This Assessment & Raise Your Grades
(ii) Refer to the description of the columns for the column definition, and then write the appropriate SQL statements to implement the tables, derived from the ERD in Figure Q3(a)(i). List your SQL statements in the order that they should be executed.
All columns are required. Description for columns in the tables as follows:
• orderNumber is a whole number starting from 1 with step increment 1 and
is auto-generated.
• orderDateTime is datetime and has the default value the current date and
time.
• runningNumber is a whole number, and starts from 1 with step increment
of 1 for every new order. The auto-generation of runningNumber will be
implemented using a trigger. Simply insert the value as specified in the
given data as you are not expected to code the trigger at this point.
• qty is a whole number greater than 0 with a default value 1.
• mealCode is exactly 3 characters starting with one letter (A-Z) followed by
2 digits (0-9).
• price is a decimal number and is between 20 and 100.
• itemCode is exactly 3 characters starting with two letters (A-Z ) followed
by 1 digit (0-9).
• name is at most 80 character long.
• category is exactly 12 character and takes one of these values: soup,
appetizer, main, dessert, hot beverage.
• period is exactly 6 character and takes one of these values: lunch, dinner.
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Native Singapore Writers Team
- 100% Plagiarism-Free Essay
- Highest Satisfaction Rate
- Free Revision
- On-Time Delivery
Elevate your performance in ICT330 Database Management Systems with the finest support available! As the best Assignment Writing Service in Singapore, we specialize in delivering unparalleled assistance for your coursework needs. Navigate through the intricacies of database management with confidence, backed by our dedicated team. Worried about coursework? Our specialized Coursework Writing Help ensures your assignments exceed expectations.
Looking for Plagiarism free Answers for your college/ university Assignments.
- NUR 3015 Reducing Mental Health Issues Assignment Report: Policy Brief for Community-Based Interventions in Singapore
- DSWSH MC2 Electronic Security Assignment: Protection in Depth Plan for American International School (AIS) Singapore
- 6WBS0035/6 Digital Strategy Presentation Assignment: MNC Innovation Proposal for Global Growth
- PS6004EFA Project Assignment : Individual Research-Based Dissertation on Business and Management Topics
- Principles of Management Assignment 3 Report: Strategic & Ethical Analysis of MNC or SME Company
- Project Management Assignment: 1-Day Corporate Sports Tournament Planning
- Managing Across Cultures Assignment 2: Case Studies on McDonald’s, Fiat & Workplace Stereotypes
- WEB301 Green Plan 2030 TMA Report: Engaging Singapore’s Youth for a Sustainable Future through Online & Offline Communication Strategies
- Serial Position Effect Assignment: Quantitative Psychology Study on Memory Recall
- Corporate Counterintelligence Assignment: Strategies to Protect Internal Data in Asian Business Environments