Hi all, i need some help constructing a query that will create a table for me that does not include the Type value of 'promotion' if the same ID value exists elsewhere within the query.
For instance, in the example below, i would want to delete the first entry containing 'Promotion' because ID2001 exists in two other places. However, if only one instance of ID2001 'Promotion' existed in my query, i would want to keep that entry. I would prefer to write all my data to a new table called "Test", This query has to sort out about 1000 entries when executed, otherwise i'd do it manually.
I'm pulling my hair out with this one, so could someone help me?
ID Company Name Type
ID2001 Disc plc John Promotion
ID2001 Disc plc Paul Agent
ID2001 Disc plc George Agent
For instance, in the example below, i would want to delete the first entry containing 'Promotion' because ID2001 exists in two other places. However, if only one instance of ID2001 'Promotion' existed in my query, i would want to keep that entry. I would prefer to write all my data to a new table called "Test", This query has to sort out about 1000 entries when executed, otherwise i'd do it manually.
I'm pulling my hair out with this one, so could someone help me?
ID Company Name Type
ID2001 Disc plc John Promotion
ID2001 Disc plc Paul Agent
ID2001 Disc plc George Agent