Database Anniversary Dates: Difference between revisions
Ttenbergen (talk | contribs) m m - still in progress... |
Ttenbergen (talk | contribs) |
||
| (37 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Anniversary dates | Anniversary dates for: | ||
<!-- this will self-update the age BUT NOT THE UNITS as they are added and removed --> | |||
== Current == | |||
{{# | {{#cargo_query: | ||
| | tables=CollectionLocation | ||
| | |fields=_pageName=unit, | ||
| | StartDate=start, | ||
| | DATEDIFF(COALESCE(EndDate, CURRENT_DATE()),StartDate)=days, | ||
CONCAT("{{age{{!}}EndDate=",COALESCE(EndDate, CURRENT_DATE()),"{{!}}StartDate=",StartDate,"}}")=years | |||
|where=EndDate IS NULL | |||
|order by=unit | |||
|limit=100 | |||
|default=no results were found | |||
}} | }} | ||
{{# | == Legacy == | ||
| | {{#cargo_query: | ||
tables=CollectionLocation | |||
|fields=_pageName=unit, | |||
StartDate=start, | |||
EndDate=end, | |||
DATEDIFF(COALESCE(EndDate, CURRENT_DATE()),StartDate)=days, | |||
CONCAT("{{age{{!}}EndDate=",COALESCE(EndDate, CURRENT_DATE()),"{{!}}StartDate=",StartDate,"}}")=years | |||
|where=EndDate IS NOT NULL | |||
|order by=unit | |||
|limit=100 | |||
|default=no results were found | |||
}} | }} | ||
== Wiki == | |||
* the first account on this wiki was set up 2008-03-11 | |||
== Related articles == | |||
{{Related Articles}} | |||
[[Category:Site and Location]] | |||