06:25
Content
Login
SQL Problems and solutions
S. I. Moiseenko
Content
SQL console
back
go
forward
Appendixes
Appendix 2. Exercises list
page 3
No.
DB
Level
Task
Stage
T&S
51
A3
3
Find the names of the ships having the largest amount of guns among all the ships with the same displacement (taking into account Outcomes table).
Learn
+
53
A3
1
To within two decimal digits, define the average amount of guns for the battleship classes.
Learn
+
54
A3
2
To within two decimal digits, define the average amount of guns for all the battleships (taking into account Outcomes table).
Learn
+
55
A3
1
For each class, define the year in which the first ship of this class was launched. If year of launch of the head ship is unknown, define the minimum launch year for ships of this class. Result set: class, year.
Learn
+
56
A3
3
For each class, define the number of ships of this class that were sunk in battles. Result set: class, number of sunked ships.
Learn
+
57
A3
3
For each class, consisting of at least three ships, define the number of ships (that must be at least 1) of this class sunk in battles. Result set: class, number of sunken ships.
Learn
+
70
A3
3
Point out the battles in which at least three ships from the same country took part.
Learn
+
(-2)
A3
2
For each country, find the year, in which the maximal number of ships had been launched. In the case of more than one year in question, take a minimal year. Result set: country, number of ships, year
Rating
+
19
A3
1
Define the names of all the ships in the database which were definitely launched before 1941.
Rating
+
Pages
1
2
3
ships
exercises
Previos
[Painting]
[Appendix 3. Chronicles of Torus]
Next
Last added:
Exercise #32 page 4
Exercise #32 page 3
Exercise #32 page 2
CASE statement page 2
Exercise #32
HAVING clause
Numbering of rows in accordance with the order of values of a primary key
Exercise #(-2) page 4
Exercise #(-2) (tips and solutions) page 2
Exercise #(-2) page 2
Tags
tags search
aggregate functions
ALL
ASCII
AVG
Battles
Bezhaev
Bismarck
C.J.Date
Cartesian product
CASE
cast
CHAR
CHARINDEX
classes
COALESCE
common table expressions
comparison predicates
Computer firm
CONVERT
correlated subqueries
COUNT
CTE
data type conversion
database schema
DATEDIFF
DATEPART
DATETIME
DELETE
DISTINCT
duplicates
EXCEPT
exercise (-2)
exercise 19
exercise 23
exercise 32
exercise 37
exercise 39
exercise 46
exercise 54
exercise 55
exercise 56
exercise 57
exercise 7
exercise 70
exercise 8
exercises
EXISTS
FROM
FULL JOIN
GROUP BY
More tags
grouping
Guadalcanal
HAVING
head ships
IDENTITY
IN
income
inner join
INSERT
INTERSECT
ISNULL
join operations
laptop
launched year
LEFT
LEFT OUTER JOIN
LEN
LTRIM
MAX
MIN
mistakes
MySQL
NOT IN
NULL
number sequences
number-sequence generation
numbering
ORDER BY
outcome
Outcomes
outer joins
OVER
paging
PARTITION BY
PATINDEX
PC
PIVOT
PostgreSQL
predicates
printer
product
Ranking functions
recursive CTE
REPLACE
RIGHT
ROW_NUMBER
ships
SQL Server
SQL-92
sql-ex.ru
string functions
subquery
SUBSTRING
tables join
tips and solutions
Torus
Transact-SQL
type conversion
UNION
UNION ALL
UNKNOWN
UPDATE
varchar
WHERE
window functions
WITH
óïðàæíåíèå 23
The book was updated
several days ago