This first element of an SQL query is always a verb. The verb
expresses the action you wish the database engine to take. While the
rest of the statement varies from verb to verb, they all follow the
same general format: you name the object upon which you are acting
and then describe the data you are using for the action. For example,
the query CREATE TABLE people (name CHAR(10)) uses
the verb CREATE, followed by the object
TABLE. The rest of the query describes the table
to be created.
An SQL query originates with a client (the application that provides
the façade through which a user interacts with the
database). The client constructs a query based on user actions and
sends the query to the SQL server. The server must then process the
query and perform the specified action. Once the server has done its
job, it returns some value or set of values to the client.
Because the primary focus of SQL is to communicate actions to the
database server, it does not have the flexibility of a
general-purpose language. Most of the functionality of SQL concerns
input to and output from the database: adding, changing, deleting,
and reading data. SQL provides other functionality, but always with
an eye towards how it can be used to manipulate the data within the
database.