loading..
Русский    English
16:03

Exercise #19 (rating) page 4

Solution 3.5.3

Console
Execute
  1. SELECT name
  2. FROM Ships
  3. WHERE launched < 1941
  4. UNION
  5. SELECT ship
  6. FROM Outcomes, Battles
  7. WHERE name = battle AND
  8. DATEPART(YEAR, date) < 1941
  9. UNION
  10. SELECT ship
  11. FROM Outcomes
  12. WHERE ship IN (SELECT class
  13. FROM Ships
  14. WHERE launched < 1941
  15. )
  16. UNION
  17. SELECT name
  18. FROM Ships
  19. WHERE name IN (SELECT class
  20. FROM Ships
  21. WHERE launched < 1941
  22. );

How a lot of interesting things can be taken from this problem, only having changed a year!

However it is not yet all. We suggest you to find the additional ships responding conditions of the problem by yourself. Check yourself up by glancing into T&S.

T&S

To solve the problem on SQL-EX.RU

Bookmark and Share
Pages 1 2 3 4
The book was updated
several days ago
©SQL-EX,2008 [Evolution] [Feedback] [About] [Links] [Team]
All right reserved.
Rambler's Top100