SQL: Structured Query Language: the standard language for reading and changing data in relational databases such as MySQL, PostgreSQL, SQL Server, and Oracle.

Example

To find the five customers who spent the most this year, you write a query that joins the customers and orders tables, sums each customer's order totals, sorts them in descending order, and returns the top five.

Core SQL Commands

CommandWhat it does
SELECTRead data
INSERTAdd new rows
UPDATEChange existing rows
DELETERemove rows
CREATE / ALTER / DROPCreate or change tables and other objects

The first four map to CRUD operations.

Concepts Every Fresher Should Know

  • WHERE, ORDER BY, and LIMIT or TOP.
  • GROUP BY with COUNT, SUM, and AVG, plus HAVING.
  • INNER, LEFT, and RIGHT joins.
  • Primary keys, foreign keys, and indexes.
  • Subqueries and basic transactions.

SQL in Interviews and Jobs

SQL is asked in developer, tester, and analyst interviews alike. Classic questions include finding the second-highest salary, counting employees per department, and explaining joins. Practise writing queries by hand, not just reading them, and test yourself with the SQL interview questions test.

Related terms

  • Database: where SQL queries run.
  • NoSQL: databases that don't use SQL tables.
  • CRUD: the basic operations SQL performs.
  • Data Analysis: relies heavily on SQL.

Previous term: Sprint Review  |  Next term: Stakeholder

Related guides

Frequently asked questions

What is SQL used for?

SQL is used to read, add, change, and delete data in relational databases, and to define their tables.

Is SQL a programming language?

It is a query language for databases. It is not used to build whole applications, but it is essential in most IT roles.

What is the difference between SQL and MySQL?

SQL is the language. MySQL is a database system that uses SQL.

What SQL questions are asked in fresher interviews?

Joins, GROUP BY, keys, subqueries, and practical queries such as finding the second-highest salary.

Explore more internship terms

The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.

Browse all 199 terms
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.