SQL is a database language used to create, modify and query databases. It has four main categories of commands: DDL for defining database schemas; DQL for querying data; DML for manipulating data; and DCL for controlling access privileges. Some key commands include CREATE, SELECT, INSERT, UPDATE, DELETE, GRANT and REVOKE.