The Simple SELECT Statement
The good news about SQL is that the programmer only needs to learn the SELECT statement to do almost all his work! The bad news is that the statement can have so many nested clauses that it looks like a Victorian novel! The SELECT statement is used to query the database. It combines one or more tables, can do some calculations, and finally puts the results into a result table that can be passed on to the host language.
I have not spent much time on simple one-table SELECT statements you see in introductory books. I am assuming that you are experienced SQL programmers and got enough of those queries when you were learning SQL.
But it is worth going back to those basics and thinking about the conceptual model used ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access