Question

Homework Assignment #9: Selects On assignment #8 that we started in class and you finished on your own, you created three tab
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. (a)

Insert into Product values ( 844 ,'Bluetooth Stereo Turntable', 'Turntable system to play vinyls',4)

Insert into Product values ( 555,'Keyboard', 'Wireless keyboard',2)

Insert into Product values ( 645,'Printer', 'Thoshiba model 3456',4)

(b) Insert into Stock values( 844,300)

2.

(a) select * from Product

(b) select * from Manufacturer

(b) select * from Stock

3.

(a) select * from Product where ManufacturerID=1

(b) select productID from Stocks where Quantity=300

4

(a) select ProductID from Product where ManufacturerID=4

(b) select ProductName from Product where ManufacturerID=1

5.

(a) select ProductName, ManufacturerID from Product

(b) Select DISINCT ProductName, ManufacturerID from Product

(c) In the result of (a) all the product names and manufacturer ID are obtained with duplicate values, But in result of (b) the duplicates are eliminated, only distinct values are displayed. But in product table the productName attribute has 6 distinct elements and ManufacturerID has 4 distinct elements, this may give some error in the result.

Add a comment
Know the answer?
Add Answer to:
Homework Assignment #9: Selects On assignment #8 that we started in class and you finished on...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Insert the bottom two rows to each table we made in class and update the two...

    Insert the bottom two rows to each table we made in class and update the two in gray in stock and product tables. Provide your SQL code in notepad or word. You can include a screen shot of your select statements showing database populated with your name in ure showing your account Product Product Name Manufacturer 1 102 103 509 Product Product Description Ergonomic keyboard with rest pad HP Model 3456 5x7 inch monitor with stylus Series 5 Pink 32G...

  • Please help we are suppose to explain what the C code does. This is the electronics database (6 pts) This problem is...

    Please help we are suppose to explain what the C code does. This is the electronics database (6 pts) This problem is based on Electronics database. Add some annotations to the following table to explain what the C program is doing in detail. Note that "void" is how C declares a function that does not return anything. You are expected to generalize or research svntaxes not mentioned in the lecture C Program Annotation void newPCproduct EXEC SQL BEGIN DECLARE SECTION;...

  • You will develop an E-Commerce database used to maintain customers, products and sales information. You are...

    You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT