1.2 Structured Query Language Flashcards
Structured Query Language (SQL)
high-level computer language for storing, manipulating, and retrieving data
SQL statement
a complete command composed of one or more clauses
clause
groups SQL keywords like SELECT, FROM, and WHERE with table names like City, column names like Name, and conditions like Population > 100000
Literals
Explicit values that are string, numeric, or binary.
Strings must be surrounded by single quotes or double quotes.
Keywords
Words with special meaning
ex: SELECT, FROM, WHERE
identifiers
Objects from the database like tables, columns, etc.
ex: City, Name, Population
Data Definition Language (DDL)
defines the structure of the database
DDL creates, alters, and drops tables
Data Query Language (DQL)
retrieves data from the database.
Data Manipulation Language (DML)
manipulates data stored in a database.
Data Control Language (DCL)
controls database user access.
Data Transaction Language (DTL)
manages database transactions.