How to retrieve data from two or more tables How to retrieve data from two or mo
ID: 3534392 • Letter: H
Question
How to retrieve data
from two or more tables
Explanation / Answer
1)
Select C.CategoryName, P.ProductName, P.ListPrice FROM Categories C, Products P where C.ProductID=P.ProductID order by 1,2
2)
Select C.FirstName,C.LastName,A.Line1,A.City,A.State,A.ZipCode,'allan.sherwood@yahoo.com' AS Email_Address FROM Customers C, Addresses A where C.CustomerID=A.CustomerID
3)
Select C.FirstName,C.LastName,A.Line1,A.City,A.State,A.ZipCode,'allan.sherwood@yahoo.com' AS Email_Address FROM Customers C, Addresses A where C.CustomerID=A.CustomerID and exists ( Select 1 From Addresses I where I.CustomerID=C.CustomerID and Shipping_Addresses is NOT NULL)
4)
Please provide table schema to get answer
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.