SQL is the standard language for querying and manipulating data in relational databases. It has different components like the data definition language for creating, altering, and deleting tables and attributes and the data manipulation language for querying, inserting, deleting, and modifying data in tables. A basic SQL query selects attributes from one or more relations specified in the FROM clause where certain conditions are met in the WHERE clause.