SELECT Customer.Custnum, Customer.Name, Order.Ordernum, Order.Orderdate
FROM Customer, Order WHERE Customer.CustNum = Order.CustNum (+) ; |
CustNum Name Ordernum OrderDate1 Lift Tours 6 2006-02-11
1 Lift Tours 1 2006-03-17 1 Lift Tours 36 2006-05-01 1 Lift Tours 79 2006-06-22 . . . 5 Ace Tennis NULL NULL 7 Xtreme Surf NULL NULL |
SELECT e.firstname, e.lastname, e.deptcode, d.deptname
FROM employee e LEFT OUTER JOIN department d ON e.deptcode = d.deptcode WHERE SUBSTR(e.firstname, 1, 1) = 'J' ORDER BY d.deptcode, e.lastname; |
FirstName LastName DeptCode DeptNameJohn Burton 200 Administration
Jenny Morris 200 Administration Jay Ahern 300 Marketing Justine Smith 400 Sales Jean Brady 600 Development . . . |