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 table, which has two columns as such
Col_A Col_B
12345 88
88 88
It returns only the unique value from Col_A.
I can use the column directly when creating a new field (Item_xref.Col_A), but then the report will show two line, 12345 and 88.
any help would be great
Huddles
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 table, which has two columns as such
Col_A Col_B
12345 88
88 88
It returns only the unique value from Col_A.
I can use the column directly when creating a new field (Item_xref.Col_A), but then the report will show two line, 12345 and 88.
any help would be great
Huddles