Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
qliktoview123
Contributor II
Contributor II

Need Help Regarding a Query Logic

Hello,

I am not able to get the query logic ,Please help me out to run the query logic in qlikview.

QUERY:

 

SELECT Count(*)

 

FROM PS_BSL_JOB_CI_VW A

 

WHERE A.EMPL_RCD=0

 

AND A.EFFDT = (SELECT Max(EFFDT) FROM PS_BSL_JOB_CI_VW WHERE EMPLID=A.EMPLID AND EMPL_RCD=A.EMPL_RCD AND EFFDT <= '01JAN2015')

 

AND A.EFFSEQ = (SELECT Max(EFFSEQ) FROM PS_BSL_JOB_CI_VW WHERE EMPLID=A.EMPLID AND EMPL_RCD=A.EMPL_RCD AND EFFDT=A.EFFDT)

 

AND A.EMPL_STATUS = 'A';

I have to implement above query logic in the below table

Data:
LOAD EMPLID,
EMPL_RCD,
EFFDT,
EFFSEQ,
EMPL_STATUS

FROM
D:\Qlikview\QVDs\JOB_CI.qvd

Thanks

 

0 Replies