alwayshouston
MIS
Hi All
I have a table as below:
Dept_ID Salary Original Modified
ACCT 5000 Y N
ACCT 5000 N Y
MKTG 7500 Y N
MKTG 8000 N Y
I need to get the result from the table in which if there is a duplication (ACCT), I would need Original =Y and Modified = N. If there is no duplication (MKTG), I would need the record where Modified = Y.
My output should be as follow:
Dept_ID Salary Original Modified
ACCT 5000 Y N
MKTG 8000 N Y
How can I accomplish this logic in a query/queries or VBA? I am going nuts in solving this simple problem. PLEASE HELP!!!! Please note that I cannot alter the table design because it comes from the system this way.
Thanks in Advance!!!
I have a table as below:
Dept_ID Salary Original Modified
ACCT 5000 Y N
ACCT 5000 N Y
MKTG 7500 Y N
MKTG 8000 N Y
I need to get the result from the table in which if there is a duplication (ACCT), I would need Original =Y and Modified = N. If there is no duplication (MKTG), I would need the record where Modified = Y.
My output should be as follow:
Dept_ID Salary Original Modified
ACCT 5000 Y N
MKTG 8000 N Y
How can I accomplish this logic in a query/queries or VBA? I am going nuts in solving this simple problem. PLEASE HELP!!!! Please note that I cannot alter the table design because it comes from the system this way.
Thanks in Advance!!!