Question: 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

1 Expert Approved Answer
Step: 1 Unlock

Here are SQL queries for each operation 1 Add a new record to the Supplier table f... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!