1) Write a query that find the ending inventory (QOH after sales). P_CODE P_DESCRIPT P_QOH SALES ENDING_QOH 2232/QWE B\&D jigsaw, 8-in. blade 6 - 6 23114-AA Sledge hammer, 12 lb. 8 - 8 11QER/31 Power paINTEGERer, 15 psi., 3- nozzle 8 - 8 1558-QW1 Hrd. cloth, 1/2-in., 3x50 23 - 23 14-Q1/L3 9.00-in. pwr. saw blade 18 - 18 SW-23116 2.5-in. wd. screw, 50 237 - 237 PVC23DRT PVC pipe, 3.5- in., 8-ft 188 17 171 13-Q2/P2 7.25-in. pwr. saw blade 32 8 24 54778-2T Rat-tail file, 1/8-in. fine 43 6 37 23109-HB Claw hammer 23 5 18
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
1) Write a query that find the ending inventory (QOH after sales).
P_CODE | P_DESCRIPT | P_QOH | SALES | ENDING_QOH |
2232/QWE | B\&D jigsaw, 8-in. blade | 6 | - | 6 |
23114-AA | Sledge hammer, 12 lb. | 8 | - | 8 |
11QER/31 | Power paINTEGERer, 15 psi., 3- nozzle | 8 | - | 8 |
1558-QW1 | Hrd. cloth, 1/2-in., 3x50 | 23 | - | 23 |
14-Q1/L3 | 9.00-in. pwr. saw blade | 18 | - | 18 |
SW-23116 | 2.5-in. wd. screw, 50 | 237 | - | 237 |
PVC23DRT | PVC pipe, 3.5- in., 8-ft | 188 | 17 | 171 |
13-Q2/P2 | 7.25-in. pwr. saw blade | 32 | 8 | 24 |
54778-2T | Rat-tail file, 1/8-in. fine | 43 | 6 | 37 |
23109-HB | Claw hammer | 23 | 5 | 18 |

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









