Advertisement

07.23.2008 at 03:52PM PDT, ID: 23590475 | Points: 500
[x]
Attachment Details

MS Access query

Asked by anastasiasoul in Microsoft Access Database, SQL Query Syntax

Tags: SQL

Hi, I need to list patients admitted more than once for the year to date.
I have got the query which returns all patients admitted for the year to date. How can I limit the patients only to those admitted more than once?

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
select 
patient.pno, 
patient.psurname,
admission.adno,
admission.indate
from patient, admission, CURRENTDATE
WHERE patient.pno = admission.pno
AND ADMISSION.INDATE  
BETWEEN DateDiff('yyyy',currentdate, 1) and currentdate;
[+][-]07.23.2008 at 05:24PM PDT, ID: 22075160

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 06:38PM PDT, ID: 22075521

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 06:40PM PDT, ID: 22075529

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628