I understand that with such a question you can get a queue of minuses, but there is nowhere else to turn. In the course work on databases you need to find 15 different SELECT query structures. In bnf notation:
Selection statement :: = Table expression [ ORDER BY {{Name of the result column [ ASC | DESC ]} | {Positive integer [ ASC | DESC ]}}., ..];
Table expression :: =
Select expression
[
{ UNION | INTERSECT | EXCEPT } [ALL]
{Select-expression | TABLE Table Name | Table value constructor}]
Select-expression :: =
SELECT [ ALL | DISTINCT ]
{{{Scalar expression | Aggregation function | Select-expression} [AS Column Name]}., ..}
| {{Table Name | Correlation Name}. *}
| *
FROM {
{Table Name [ AS ] [Correlation Name] [(Column Name., ..)]}
| {Select-expression [ AS ] Correlation Name [(Column Name., ..)]}
| Join table}., ..
[ WHERE Conditional expression]
[ GROUP BY {[{Table Name | Correlation Name}.] Column Name}., ..]
[ HAVING Conditional expression]
the SELECT statement definitely has 13 of them, but I don’t see the last three point-blank ... I’ve found some of them already:
The easiest SELECT + FROM + WHERE
FROM subquery
Subquery in SELECT
Subquery in WHERE
Using ORDER BY
UNION | INTERSECT
GROUP BY
GROUP BY + Subquery in HAVING (At the same time GROUP BY + HAVING is just a complication of the structure, therefore it does not fit)
Correlation request
Using Aliases (ALIAS)
Since I create the database in the courseware in PostgreSQL, the capabilities of this DBMS can also be used, but for now I see the possibility to work only with FETCH in some way. Apparently the eye is already quite zamylilas, I will be very grateful if you point to the uncrowded.