I have this Oracle query :
SELECT company, structure_id, team_code
FROM structure_main_tab
WHERE (company, parent_structure_id, team_code)
IN (SELECT company, structure_id, team_code
FROM structure_main_tab
WHERE (company, parent_structure_id, team_code)
IN (SELECT company, structure_id, team_code
FROM company_user_tab
WHERE UPPER(fusername) = UPPER('xxx') AND fdeleted = 'N'
)
);
I am trying to convert this oracle query to a SQL server query.
can anyone help me please?
WHEREclauses withANDin between. On a side-note: the first subselect uses the same table as the main query, is that correct?EXISTSclause instead of IN.