phaks Posted August 14, 2014 Posted August 14, 2014 How can i do group SQL group by in adhoc? e.g select * from transactions group by transcode;
ghudson_1 Posted August 14, 2014 Posted August 14, 2014 As superuser, go to manager -> server settings -> Adhoc settings and checkmark enable view query. This allows you to see the query being generated at runtime. When you create an adhoc from topic or domain, if you drag a field into the "group" the server will actually peform that grouping in memory. If you want the group by clause to be added to the query then if using a topic, you need to ensure your topic contains this group by in the queryString for the topic, or if using a domain, then ensure that your domain enforces this clause (via derived table or other means)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now