Ok, i have 2 queries. 1 pulls sales data; the other pulls Returns data. What i need to do is find a way to write a query that will delete records that match on several different criteria.
what i would like to do is write a Union query that combines sales and returns, that will show the sale and the return in the same record based on matching account numbers, names, item numbers, etc.
as of now, it shows them on separate lines so i have ot go through and manually compare these records to determine which ones to delete. however, i did get an error while running the Union query which i wasnt familiar with. it was something like "function rejected by user exit program ______ by _____" is that something where i would need to contact IS to allow access?? i have no idea there.
im not sure if im being clear enough, but right now im trying to be fairly broad with my question.
in summary, what is the best way to combine 2 queries with similar data (so the records show up on the same line)?
what i would like to do is write a Union query that combines sales and returns, that will show the sale and the return in the same record based on matching account numbers, names, item numbers, etc.
as of now, it shows them on separate lines so i have ot go through and manually compare these records to determine which ones to delete. however, i did get an error while running the Union query which i wasnt familiar with. it was something like "function rejected by user exit program ______ by _____" is that something where i would need to contact IS to allow access?? i have no idea there.
im not sure if im being clear enough, but right now im trying to be fairly broad with my question.
in summary, what is the best way to combine 2 queries with similar data (so the records show up on the same line)?