0

Fill in the blanks to select item names and names of customers who bought the items.

Fill in the blanks to select item names and names of customers who bought the items. Use custom names to shorten the statement. SELECT ct.name, _______.name FROM customers ________ ct, items AS it WHERE it.seller_id= ________.id; //What is the answer of this three blank spaces. Please reply the answer of this question .

1st Sep 2018, 9:05 AM
Abhishek kumar singh
Abhishek kumar singh - avatar
14 odpowiedzi
+ 4
SELECT ct.name, [[it]].name FROM customers [[AS]] ct, items AS it WHERE it.seller_id= [[ct]].id; I don't think that makes sense unless your customers sell stuff to themselves.
1st Sep 2018, 10:19 AM
Anna
Anna - avatar
+ 3
it as ct
14th Dec 2020, 5:36 PM
Caio Silva
Caio Silva - avatar
+ 1
1) items 2)table 3) ct I'm still learning SQL
1st Sep 2018, 9:40 AM
Sai charan raj
Sai charan raj - avatar
+ 1
But it shows wrong when I checked answer
1st Sep 2018, 9:43 AM
Abhishek kumar singh
Abhishek kumar singh - avatar
+ 1
1) items 2) AS 3) ct
1st Sep 2018, 9:46 AM
Sai charan raj
Sai charan raj - avatar
+ 1
No question is true and it is the practice question in my sql
1st Sep 2018, 10:59 AM
Abhishek kumar singh
Abhishek kumar singh - avatar
0
Mam
1st Sep 2018, 10:59 AM
Abhishek kumar singh
Abhishek kumar singh - avatar
0
The SQL is correct, but it's weird to compare the item's seller id to the customer's id. That implies that the customer (who probably bought something) is the seller.
1st Sep 2018, 12:49 PM
Anna
Anna - avatar
0
Ya mam you are right
1st Sep 2018, 1:41 PM
Abhishek kumar singh
Abhishek kumar singh - avatar
0
Answer is >=.
7th Mar 2020, 1:04 AM
Imanuel Wicaksono
Imanuel Wicaksono - avatar
0
answer is it as ct
26th Jun 2020, 12:21 PM
Seema R. Kuhikar
Seema R. Kuhikar - avatar
0
SELECT ct.name, it .name FROM customers as ct, items AS it WHERE it.seller_id= ct .id;
4th Mar 2021, 7:04 PM
Cesar Aramayo
Cesar Aramayo - avatar
0
it, as, ct
22nd Mar 2021, 7:45 AM
Alauddin Mallick
Alauddin Mallick - avatar
- 3
select from
29th Mar 2019, 11:18 AM
Rofikul Khondakar
Rofikul Khondakar - avatar