writing select with sub subselect in mysql with object for specific column code example
Example: mysql subquery
SELECT
lastName, firstName
FROM
employees
WHERE
officeCode IN (SELECT
officeCode
FROM
offices
WHERE
country = 'USA');