Based on the three tables and the attributes below, write SQL commands for each question to retrieve
Question:
Based on the three tables and the attributes below, write SQL commands for each question to retrieve the data from the database.
a. What are the foreign keys in the Sales table?
b. How many sales transactions were made in March 2024?
c. Which sales transactions were made by the employee whose ID is “S2038” in the system?
d. List the inventory items with purchase price larger than $6,500.
e. Write a query to find out the dollar amount of each sales transaction.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Accounting Information Systems
ISBN: 9781266370373
4th Edition
Authors: Vernon Richardson, Chengyee Chang, Rod Smith
Question Posted: