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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
balasundaram
Creator II
Creator II

My sql query to qlikview script

My SQL Query: select A,B,count(1) from bala;

i written in qlikview like

Load A,B,count(1) from bala.qvd;

is it correct ?

any function there in qlikview for my sql COUNT function

Labels (1)
10 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

You will definitely get one, since your table has all unique values

bala:

LOAD * INLINE [

    sno, name

    1, a

    2, b

    3, c

    4, d

    5, e

];

If you have data like this

Temp:

LOAD * INLINE [

    sno, name

    1, a -- duplicate record

    1, a -- duplicate record

    1, c

    2, d

    2, e

];

Data:

LOAD sno,name,count(sno) AS Count

Resident TempGroup by sno,name;

drop table Temp;

Now you will get

sno, name, count

1, a, 2  -- since you have duplicate rows you will get count 2.

1, c, 1

2, d, 1

2, e, 1


Bala, before practicing Qlikview first learn the SQL queries then designing the Datamodel in Qlikview becomes very easy.  Without knowing SQL it is very difficult for a Qlikview developer.

Hope this helps you.

Regards,

Jagan.