Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COUNT and totalcount in same row of query results #15718

Open
diwakarv123 opened this issue Jan 18, 2024 · 0 comments
Open

COUNT and totalcount in same row of query results #15718

diwakarv123 opened this issue Jan 18, 2024 · 0 comments

Comments

@diwakarv123
Copy link

How to achieve occurrence COUNT and totalcount in same row of query results

example data table with columns id, firstname:
id,firstname
111,aaa
222,bbb
333,ccc,
444,aaa
555,bbb

i want results like using query in druid like below using group by

aaa, 2, 5 -- name, numberofoccurances and totalcount of rows
bbb, 2, 5
ccc,1,5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant