Sql where in another table. A query inside another query is called subquery.