Jump to content

retrive data from last 6 minths


vegad

Recommended Posts

hii have one more qus for u..Qus ; 2 Display the surname and telephone number of all patient who were admitted in the last 6 months who did not receive an operation.for this qus. i have two table one is ' patient_visit' and other one is 'operation'patient_visit <patient#,DOAdmission, DODischarge,Ward_Id>operation<operation#, Op_date, Op_type, Patient#, DOAdmission, Time_slot, theatre#>i want to find out that a patient who were admitted but not receive an operation from last 6 months.give me your idea...about that qus....and code reference also.....thanks waiting for u reply.....ok....bye :):):)

Link to comment
Share on other sites

SELECT * FROM PATIENT_VISIT WHERETO_CHAR(DOADMISSION,'DD-MON-YYYY') >TO_CHAR(ADD_MONTHS(DOADMISSION,-6),'DD-MON-YYYY')AND PATIENT_NO NOT IN(SELECT PATIENT_NO FROM OPERATION);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...