Quote of the Day

Monday, October 19, 2020

SQL basics - Join tables from THENEWBOSTON

 Instruction: Add seller information to the items table. (You need to join two tables by finding the relation between two tables.) 

SELECT customers.id, customers.name, items.name, items.cost

FROM customers, items

WHERE customers.id=seller_id

ORDER BY customers.id


id name name cost
1 Laura KwonChocolate 10
2 Bucky Parker Books 20
3 Noah Burger Pixel 10 30
4 David SmithLaptop 40
5 Teresa JacksonYoga pants 50
6Gary FosterMonitor60

No comments:

Post a Comment