This topic contains 2 replies, has 0 voices, and was last updated by AP.michael.matthews 8 years ago.

  • Author
    Posts
  • #8307

    krodrigues@roku

    i’m trying to use OVER (PARTITION BY ) in a ODBC SQL statement via SuiteAnalytics Connect. Say I want to rank the Tax Items by state.

    SELECT PP.ITEM_ID, RANK() OVER (PARTITION BY PP.TAX_STATE ORDER BY PP.FULL_NAME) RK

    FROM

    (

    SELECT p.ITEM_ID,

    p.FULL_NAME,

    ROWNUM() AS RN,

    p.TAX_STATE

    FROM TAX_ITEMS p WHERE P.ISINACTIVE= ‘No’

    ) PP

    I get a ‘Failed to retrieve data’ error rather than the more usual ‘Syntax Error in the SQL statement’ error.

    Anyone can help with using RANK and PARTITION?
    This is a cached copy. Click here to see the original post.

  • #8308

    Marcus Rangel

    I’m looking for that too!

    Anyone?

  • #8309

    AP.michael.matthews

    I am seeing this issue as well did either of you find a solution?

You must be logged in to reply to this topic.