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: 
stephbzr
Contributor III
Contributor III

Query with count(*) for tMap

Hello, 

Is it possible to connect a tDBInput to a tMap with a query like below? I need to get the value of count(*) from my tMap, but the query requires data from the tMap. How do I do this?

0695b00000Z1Nc5AAF.png

I usually do this 

0695b00000Z1NcjAAF.png

And I fill in the values in my tMap schema, but with count(*) I don't know how to do this.

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable

You can setup an alias for count(*) field in the query like :

select count(*) as num1 from repre where xxxxx

then in the schema of tDBInput, setup the 'num1' as the column name

View solution in original post

1 Reply
Anonymous
Not applicable

You can setup an alias for count(*) field in the query like :

select count(*) as num1 from repre where xxxxx

then in the schema of tDBInput, setup the 'num1' as the column name