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: 
bsbernabe
Creator
Creator

count(*) from Table

Hello There,

my concern is to display the Table Name, Number of Columns & numbers of rows per table from oracle db

i try to use

Load *,

SQLCOLUMN but i only got is Table Name & Number of Column i need also numbers of rows per table, so i create a simple script individually to count the number of rows  per table like union SQL but my problem here is when  i run the script with union i cant define what table it is because the field displayed is count like below:

Select count(*) from Table union

Any other solution for this?

i need somebody help..

Best Regards,

Bing

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi @bsbernabe 

If you want to know the no. of records in the table, you can use count(Primarykey) in the front end. 

Or

Load *, 1 as RowCount;

Sql select * from yoursourcetable;

Then, in front end, you can use Sum(RowCount) to get the number of rows loaded.

Hope its helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
Chanty4u
MVP
MVP

Hi,

not sure but did you tried with join instead of union?

Select count(*) from Table Join

 

MayilVahanan

Hi @bsbernabe 

If you want to know the no. of records in the table, you can use count(Primarykey) in the front end. 

Or

Load *, 1 as RowCount;

Sql select * from yoursourcetable;

Then, in front end, you can use Sum(RowCount) to get the number of rows loaded.

Hope its helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.