Welcome to Sign in | Help

select distinct...order by?

  •  08-03-2007, 10:59 AM

    select distinct...order by?

    urmatorul select da eraore pt ca nu am campurile din order by in select distinct....

    fara distinct rezultatul e cu duplicate...
     

    SELECT DISTINCT A.x, A.y, A.z, B.m, B.n, B.q
    FROM (B INNER JOIN A ON B.w=A.w)
    WHERE A.x = '1'
    ORDER BY B.f, B.g, B.h

     

    cum pot elimina duplicatele si la order by sa am alte campuri decat in select????

     

    multumesc mult.... 

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems