Difference between revisions of "User: Bgrenon/1"
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | TEST<tabber> | |
− | <tabber> | ||
Last 24 hours= | Last 24 hours= | ||
{{#cargo_query: | {{#cargo_query: | ||
− | tables=ComponentRN | + | tables=ComponentRN,Component |
− | |fields= | + | |join on=ComponentRN.ComponentId HOLDS Component.Id |
+ | |fields=Component.Name,ReleaseDate,Highlight | ||
|where=DATEDIFF(ReleaseDate,NOW()) >= -1 | |where=DATEDIFF(ReleaseDate,NOW()) >= -1 | ||
+ | |format=dynamic table | ||
}} | }} | ||
|-| | |-| | ||
Last week= | Last week= | ||
{{#cargo_query: | {{#cargo_query: | ||
− | tables=ComponentRN | + | tables=ComponentRN,Component |
− | |fields= | + | |join on=ComponentRN.ComponentId HOLDS Component.Id |
+ | |fields=Component.Name,ReleaseDate,Highlight | ||
|where=DATEDIFF(ReleaseDate,NOW()) >= -7 | |where=DATEDIFF(ReleaseDate,NOW()) >= -7 | ||
|merge similar cells=yes | |merge similar cells=yes | ||
+ | |format=dynamic table | ||
+ | |||
}} | }} | ||
|-| | |-| | ||
Last 30 days= | Last 30 days= | ||
{{#cargo_query: | {{#cargo_query: | ||
− | tables=ComponentRN | + | tables=ComponentRN,Component |
− | |fields= | + | |join on=ComponentRN.ComponentId HOLDS Component.Id |
+ | |fields=Component.Name,ReleaseDate,Highlight | ||
|where=DATEDIFF(ReleaseDate,NOW()) >= -30 | |where=DATEDIFF(ReleaseDate,NOW()) >= -30 | ||
|merge similar cells=yes | |merge similar cells=yes | ||
+ | |format=dynamic table | ||
+ | |||
}} | }} | ||
</tabber> | </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)