Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**Any help is appreciated** Consider the supplier-and-parts database. Write SQL queries to accomplish each of the following tasks. Again, you may check the database schema

image text in transcribed**Any help is appreciated**

Consider the supplier-and-parts database. Write SQL queries to accomplish each of the following tasks. Again, you may check the database schema in the class presentation.

a. List all part information (from the Parts table only) in alphabetical order by Part Name. The Part Name should appear first.

b. Find out how many parts there are of each color. List the color and the part name.

c. Retrieve supplier numbers and names for suppliers with current shipments. Eliminate duplicates.

d. Give read access to the entire database to everyone.

e. Give write access to the supplier table to Susan.

f. Remove Susans access to the supplier table.

g. Require that part colors be restricted to the colors: Red, Blue, and Green.

h. Require that part weight be positive.

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago