Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Discover NetSuite's potential! Join our webinars, learn from experts, and optimize your operations. Whether you're experienced or new, secure your spot today and stay ahead in NetSuite!
Share with colleagues and friends who could benefit from our webinars too!

CTE query with ODBC


I am trying to query Netsuite via (excel) ODBC to find sales order number associated to Credit Memo. Since most of our Credmem are created from invoices (but sometimes are more complicated), I am trying to create a recursive SQL query but it doesn't work and I wonder if it is the ODBC connector that prevents it ? Or my query.

with calnumber as (

select id, tranid, createdfrom from transaction

where tranid = 'something'

union all

select child.id, child.tranid, child.createdfrom from transaction as child

join calnumber as parent on parent.id = child.createdfrom )

select * from calnumber;


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


Community Whiz

Quarter 1 (Jan-Mar 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders