Difference between revisions of "User: Bgrenon/1"
(32 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | TEST<tabber> | |
+ | Last 24 hours= | ||
+ | {{#cargo_query: | ||
+ | tables=ComponentRN,Component | ||
+ | |join on=ComponentRN.ComponentId HOLDS Component.Id | ||
+ | |fields=Component.Name,ReleaseDate,Highlight | ||
+ | |where=DATEDIFF(ReleaseDate,NOW()) >= -1 | ||
+ | |format=dynamic table | ||
+ | }} | ||
+ | |-| | ||
+ | Last week= | ||
+ | {{#cargo_query: | ||
+ | tables=ComponentRN,Component | ||
+ | |join on=ComponentRN.ComponentId HOLDS Component.Id | ||
+ | |fields=Component.Name,ReleaseDate,Highlight | ||
+ | |where=DATEDIFF(ReleaseDate,NOW()) >= -7 | ||
+ | |merge similar cells=yes | ||
+ | |format=dynamic table | ||
− | + | }} | |
+ | |-| | ||
+ | Last 30 days= | ||
+ | {{#cargo_query: | ||
+ | tables=ComponentRN,Component | ||
+ | |join on=ComponentRN.ComponentId HOLDS Component.Id | ||
+ | |fields=Component.Name,ReleaseDate,Highlight | ||
+ | |where=DATEDIFF(ReleaseDate,NOW()) >= -30 | ||
+ | |merge similar cells=yes | ||
+ | |format=dynamic table | ||
+ | |||
+ | }} | ||
+ | </tabber> |
Latest revision as of 21:37, April 20, 2022
TEST
Query: SELECT `cargo__Component`.`Name` AS `Name`,`ReleaseDate` AS `ReleaseDate`,`Highlight` AS `Highlight` FROM `cargo__ComponentRN` LEFT OUTER JOIN `cargo__Component` ON ((`cargo__ComponentRN`.`ComponentId` HOLDS `cargo__Component`.`Id`)) WHERE DATEDIFF(ReleaseDate,NOW()) >= -1 ORDER BY `cargo__Component`.`Name`,`ReleaseDate`,`Highlight` LIMIT 100 Function: CargoSQLQuery::run Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HOLDS `cargo__Component`.`Id`)) WHERE DATEDIFF(ReleaseDate,NOW()) >= -1 ORDER' at line 1 (127.0.0.1)
Query: SELECT `cargo__Component`.`Name` AS `Name`,`ReleaseDate` AS `ReleaseDate`,`Highlight` AS `Highlight` FROM `cargo__ComponentRN` LEFT OUTER JOIN `cargo__Component` ON ((`cargo__ComponentRN`.`ComponentId` HOLDS `cargo__Component`.`Id`)) WHERE DATEDIFF(ReleaseDate,NOW()) >= -7 ORDER BY `cargo__Component`.`Name`,`ReleaseDate`,`Highlight` LIMIT 100 Function: CargoSQLQuery::run Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HOLDS `cargo__Component`.`Id`)) WHERE DATEDIFF(ReleaseDate,NOW()) >= -7 ORDER' at line 1 (127.0.0.1)
Query: SELECT `cargo__Component`.`Name` AS `Name`,`ReleaseDate` AS `ReleaseDate`,`Highlight` AS `Highlight` FROM `cargo__ComponentRN` LEFT OUTER JOIN `cargo__Component` ON ((`cargo__ComponentRN`.`ComponentId` HOLDS `cargo__Component`.`Id`)) WHERE DATEDIFF(ReleaseDate,NOW()) >= -30 ORDER BY `cargo__Component`.`Name`,`ReleaseDate`,`Highlight` LIMIT 100 Function: CargoSQLQuery::run Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HOLDS `cargo__Component`.`Id`)) WHERE DATEDIFF(ReleaseDate,NOW()) >= -30 ORDE' at line 1 (127.0.0.1)