IIF query?

  • Thread starter Thread starter D
  • Start date Start date
D

D

I have a table w/fields:
PartID
TestDate
TTech
RetestDate
RTech
I want to run a query that will provide the output:
PartID
Technician
FinalTestDate
with the condition that if RetestDate/Rtech are not null
that will be the Technician/FinalTestDate source otherwise
the source is TTech/TestDate.
I am not very good at SQL, can someone help me please?
 
Try something along the lines of

SELECT PartId, Nz(RTech, TTech) as Technician,
Nz(ReTestDate, TestDate) as FinalTestDate
FROM etc

Hope This Helps
Gerald Stanley MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top