Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL QUERY Converter

HI All,

I have the query as below and I need to convert it into QV. Can anybody have a look into this

Select DBO.CASE_END2END.ACCOUNTABILITY_ID,
    DBO
.CASE.CASE_ID,
    DBO
.CASE.CL_Date_GMT,
    DBO
.SUBCASE.SubCase_ID
from DBO.CASE
left join DBO.SUBCASE on DBO.CASE.ACCOUNTABILITY_ID = DBO.SUBCASE.ACCOUNTABILITY_ID
WHERE DBO.CASE.ACCOUNTABILITY_ID = '464921';

Thanks,

Chiru

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Select DBO.CASE_END2END.ACCOUNTABILITY_ID,
    DBO
.CASE.CASE_ID,
    DBO
.CASE.CL_Date_GMT
from DBO.CASE
WHERE DBO.CASE.ACCOUNTABILITY_ID = '464921';


left join


Select DBO.SUBCASE.ACCOUNTABILITY_ID
    DBO.SUBCASE.SubCase_ID
from  DBO.SUBCASE;


But you can run the first in qlik as it is.

IAMDV
Luminary Alumni
Luminary Alumni

Something like this...? Where you extract the data from both tables and join predicate will be ACCOUNTABILITY_ID. I assume that ACCOUNTABILITY_ID is available in both the tables.



Case_Table:

LOAD *;

Select

  DBO.CASE.ACCOUNTABILITY_ID

    DBO.CASE_END2END.ACCOUNTABILITY_ID,
    DBO
.CASE.CASE_ID,
    DBO
.CASE.CL_Date_GMT,
    DBO
.SUBCASE.SubCase_ID
from DBO.CASE

WHERE DBO.CASE.ACCOUNTABILITY_ID = '464921';


left join (Case_Table)


LOAD *;

Select

  DBO.SUBCASE.ACCOUNTABILITY_ID

    DBO.SUBCASE.SubCase_ID

from DBO.SUBCASE


I hope this helps!


Cheers,

DV


www.QlikShare.com