Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Tow Table

(1) Registration (regId, FillName , Add1, Add2, Etc..)
(2) Admission (AdmissionId, RegId, AdmissionDate, Etc...)

Queston : How to get those RegId Repeat in Admission Table in 72 Hours between tow Date...

E.g. in between tow 01/04/2014 to 14/04/2014 Date list Those Record Regid is repeat in 72 Hours

Example : (between Tow Date)
Regid  AdmissionId
--------------------
102     150
102     155
103     160
120     250
120     300
Posted
Updated 14-Apr-14 2:37am
v2

1 solution

XML
try this

<pre lang="SQL">select RegId, Admid, FullName, ADmDate, Add1 ,Add2 from PatientAdmission where ADmDate between  &#39;01/04/2014&#39;  and &#39; 14/04/2014&#39; order by Regid</pre>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900