Question

In: Computer Science

USE FOLLOWING TABLES TO ANSWER FOLLOWING QUESTIONS: WAREHOUSE (WarehouseID, WarehouseCity, WarehouseState, Manager, SquareFeet) INVENTORY (WarehouseID, SKU,...

USE FOLLOWING TABLES TO ANSWER FOLLOWING QUESTIONS:
WAREHOUSE (WarehouseID, WarehouseCity, WarehouseState, Manager, SquareFeet)

INVENTORY (WarehouseID, SKU, SKU_Description, QuantityOnHand, QuantityOnOrder)

1.Write an SQL statement to show a unique SKU and SKU_Description for all products having an SKU description starting with ‘Half-dome’.

2.Write an SQL statement to show a unique SKU and SKU_Description for all products having a description that includes the word 'Climb'.

3.Write an SQL statement to show a unique SKU and SKU_Description for all products with a ‘d’ in the third position from the left in SKU_Description.

4.Write an SQL statement that uses all of the SQL built-in functions on the QuantityOn Hand column. Include meaningful column names in the result.

HTML EditorKeyboard Shortcuts

5.Write an SQL statement to display the WarehouseID and the sum of QuantityOnHand grouped by WarehouseID. Name the sum TotalItemsOnHand and display the results in descending order of TotalItemsOnHand.

6.Write an SQL statement to show the SKU, SKU_Description, and WarehouseID for all items stored in a warehouse managed by ‘Lucille Smith’. Use a subquery.

7.Write an SQL statement to show the SKU, SKU_Description, and WarehouseID for all items stored in a warehouse managed by ‘Lucille Smith’. Use a join, but do not use JOIN ON syntax.

8.Write an SQL statement to show the SKU, SKU_Description, and WarehouseID for all items stored in a warehouse managed by ‘Lucille Smith’. Use a join using JOIN ON syntax.

9.Write an SQL statement to show the WarehouseID and average QuantityOnHand of all items stored in a warehouse managed by ‘Lucille Smith’. Use a subquery.

10.Write an SQL statement to show the WarehouseID and average QuantityOnHand of all items stored in a warehouse managed by ‘Lucille Smith’. Use a join, but do not use JOIN ON syntax.

11.What are the functions for DBMS?

Solutions

Expert Solution

Databse was not mentioned so i have considered Oracle as database. Please comment if face any issue. Also do upvote if i answered your question. THANKS!!

1.
select distinct SKU, SKU_Description from INVENTORY where SKU_Description like 'Half-dome%';


2.
select distinct SKU, SKU_Description from INVENTORY where SKU_Description like '%Climb%';

3.
select distinct SKU, SKU_Description from INVENTORY where INSTR(SKU_Description, 'd', 1) = 3;

4.
select count(WarehouseID) as column_name, max(WarehouseID) as max_column_name, min(WarehouseID) as min_col_name , avg(WarehouseID) as avg_col_name, sum(WarehouseID) as sum_col_name from INVENTORY;

5.
select WarehouseID, sum(QuantityOnHand) as TotalItemsOnHand from INVENTORY group by WarehouseID order by TotalItemsOnHand desc;

6.
select SKU, SKU_Description, WarehouseID from INVENTORY where WarehouseID in (select WarehouseID from WAREHOUSE where Manager = 'Lucille Smith');

7.
select i.SKU, i.SKU_Description, i.WarehouseID from INVENTORY i, WAREHOUSE w where w.Manager = 'Lucille Smith' and i.WarehouseID = w.WarehouseID;

8.
select i.SKU, i.SKU_Description, i.WarehouseID from INVENTORY i inner join WAREHOUSE w on i.WarehouseID = w.WarehouseID where w.Manager = 'Lucille Smith';

9.
select i.WarehouseID, avg(i.QuantityOnHand) from INVENTORY i where i.WarehouseID in (select WarehouseID from WAREHOUSE where Manager = 'Lucille Smith');

10.
select i.WarehouseID, avg(i.QuantityOnHand) from INVENTORY i , WAREHOUSE w where i.WarehouseID = w.WarehouseID and w.Manager = 'Lucille Smith';

11. There were so many questions so didnt get much time to answer this question is detail.
There are several functions that a DBMS performs to ensure data integrity and consistency of data in the database. The ten functions in the DBMS are: data dictionary management, data storage management, data transformation and presentation, security management, multiuser access control, backup and recovery management, data integrity management, database access languages and application programming interfaces, database communication interfaces, and transaction management.


Related Solutions

Use tables 1 and 2 to answer the following questions, partial credit awarded as merited.
Use tables 1 and 2 to answer the following questions, partial credit awarded as merited. Don't worry about numerical formatting (i.e. $ or %). Table 1. Balance Sheet Dollars Dollars Cash $119,776 Bank Note $10,400 Accounts Receivable $82,796 Emergency Loan $0 Inventory $24,435 Investments $70,000 Current Assets $297,007 Current Liabilities $10,400 Fixed Assets Trucks $187,250 Non-Current Liabilities $391,846 Storage Facilities $286,740 Non-Current Assets $473,990 Total Assets $770,997 Net Worth $368,751 Liabilities and Net Worth $770,997 Table 2. Income Statement Sales...
1. Use the information below to answer the following questions. The following units of an inventory...
1. Use the information below to answer the following questions. The following units of an inventory item were available for sale during the year: Beginning inventory 10 units at $55 First purchase 25 units at $60 Second purchase 30 units at $65 Third purchase 15 units at $70 The firm uses the periodic inventory system. During the year, 60 units of the item were sold. a. Calculate the value of ending inventory using FIFO. b. Calculate the value of ending...
Use the production possibilities tables to answer the following questions. Germany’s Production Possibilities A B C...
Use the production possibilities tables to answer the following questions. Germany’s Production Possibilities A B C D E F Autos (millions) 0 4 8 12 16 20 Chemicals (millions) 40 32 24 16 8 0 United States’ Production Possibilities A B C D E F Autos (millions) 0 3 6 9 12 15 Chemicals (millions) 60 48 36 24 12 0 If Germany and the United States engage in trade, the mutually beneficial terms of trade will be between _____...
Use the following information to answer the remaining questions. An advertising manager is interested in whether...
Use the following information to answer the remaining questions. An advertising manager is interested in whether having a celebrity chef in a commercial for cookware will influence audience’s perceptions of the product. Her thinking is that a celebrity chef may improve the product image, but it may also distract the audience and make them think the product was less useful. It is known from the prior focus groups that the average usefulness of the cookware was 45, and the standard...
Use the following information to answer the remaining questions. An advertising manager is interested in whether...
Use the following information to answer the remaining questions. An advertising manager is interested in whether having a celebrity chef in a commercial for cookware will influence audience’s perceptions of the product. Her thinking is that a celebrity chef may improve the product image, but it may also distract the audience and make them think the product was less useful. It is known from the prior focus groups that the average usefulness of the cookware was 45, and the standard...
Use the following scenario to answer the questions below: A campaign manager for a local politician...
Use the following scenario to answer the questions below: A campaign manager for a local politician is interested in the percentage of Leon County residents who intend to vote in the 2020 elections in November. Residents from each neighborhood in Leon County are randomly sampled. Using simple random sample techniques, larger neighborhoods have a larger number of residents randomly sampled and smaller neighborhoods have a smaller number of residents randomly sampled to get a representative sample. Altogether 434 Leon County...
Multiple Choice (20 marks) Query Questions (use the tables below to answer the 5 query questions...
Multiple Choice Query Questions (use the tables below to answer the 5 query questions below) The Business. A retail company sells electronics items by phone and on its web site. The company records information about each item sold in a table called Sales. A few rows of the Sales table in the database are shown below: Sales table (primary key = SaleID and ItemID) SaleID ItemID CustomerID ItemType SaleDate 101 151 52 4 1/1/2019 101 176 52 1 1/1/2019 102...
Answer the following questions using the steam tables, psychrometric tables, Antoine equation or other appropriate method....
Answer the following questions using the steam tables, psychrometric tables, Antoine equation or other appropriate method. 1. Neon has is kept at a pressure of 1510kPa and a temp of -220°C. What will be the percent error in calculating the volume if it is assumed to be ideal. 2. What is the temp of water in °C when the vapor pressure is 27.3psia?
Use the following information to answer the next three questions. A British money manager observes that...
Use the following information to answer the next three questions. A British money manager observes that the one-year interest rate is 8 percent in the United Kingdom and 10 percent in the US. The current spot exchange rate is $1.05/£. What should be the one year forward rate according to IRP? Assume the UK is the domestic nation. Round intermediate steps to four decimals. £1.0309/$ £.9351/$ £.97/$ £1.0694/$ 5 points QUESTION 3 If the actual forward rate is £.96/$, find...
Use the following information to answer the next three questions. A British money manager observes that...
Use the following information to answer the next three questions. A British money manager observes that the one-year interest rate is 8 percent in the United Kingdom and 10 percent in the US. The current spot exchange rate is $1.05/£. What should be the one year forward rate according to IRP? Assume the UK is the domestic nation. Round intermediate steps to four decimals. £1.0309/$ £.9351/$ £.97/$ £1.0694/$ 5 points QUESTION 3 If the actual forward rate is £.96/$, find...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT