SQL is used with relational databases, where data is stored in tables. It is declarative, so you describe the result you want rather than the exact search steps.
Step-by-step lessons on AQA AS Level Computer Science Structured Query Language (SQL). Each one builds up to exam-style questions.