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: 
omid5ive
Creator II
Creator II

direct discovery

hi

i want to use direct discovery in my qlikview document

i have two query:

normal:

sql select region_id,country_id from countries;

direct:

DIRECT Select region_id,region_name from regions;

when i reload this i get this error :

Error -- expected "query", found ":

DIRECT Select region_id,region_name from regions"

direct:

DIRECT Select region_id,region_name from regions

how can i solve it?

1 Solution

Accepted Solutions
maxgro
MVP
MVP

yes some little queries, but they work on my oracle test db, you have to adapt to your db

OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=test;Data Source=dev11;Extended Properties=] (XPassword is xxxxxxxxxxxxxxx);

DIRECT QUERY

dimension

  COD_SOCIETA,

    COD_CLIENTE_COMMITTENTE,

    COD_CLIENTE_DESTINATARIO,

    COD_FAMIGLIA,

    COD_PRODOTTO,

    NUM_NUMERO,

    COD_ORG_COMMERCIALE,

    COD_CANALE,

    COD_SETT_MERCEOLOGICO

measure

    QTA_PDV_SERVITI

FROM DWH_DL.MS01_DIFFUSO

WHERE NUM_NUMERO LIKE '40%'

;

this is another one

DIRECT QUERY

dimension

COD_SOCIETA,

    COD_CLIENTE_COMMITTENTE

FROM DWH_DL.MS01_DIFFUSO

;

View solution in original post

4 Replies
maxgro
MVP
MVP

DIRECT QUERY

dimension

region_id,

region_name

from regions;

;

omid5ive
Creator II
Creator II
Author

sorry have you any sample?

maxgro
MVP
MVP

yes some little queries, but they work on my oracle test db, you have to adapt to your db

OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=test;Data Source=dev11;Extended Properties=] (XPassword is xxxxxxxxxxxxxxx);

DIRECT QUERY

dimension

  COD_SOCIETA,

    COD_CLIENTE_COMMITTENTE,

    COD_CLIENTE_DESTINATARIO,

    COD_FAMIGLIA,

    COD_PRODOTTO,

    NUM_NUMERO,

    COD_ORG_COMMERCIALE,

    COD_CANALE,

    COD_SETT_MERCEOLOGICO

measure

    QTA_PDV_SERVITI

FROM DWH_DL.MS01_DIFFUSO

WHERE NUM_NUMERO LIKE '40%'

;

this is another one

DIRECT QUERY

dimension

COD_SOCIETA,

    COD_CLIENTE_COMMITTENTE

FROM DWH_DL.MS01_DIFFUSO

;

omid5ive
Creator II
Creator II
Author

Thank you