mysql - Questions regarding Pentaho Report designer -
i have
datetime
-type column in mysql. now, in report want use date part fora. grouping
b. comparison
i tried looking solution on net, couldn't find it.
how use
distinct
in sql query in report designer. if design following queryselect count (distinct user_id) mytable
it converts same to
select distinct count (user_id) mytable
please help.
i never ran such behavior, but, anyway, think quick (but not best) workaround use following query:
select count(0) (select distinct user_id mytable) t
Comments
Post a Comment