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.
- ESE1008 Global Environmental Trends Assignment Report: Data Analysis & Climate Insights
- Experimental Research Design Report: 2×2 Study on Factors Affecting Polytechnic Student Well-Being
- 7WBS2012 MBA Executive Career Development Assignment: What Employers Want Analysis & Future Success Action Plan
- Project Planning and Implementation Report Assignment for an Information Management System in a Geotechnical Company
- Corporate Veil Piercing Assignment: Comparative Legal Analysis in UK, Singapore & Delaware Case Study
- CDS1C03 Tableau Data Story Assignment 2: County Health Rankings Case Study for Targeted Health Interventions
- S3419C Active Ageing & Elderly Care Assignment Report: Madam Tan Case Study on Health, Nutrition & Fall Prevention
- S2070C Ageing & Senior Care Assignment: Singapore Case Study on Theories, Policies & Community Resources
- B1059C Counselling & Coaching Skills Assignment: Intake Session Case Study for Reflection & Professional Practice
- CCD2C03 Ethical Hacking Assignment: VAPT Case Study for Artworks Pte Ltd – Temasek Cybersecurity Diploma