Advertisement
rakoczyn

Bazy 3

Nov 14th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.25 KB | None | 0 0
  1. SELECT Data_wyp,Miasto,Ulica,Numer
  2. FROM wypozyczenie, miejsce
  3. WHERE Data_wyp IS NOT NULL AND wypozyczenie.Miejsce_wyp = miejsce.ID
  4.  
  5.  
  6. SELECT Miasto,Ulica,Numer
  7. FROM miejsce LEFT OUTER JOIN wypozyczenie
  8. ON miejsce.ID = Miejsce_wyp
  9. WHERE Data_wyp IS NULL
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement