SQL
is a query within another query. It is also known as a nested query or an inner query. Subqueries are used to enhance the data to be queried by the main query. SELECT name, email, phone
FROM employee
WHERE emp_id IN (
SELECT emp_id
FROM employee
WHERE city = 'Texas');?