Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

subquery

SELECT
    *
FROM
    tabela1 AS T
WHERE
    coluna1 IN
    (
        SELECT
            coluna2
        FROM
            tabela2 AS T2
        WHERE
            T.id = T2.id
-- a Subquery é um segundo select, por exemplo
 
PREVIOUS NEXT
Tagged: #subquery
ADD COMMENT
Topic
Name
2+1 =