SOLVED - mySQL query is not showing results

Ask your questions here.
Post Reply
amamyoj
Posts: 44
Joined: 17 Nov 2023, 19:37
Name: Joy Pacardo
Location: Philippines

SOLVED - mySQL query is not showing results

Post by amamyoj »

Can someone please help me why my mySQL query is not working.

I basically need to show the total number of entries with a specific date. But the query is not showing any result. I maybe missing or entering the queries wrong. Here is a screenshot. Please help!
Attachments
2.png
1.png
Last edited by amamyoj on 20 Dec 2023, 18:45, edited 1 time in total.
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: mySQL query is not showing results

Post by enishemed »

Check “perform dynamically” option and use condition like that

Code: Select all

FROM_UNIXTIME([423], “%m/%d/%Y”) = ‘10/23/2023’

amamyoj wrote: 17 Nov 2023, 19:48 Can someone please help me why my mySQL query is not working.

I basically need to show the total number of entries with a specific date. But the query is not showing any result. I maybe missing or entering the queries wrong. Here is a screenshot. Please help!
amamyoj
Posts: 44
Joined: 17 Nov 2023, 19:37
Name: Joy Pacardo
Location: Philippines

Re: mySQL query is not showing results

Post by amamyoj »

i tried using "FROM_UNIXTIME([423], “%m/%d/%Y”) = ‘10/23/2023’" and im getting this error :( also, is it possible to make a group based on months?
Attachments
3.png
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: mySQL query is not showing results

Post by enishemed »

For months use like this

Code: Select all


FROM_UNIXTIME([423], “%m/%Y”) = ‘10/2023’

amamyoj
Posts: 44
Joined: 17 Nov 2023, 19:37
Name: Joy Pacardo
Location: Philippines

Re: mySQL query is not showing results

Post by amamyoj »

its working now. Thank you! A question, in the Condition for the mySQL Query, is it possible to put a group by in it? Like for example, I will need to group the data in the Inspections Entity by month or any workaround for this?
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: mySQL query is not showing results

Post by Didou12 »

can you provide more information about what you want to perform ?

do you want to have a list : https://docs.rukovoditel.net/index.php?p=101 ?

Or just have the number of item based on a date ?
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
amamyoj
Posts: 44
Joined: 17 Nov 2023, 19:37
Name: Joy Pacardo
Location: Philippines

Re: mySQL query is not showing results

Post by amamyoj »

Thanks for your help. I was able to find a workaround to group the records by date!
Post Reply