Amanda Walshaw
asked on
sql view query
I have a selection query that has to go out as an extract. I have made a union join but I am looking at the following issues with the user.
1. if PrivateService is ticked (-1) and/or positiontype = Funeral -NSNA then the entry does not extract regardless if the display flag is ticked on the form (-1), and the Role is listed as contact.
Result = PASS (entry does not extract)
2. if the user has ticked display and with the Contact Role is selected, then user changes their mind, they untick display flag and then tick PrivateService and/or positiontype = Funeral - NSNA.
Result = PASS (entry extracts with display flag 0, this alerts us to take the original extract out of the list.
3. If the data entry person, unticks display flag then ticks PRIVATESERVICE, and leaves role nominated as Contact, then changes their mind again, and ticks Display Flag the extract will come out with the flag -1
RESULT = FAIL
hmm without programming changes I don't know how I can treat this type of scenario.
Please find attached view sample file, what do you think.
Any suggestions on the view.
myview.txt
1. if PrivateService is ticked (-1) and/or positiontype = Funeral -NSNA then the entry does not extract regardless if the display flag is ticked on the form (-1), and the Role is listed as contact.
Result = PASS (entry does not extract)
2. if the user has ticked display and with the Contact Role is selected, then user changes their mind, they untick display flag and then tick PrivateService and/or positiontype = Funeral - NSNA.
Result = PASS (entry extracts with display flag 0, this alerts us to take the original extract out of the list.
3. If the data entry person, unticks display flag then ticks PRIVATESERVICE, and leaves role nominated as Contact, then changes their mind again, and ticks Display Flag the extract will come out with the flag -1
RESULT = FAIL
hmm without programming changes I don't know how I can treat this type of scenario.
Please find attached view sample file, what do you think.
Any suggestions on the view.
myview.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes I think I need to do a hierarchy and list the Permutations and get the business to decide.
ASKER
regards