Question: Assume that a database has a table named Inventory, with the following columns: a) Write a SELECT statement that will return all of the columns

Assume that a database has a table named Inventory, with the following columns: 

Column Name Product ID QtyOnHand Cost Type CHAR(10) INT DOUBLE

a) Write a SELECT statement that will return all of the columns from every row in table.

b) Write a SELECT statement that will return the ProductID column from every row in table.

c) Write a SELECT statement that will return the ProductID column and the QtyOnHand column from every row in table.

d) Write a SELECT statement that will return the ProductID column only from the rows where Cost is less than 17.00.

e) Write a SELECT statement that will return all of the columns from the rows where ProductID ends with “ZZ”.

Column Name Product ID QtyOnHand Cost Type CHAR(10) INT DOUBLE

Step by Step Solution

3.33 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a A SELECT statement is SELECT FROM Inventory b A SELECT statement is ... 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 Starting Out With Java From Control Structures Questions!