Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

customer ( customerID , firstName, lastName, city ) supplier ( supplierID , name, street, city, phone, email ) product ( productID , name, unit _

customer(customerID, firstName, lastName, city)
supplier(supplierID, name, street, city, phone, email)
product(productID, name, unit_price, stock, supplierID)
customerorder(customerID, productID, odate, quantity)#Assume all tables have been created except for customerorder. Create the
table customerorder. The data type for customerID and productID is
VARCHAR(5).
Ensure you choose appropriate data types for the other columns, and you
specify the primary key and any foreign keys. [6 marks]
(f) Delete records in the customerorder that dates up to the end of December
2009.[2 marks]
(g) Create a view containing the productID, its name and stock. [3 marks]
(h) Give user john permission to access (read only) the view created in part (g).
You may assume that user john has already been created.

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

8-6 Who poses the biggest security threat: insiders or outsiders?

Answered: 1 week ago