Hi Team,
I setup mydbr recently ,It is not working when i use group by ,sum.....etc.
It's working only for select * from Employee ; And I am using latest vesrion of mydbr and mysql version: 5.0.95 . server apache .. PLease help out with this..
Aggregate functions are not working in the reports
(19 posts) (2 voices)-
-
Could you show the code that is not working?
--
myDBR Team -
query: select empid,empname ,sum(sal) from myddname.employee where data b/w date1 and date2 group by empid;
It's showing white page..
-
Hi,
could you copy / paste the exact report code as shown in SQL Editor. The "data b/w date1 and date2" is not valid SQL. myDBR can accept and execute any valid SQL.--
myDBR Team -
DROP PROCEDURE IF EXISTS sp_DBR_test
$$
CREATE PROCEDUREsp_DBR_test
(startDate date, endDate date)
BEGINselect empid,empname ,sum(sal) from mydb.employee where data between startDate and endDate group by empid;
END
$$the above is procedure , and input startDaet = 2013-09-21,endDate = 2013-09-23 ;
same query when i given as select * from employee . it's working fine.. Let me know as early as possible..
-
Hi,
the procedure looks ok. What is the datatype of the 'data' column in mydb.employee?To narrow the problem down, does your installation work i.e can you execute any reports? When you say the report produces an empty ("white page") result, that would indicate that there is something wrong in the installation.
Even if the query would not produce any results, you should still see result headers "empid", "empname", "sum(sal)" showing up.
You can also validate your procedure if you execute:
call sp_DBR_test( '2013-09-21', '2013-09-23');
from the MySQL command line. myDBR should produce same result though.
--
myDBR Team -
Hi,
I could be able to do that through command line, but why UI is not showing, can you help me out through this . How to check this issue -
it is bit difficut give more detailed help with information given. From myDBR's perspective the report query looks ok and myDBR will execute any valid SQL as it uses native stored procedures.
You did not answer to the question if your installation works at all i.e can you execute any reports (like included demo reports)?
--
myDBR Team -
Those are working fine..
-
What was the output from your report when you run it?
1) Totally blank, nothing generated even in HTML source
2) Some HTML generated but the result set not shown
3) Result set headers shown but no data--
myDBR Team -
option 1 ,
-
Does myDBR ask for the parameter values?
It sounds like some kind of installation problem. Without access to the server it is hard tell what might cause this.
We'd advise to try to isolate the problem with different scenarios.
--
myDBR Team -
But one day , it worked well and still it is running for select * from table; queries but not group by queries.
-
Most likely you have an error in your query. The group by queries does not affect the report execution. The group by is standard SQL statement and myDBR does not even know there is a group by query (the query is executed in the server and myDBR only reads the result set).
If your server is online, we can take a look so you can go forward.
--
myDBR Team -
Procedure is working fine in command line , but it comes to mydbr it is not working . One more doubt can we use one license for two installations..
-
I mean two servers.
-
There is something wrong in your installation that causes the blank output. Even if there was an error in your report you would get some output (with error message). If your output is totally blank as you said, there is a problem with your installation. Why some reports work, it is impossible to say with the information given.
myDBR is licensed per installation. If you have two installations, each of them has their own license.
--
myDBR Team -
Hi ,
I Installed one more time still the same error , how did you check this through server. -
We have not checked this from your server. As said, with the information given, we can only guess what might be wrong in your setup.
If you have a Premium license you can open a ticket in the support and our engineer will help fix this for you.
--
myDBR Team
Reply
You must log in to post.