Question

Find customers who purchased ’Gruntmaster 6000’ and also ’Gruntmaster 9000’. (a) select * from customer where purchased in (’Gruntmaster 6000’, ’Gruntmaster 9000’) (b) select * from customer inner joi...

Find customers who purchased ’Gruntmaster 6000’ and also ’Gruntmaster 9000’.

(a) select * from customer where purchased in (’Gruntmaster 6000’, ’Gruntmaster 9000’)

(b) select * from customer inner join purchaseitem on custid and description in (’Gruntmaster 6000’, ’Gruntmaster 9000’)

(c) select custid from purchase where description in (’Gruntmaster 6000’, ’Gruntmaster 9000’) 4

(d) select custid from purchase a inner join purchaseitem inner join purchase b inner join purchaseitem where a.description=’Gruntmaster 6000’ and b.description=’Gruntmaster 9000’

(e) Other:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans: E - other

A. is not correct because IN act like OR. it will pull data if one purchase 6000 or 9000.

B is incorrect syntax is incorrect.

C is incorrect because IN condition

D is incorrect because syntax error for inner join

Ans:

select * from customer where purchased = 'Gruntmaster 6000’ and purchased =’Gruntmaster 9000’;

Add a comment
Know the answer?
Add Answer to:
Find customers who purchased ’Gruntmaster 6000’ and also ’Gruntmaster 9000’. (a) select * from customer where purchased in (’Gruntmaster 6000’, ’Gruntmaster 9000’) (b) select * from customer inner joi...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • SECTION B: SQL Data Manipulation Language 1. The following are parts of tables from customer sales...

    SECTION B: SQL Data Manipulation Language 1. The following are parts of tables from customer sales databases schema at the AWIE Sdn. Bhd. Company SALES CustID Date SaleAmount 2. Jun 2014 100.22 CUSTOMER CustID FirstName LastName DOB Phone 1 July 2014 909.95 어 1 John Smith 2/4/1968 012 222-2222 3 July 2014 522.95 2 Steven Goldfish 4/4/1974 013 455-4545 3 Dec 2014 100.00 3 Paula Brown 5/24/1978 017 323-3232 4 Smith 4 James 20/10/1980 010 323-8888 Dec 2014 555.55 a)...

  • Thirty percent of all customers who enter a department store will make a purchase. Suppose that...

    Thirty percent of all customers who enter a department store will make a purchase. Suppose that 6 customers enter the store and that these customers make independent purchase decisions. a. Find the probability that exactly 5 customers make a purchase b. Find that probability that at least 3 customers make a purchase c. Find the probability that two or fewer customers make a purchase d. Find the probability that at least one customer makes a purchase. e. As the manager...

  • For the below questions, use the following schema definition. customer(custid,lname,fname,street,city,state,zip,dob) device(devid,custid,type) device_onoff(ts,devid,pwr) device_chnl(ts,devid,chnl) schedule(start_ts,end_ts,chnl,showid) This is...

    For the below questions, use the following schema definition. customer(custid,lname,fname,street,city,state,zip,dob) device(devid,custid,type) device_onoff(ts,devid,pwr) device_chnl(ts,devid,chnl) schedule(start_ts,end_ts,chnl,showid) This is a schema for a tv network. Customers own devices (of a certain type; phone is a device, cable-box is a device, etc.), and they can watch channels on those devices. Whenever a device comes online, we get a device onoff event, indicating device power state. Whenever a device channel changes, we get a device chnl event. There is also a schedule object, which tells...

  • Question 19 (1 point) 19. Which statement can help us to find out which phone has...

    Question 19 (1 point) 19. Which statement can help us to find out which phone has never been ordered by customers? a. select Products.ProdName, Orders.Quantity from Products left outer join Orders on Products.ProdID=Orders.ProdID where Orders. Quantity is null; b. select Products.ProdName, Orders.Quantity from Products right outer join Orders on Products ProdID=Orders.ProdID where Orders. Quantity is null: c. select Products ProdName, Orders. Quantity from Products inner join Orders on Products. ProdID=Orders.ProdID where Orders.Quantity is null; d. select Products. ProdName, Orders.Quantity from...

  • You will develop an E-Commerce database used to maintain customers, products and sales information. You are...

    You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...

  • to each incoming customer is assessed. Given the price (and delay) some customers do join in...

    to each incoming customer is assessed. Given the price (and delay) some customers do join in the queue, others walk away. Let us denote by λ(p) < 1 the effective rate of arrivals. The delay in the queue is D(λ(p)) 2A(p). A customer that opts-in has a surplus u-p-D(A(p)) > 0 u where v is the customer willingness to pay. a. Assuming t is uniformly distributed in 0 1 find a closed-form expression for λ(p) (hint: What condition holds true...

  • Can you please write the MySQL Query sentences for the following items below? For example: SELECT...

    Can you please write the MySQL Query sentences for the following items below? For example: SELECT * FROM employees; Generate a list of salespeople sorted descending by hire date. Show the ID, first name, last name, hire date, and salary for each salesperson. Generate a list of customers whose last name begins with the letter “M.” Show the first and last names of these customers. Sort the list of customers descending by last name. C. Generate a list of customers...

  • 1. Data from customer reward cards at a major grocery store chain show that of all...

    1. Data from customer reward cards at a major grocery store chain show that of all customers who purchase Coke in their weekly grocery shopping, 90% will purchase it again the next week while 10% will purchase Pepsi instead. Of all customers who purchase Pepsi one week, 80% will purchase it again the next week and 20% will purchase Coke. Assuming that the probability that any given customer purchases Coke (or Pepsi) in any week depends only on their purchase...

  • Company D collects cash from a customer who purchased consulting services on account 3 weeks ago....

    Company D collects cash from a customer who purchased consulting services on account 3 weeks ago. Which account would Company D increase? A. Cash B. Accounts Payable C. Accounts Receivable D. Revenue

  • Question 1. Sophisticated firms have learned the marketing lesson that: Select one: a. Existing customers do...

    Question 1. Sophisticated firms have learned the marketing lesson that: Select one: a. Existing customers do not usually spend as much as new customers. b. It is a lot easier to find new customers than to keep existing ones. c. Their focus should be on the 4 P's and not the customer. d. It is a lot easier to keep existing customers than to try to find new ones. Question 2 According to the hierarchy of needs, which type of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT