I would like to execute this SQL request. But wpdatatables doesn't seem to execute the request correctly.
SELECT nom, (SELECT sum(time_to_sec((cast(temps as time))) / 60 / 60) FROM rapport_brut WHERE appareil = ICAO) as "HEURES UTILISÉES" FROM flotte WHERE active = '1' ORDER BY (SELECT sum(time_to_sec((cast(temps as time))) / 60 / 60) FROM rapport_brut WHERE appareil = ICAO) DESC LIMIT 10
At this time... limit clause doesn't work. It is completely ignored.
When you have query like this our suggestion is to make a VIEW in phpmyadmin or any other database management system and see if the results are good. If results are good you can use that query as an input when creating tables using Add from data source option.
Hi,
I would like to execute this SQL request. But wpdatatables doesn't seem to execute the request correctly.
SELECT nom,
(SELECT sum(time_to_sec((cast(temps as time))) / 60 / 60)
FROM rapport_brut
WHERE appareil = ICAO) as "HEURES UTILISÉES"
FROM flotte
WHERE active = '1'
ORDER BY (SELECT sum(time_to_sec((cast(temps as time))) / 60 / 60)
FROM rapport_brut
WHERE appareil = ICAO) DESC
LIMIT 10
At this time... limit clause doesn't work. It is completely ignored.
Also, the order by doesn't work either.
I want to have a top 10 of uses of airplane.
Thanks for your help
Francis
Hi Francis,
Thank you for your purchase.
When you have query like this our suggestion is to make a VIEW in phpmyadmin or any other database management system and see if the results are good. If results are good you can use that query as an input when creating tables using Add from data source option.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables