SQL retrieves data using the SELECT statement, which can be combined with various clauses for specific queries.