Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write SQL statements with attached database for the following queries. Add a new record to the Supplier table for a supplier whose supplier number is

write SQL statements with attached database for the following queries.

  1. Add a new record to the Supplier table for a supplier whose supplier number is 'S6', Name is 'Peter', and status/location are unknown. 
  2. Get all the detailed info for suppliers whose status is less than 10 
  3. Get a list of all different values in the SNAME column of S table 
  4. Get part numbers and part names for those parts located in 'London' 

Tables (S-SP-P)

S#SNAMESTATUSCITY
S1SMITH20LONDON
S2JONES10PARIS
S3BLAKE30PARIS
S4CLARKE20LONDON
S5ADAMS30ATHENS

Supplier (S)

 

S#P#Qty
S1P1300
S1P2200
S1P3400
S1P4200
S1P5100
S1P6100
S2P1300
S2P2400
S3P2200
S4P2200
S4P4300
S4P5400

SP

 

P#PnameColourWeightCity
P1BOLTblue10London
P2NUTblack5Paris
P3WASHERblack2London
P4NUTred6Athens
P5CAMred8Paris
P6NUTblue5London

Step by Step Solution

3.31 Rating (148 Votes )

There are 3 Steps involved in it

Step: 1

Here are SQL queries for each operation 1 Add a new record to the Supplier table f... 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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

1. Let a, b R, a Answered: 1 week ago

Answered: 1 week ago

Question

When do you use a make-table query?

Answered: 1 week ago

Question

Define functional dependence.

Answered: 1 week ago