Advertisement
regzarr

Untitled

Mar 14th, 2023
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. SELECT s.nume, c.titlu, sa.nr_locuri
  2. FROM Student S
  3. INNER JOIN contract con ON s.sid=con.sid
  4. INNER JOIN curs c ON con.cid = c.cid
  5. INNER JOIN sala sa ON c.sala = sa.cods
  6. WHERE sa.nr_locuri <200
  7. ORDER BY extract(YEAR FROM s.datan),s.nume
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement