Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ganeshreddy
Creator III
Creator III

SQL script to generate QVD?

Hi All,

How to generate a qvd to get fields with following SQL Script, please give me QlikView table structure script for this.

;WITH LOB_CTE(LOB_CODE,LOB_DESCRIPTION,PARENT,TOPPARENT,DEPTH) AS

 

(

  SELECT A.LOB_CODE,

  A.LOB_DESCRIPTION,

  A.PARENT,

  A.LOB_CODE AS TOPPARENT,

  0 AS DEPTH

FROM Dim_LOB A WHERE Parent='20BSU0000'

UNION ALL

SELECT C.LOB_CODE,

  C.LOB_DESCRIPTION,

  C.PARENT,

  LOB_CTE.TOPPARENT,

  LOB_CTE.DEPTH+1 AS DEPTH

  FROM Dim_LOB C

INNER JOIN LOB_CTE

  ON LOB_CTE.LOB_CODE = C.Parent 

  )

Cheers,

Ganesh.

12 Replies
Qrishna
Master
Master

Make sure you end the statement with a semi colon ';' .

Not applicable

Hi Krishna Chaitanya,

                             can you pls give me complete script for multiple qvd generators:

I have to create many:

for loop script  with sql db table names  like:

sql select * from "SF_Con".dbo."EMP_COMP";

sql select * from "PD_DATA".dbo."ORG_NM";

sql select * from "AFS_VAL".dbo."DBNM_SF";

into qvd's with single  store command

Thanks In Adavnce

Not applicable

Can anybody pls help me  with this