We are just starting into using ODBC with NetSuite and are having a heck of a time getting queries that work. I have looked through the training videos, which look old, and the user guide, which lists a few restrictions. Are there other resources I am not aware of that would help me understand the unique requirements of using the connector? What tools do others use for developing queries against the ODBC?
Here is an example of something I am trying to do:
select S.Name, Ten.OppCount as [Ten Count], Ten.OppTotal as [Ten Total]
from Sales_Reps S
left outer join (
select O.sales_rep_id as [RepID], count(1) as [OppCount], sum(projected_total) as [OppTotal]
from Opportunities O
where O.Probability = 10
group by O.Sales_rep_id
) Ten on Ten.RepID = S.sales_rep_id
As far as I can find this doesn't break any rules and yet I get an error that says, "NLODBC Driver does not support role mixing." And that means...?