.net - SQL NOT IN Clause -
I have a query that is not working as expected
Q1: SELECT id, name is not a WHERE id from name Vw_x (select PID from table_x) by ID group, maximizing name (c_date) & gt; GETDATE () Q2: SELECT id, name vw_x GROUP ID, name being maximized (c_date) & gt; However, I know that those IDs are not in table_x Q2 properly without running
Q1 is not returning to me
What could be wrong with my query?
Your table has a zero value
try it
SELECT id, by name name vw_x is not a WHERE id (select pid from table_x where pid is not zero), maximum number of id by group (c_date) & gt; GETDATE ()
or
SELECT id, by name name vw_x is not present (select Table 1x where pid = vw_x.id) ID, maximizing name by group (c_date) & gt; See also
Comments
Post a Comment