Hello,
I have the following query that finds all records which have count(col_A) > 1 and stat = '5'.
SELECT DISTINCT TOP 100 i1.egc_id,i1.stat
FROM dbo.table i1 INNER JOIN
dbo.table i2 ON i1.egc_ID = i2.egc_ID
GROUP BY i1.egc_ID, i2.egc_ID,i1.stat
HAVING...
I need to enter a sql query for a field.
I have the following query, which will populate the field. How do I enter this or the equivalent?
SELECT distinct i1.scan_id
FROM item_xref i1 join
item_xref i2 on i1.itm_id = i2.itm_id
WHERE i1.scan_id <> i2.itm_id
It essentially queries the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.