Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

inner join distinct

SELECT valueC
FROM C
INNER JOIN
(
    SELECT DISTINCT lookupC
    FROM B INNER JOIN
    (
        SELECT DISTINCT lookupB
        FROM A
    ) 
    A2 ON B.id = A2.lookupB
) 
B2 ON C.id = B2.lookupC
Source by coderoad.ru #
 
PREVIOUS NEXT
Tagged: #join #distinct
ADD COMMENT
Topic
Name
4+2 =