SQL is a language used to store, manipulate, and retrieve data in a relational database. SQL was the first commercial language for relational databases and is now used by almost all relational database management systems. SQL functions are divided into two categories: data definition language (DDL) and data manipulation language (DML). DDL is used to define the database structure and includes commands like CREATE, ALTER, TRUNCATE, and DROP to create, modify, delete data from, and drop tables. The ALTER command can be used to add or drop columns from an existing table.