Hi...
So far i was working with Labview and Access.As the requirement,we have to migrate from access to MySql.
Now dealing with queries i am facing lots of problem.Many of my queries worked well with Access is not working with MySQL.
I had used some complex queries.Even queries to extract monthly data(where in the database its in year-month-date format),
where i have used format function and group by clause is not working properly with My SQL.
Why its like that?In both access and mysql we are using sql queries.Is there syntax difference in MySQL?
the following query worked well with access ...
SELECT DISTINCTROW format$(Avg([ID]),"#0.00"), Format$(avg([Date]),"dd/mm/yyyy"),format$(Avg([Res Lvl]),"#0.00"), format$( Avg([IW-B-(L)]) ,"#0.00") FROM `DPD-BTU-SEEP`GROUP BY Format$([DPD-BTU-SEEP].[Date],"yyyy/mm"), Year([DPD-BTU-SEEP].[Date]) ORDER BY Format$([DPD-BTU-SEEP].[Date],"yyyy/mm");
But its not working with mysql.
I tried to execute the query in the query browser directl also but getting error.Date is in the format of YYYY-mm-dd in my sql so i have to change.But dont know what is the problem with the format function format$(Avg([ID]),"#0.00").Its also having error.
Even the quesion is more related to data base than labview can any body help me regarding this?
Thanks in advance...