on 10-07-2023 10:18 AM
Hi ding.ye,
The purpose is "to count" records, so what you see is that you have 1 line per aggregated columns (CHGNR and OBJNR).
On your screen shoot, if you query only CHGNR_COUNT and OBJBR you should receive 2 for OBJNR OR000004000608, the other objects has 1 line per each.
if your query request only CHGNR_COUNT you should receive the number of rows on selection.
But there's one trick. Hana internal performance optimizations only count accessed rows, so if you do not request the columns OBJNR and CHGNR the result of CHGNR_COUNT is 1. You need to flag transparent, see Notes on link below:
Regards, Fernando Da Rós
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi fedaros
Thank you very much for detailed explanation."On your screen shoot, if you query only CHGNR_COUNT and OBJBR you should receive 2 for OBJNR OR000004000608, the other objects has 1 line per each." It can be achieved by SQL statement like : " SELECT OBJNR , CHGNR_COUNT FROM ... where OBJNR = 'OR000004000608'. "But in graphical view , not using sql, it seems only can be '1', no other values. Am I right ?User | Count |
---|---|
66 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.