Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question. Given the structure of inventory database, answer the following: (9*0.5 + 2*0.25 = 5 points) Salesman SALLEMAND NUMERIC (5) VARCHAR(30) WAR (15 DECIMALES CITY

image text in transcribed
Question. Given the structure of inventory database, answer the following: (9*0.5 + 2*0.25 = 5 points) Salesman SALLEMAND NUMERIC (5) VARCHAR(30) WAR (15 DECIMALES CITY customer CUSTOMER O NUMERIC (5) CUSTNANE VARCHAR(30) CITY VARCHAR(15 () NUMERIC"> SALESMAN ONLARIC (5) COMMISSION orders ORD NO NURRIC (5) PURCHANT DECIMALI ORD DATE DATE CUSTOMERO MERC(5) SALESMANNERCS) 1. Write a SQL statement to create the table orders. 2. Write a SQL statement to display the name of customers and the name of salesmen they dealt with. 3. Write a query which will retrieve all the cities of all customers, without duplicates. 4- Write a SQL statement to display ID and names of customers, who belongs to the city of "Rome

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

Step: 3

blur-text-image

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago