Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 4 () Use Entity Relationship Diagram below for a Sales database to answer the following SQL questions CUSTOMER PKC Code VENDOR Cade PK CU

image text in transcribed

Question 4 () Use Entity Relationship Diagram below for a Sales database to answer the following SQL questions CUSTOMER PKC Code VENDOR Cade PK CU UN Van Une Us V Acade Cus Area Code PRODUCT Pode INVOICE ber Cus Code P Descript Pindate P Or Hard PVA P Price P Discount Ktv Code Write the SQL statements for the following scenarios: 120 marks] (1) Write a query to count the number of customers with a customer balance less than $500. (11) Write a query to list all products Product code. Description and V_Code) for which the vendor is Gomex Bros (II) Write a query to list all customers (first name, last name, and phone) whose first name starts with 'O'. Sort the results alphabetically by last name. EXAMINER: GEORGE KODJO ANNI Page 3 of 4 (iv) Create a query to find the customer balance characters Soal of the outstanding balances, minimum, balance for all customers) (which includes the and age () Add a new customer to the customer table (Use your own values) Explain briefly the phases of the Database Development Life Cycle (1) 5 marke

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions