Hoppa till huvudinnehållet

How do I have a ORDER BY clause in datalink (used for Subreport)

Kommentarer

2 kommentarer

  • Permanently deleted user
    Hey buddy, could you please test the SQL again and then paste the exact SQL tested here? Once we rule that out and assume GE can't do this then I would say your best bet is to order it at the database level or Arc Server.
    0
  • Permanently deleted user
    Its fixed. Actually I was using ORDER BY clause before, WHERE clause, putting it after WHERE clasue fixed the issue. 

     

    My wrong statement was:

     

    SELECT cId, cmaterial, ndepth 

     

    FROM GW_DB_xxxxx 

     

    ORDER BY nepth ASC

     

    WHERE cId = @LPLink

     

    it was corrected by: 

     

    SELECT cId, cmaterial, ndepth 

     

    FROM GW_DB_xxxxx 

     

    WHERE cId = @LPLink

     

    ORDER BY nepth ASC
    0

Du måste logga in om du vill lämna en kommentar.