Top Posters
Since Sunday
d
4
N
3
3
R
3
k
3
o
3
Z
3
j
3
s
3
d
3
J
3
1
3
New Topic  
sophiegiu sophiegiu
wrote...
Posts: 294
Rep: 0 0
5 years ago
Based on the tables below, which of the following commands in ANSI SQL would return only the name of the sales representative and the name of the customer for each customer that has a balance greater than 400?

GENERAL SALES DATABASE:

SALESREP
SalesRepNoRepNameHireDate
654Jones01/02/2005
734Smith02/03/2007
345Chen01/25/2018
434Johnson11/23/2004

CUSTOMER
CustNoCustNameBalanceSalesRepNo
9870Winston500345
8590Gonzales350434
7840Harris800654
4870Miles100345


• SELECT *
FROM SALESREP, CUSTOMER
WHERE Balance > 400;

• SELECT DISTINCT RepName, CustName
FROM SALESREP, CUSTOMER
WHERE Balance > 400;

• SELECT *
FROM SALESREP, CUSTOMER
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo
AND Balance > 400;

• SELECT RepName, CustName
FROM SALESREP, CUSTOMER
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo
AND Balance > 400;
Textbook 
Database Processing: Fundamentals, Design, and Implementation

Database Processing: Fundamentals, Design, and Implementation


Edition: 15th
Authors:
Read 114 times
1 Reply
Replies
Answer verified by a subject expert
dickdick
wrote...
Posts: 172
5 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

sophiegiu Author
wrote...

5 years ago
This calls for a celebration Person Raising Both Hands in Celebration
wrote...

Yesterday
Helped a lot
wrote...

2 hours ago
This helped my grade so much Perfect
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1375 People Browsing
Related Images
  
 724
  
 100
  
 126
Your Opinion
Where do you get your textbooks?
Votes: 447