SQL is a language for communicating with a database management system (DBMS) to carry out tasks like querying data, inserting/updating/deleting rows, and managing database objects. It includes data definition language (DDL) for creating and modifying database objects and data manipulation language (DML) for querying and modifying data. A SQL database contains tables which have a schema defining columns and their data types, and may have constraints. Queries in SQL use SELECT statements to retrieve data that matches conditions specified in the WHERE clause by comparing column values and expressions.