Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following tables in a relational database. Provide the appropriate SELECT SQL statement necessary to answer the queries that follow. Primary keys are underlined
- Consider the following tables in a relational database. Provide the appropriate "SELECT" SQL statement necessary to answer the queries that follow. Primary keys are underlined and foreign key fields have an asterisk at the end of the field.
CUSTOMERS (CUST-NO, C-NAME, C-ADDRESS, BALANCE)
SALESPERSONS (SP-NO, S-NAME, DATE-EMPLOYED, SALARY)
SALES (INVOICE-NO, DATE, CUST-NO*, SP-NO*)
a) List the salesperson name and salary for all sales to customers whose balance outstanding is greater than 20000.
b) List the names and addresses of all customers who have been sold merchandise by salespersons employed before 1/1/96.
- Find all violations of entity and referential integrities.
- Accounting Information Systems
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started