mysql - Questions regarding Pentaho Report designer -


  1. i have datetime-type column in mysql. now, in report want use date part for

    a. grouping

    b. comparison

i tried looking solution on net, couldn't find it.

  1. how use distinct in sql query in report designer. if design following query

    select 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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -