Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vipin_mishra479
Creator II
Creator II

Need Data like this

No we can say like this 

I have a two table 

Table 1   
    
Patient IDService Request TypeSR Created DateCaseNumber
PAT-188149GATCF Patient Assistance4/19/2016435031
PAT-188149GATCF Patient Assistance4/9/20181125219
PAT-188149Patient Foundation12/8/20181634660
PAT-188149Patient Foundation6/25/20192151894

 

Table 2   
    
BI Patient IDBI Service Request TypeBI SR Created DateBI CaseNumber
PAT-188149Benefits Investigation/Prior Authorization4/4/20181118864
PAT-188149Benefits Investigation/Prior Authorization6/4/20181118865
PAT-188149Benefits Investigation/Prior Authorization4/6/201918197

 

Now we need to check some condition like 

we need to bring all BI record into the table with this condition my BI SR Created date is less then SR Created date Below is the out put

Patient IDService Request TypeSR Created DateCaseNumberBI Service Request TypeBI SR Created DateBI CaseNumber
PAT-188149GATCF Patient Assistance4/19/2016435031   
PAT-188149GATCF Patient Assistance4/9/20181125219Benefits Investigation/Prior Authorization4/4/20181118864
PAT-188149Patient Foundation12/8/20181634660Benefits Investigation/Prior Authorization6/4/20181118865
PAT-188149Patient Foundation6/25/20192151894Benefits Investigation/Prior Authorization4/6/201918197
Labels (1)
0 Replies