I have a query question.
I have a table with Patient Name, Date of Visit, and Flu, MMR & Polio vaccinations.
The flu vaccine is good for 1 year only.
MMR vaccine is good for 2 years.
Polio is good for 3 years.
How do I create a query to show example#2?
example#1
example#2
Thanks in advance!
I have a table with Patient Name, Date of Visit, and Flu, MMR & Polio vaccinations.
The flu vaccine is good for 1 year only.
MMR vaccine is good for 2 years.
Polio is good for 3 years.
How do I create a query to show example#2?
example#1
Code:
Here's what I have....
ID Patient Visit Flu MMR Polio
1 John Lennon 01/01/2000 Yes Yes
2 John Lennon 01/01/2001 Yes Yes
3 John Lennon 01/01/2002
4 John Lennon 01/01/2003 Yes
5 John Lennon 01/01/2004 Yes
6 John Lennon 01/01/2005 Yes Yes
7 John Lennon 01/01/2006 Yes
example#2
Code:
Here's what I want to happen....
ID Patient Visit Flu MMR Polio
1 John Lennon 01/01/2000 Yes Yes
2 John Lennon 01/01/2001 Yes Yes Yes
3 John Lennon 01/01/2002 Yes Yes
4 John Lennon 01/01/2003 Yes
5 John Lennon 01/01/2004 Yes
6 John Lennon 01/01/2005 Yes Yes
7 John Lennon 01/01/2006 Yes Yes Yes
Thanks in advance!