For speed-kini.de we have two types of tables:
- Tables which show the current rankings overall, women, juniors, foil..
- Tables which show rankings of previous years (archive) for overall, women, juniors, foil…
The initial approach was having two different wpDataTables: one for the current year and one with the year as variable. This duplication should ring all your software engineer alarm bells!
Another possibility would have been to use the archive tables for the current rankings by just setting the variable to 2021, 2022 etc… this would mean work every year to edit the wordpress pages and manually increase the variable to the current year. So this is a bit nicer but still means regular maintenance work.
After some thought, I ended up with a neat approach how to use one table for both: current and archive.
For the current year you just leave the variable empty and for archive you specify the variable to your desired year.
The mechanism to default to the current year in case no year is specified consists of two parts:
#1 Setting the default value of %VAR1% to a very high number (> 5000 should be enough 😉 )

#2 Small SQL modifications to the places which use %VAR1%
[...]
WHEREYEAR(date) = LEAST(year(curdate()), %VAR1%)
[...]
15,844 comments
fichas de casino y su valor http://www.valorslots.com .
сколько стоит оформление перепланировки квартиры сколько стоит оформление перепланировки квартиры .
сколько стоит оформление перепланировки сколько стоит оформление перепланировки .
www newsky88 net http://www.newsky-online.com/ .
good day slot good day slot .
good day for play good day for play .
1xbet g?ncel adres http://1xbet-7.com/ .
1xbet giri?i http://www.1xbet-7.com/ .
valor de las fichas de casino valor de las fichas de casino .
согласование перепланировки помещений согласование перепланировки помещений .
beepbeep casino http://beepbeepcasino-online.com .
surewin slot http://www.surewin-online.com .
newsky slot https://newsky-online.com .
1xbet giris https://1xbet-7.com/ .
согласование проекта перепланировки согласование проекта перепланировки .
как согласовать перепланировку квартиры как согласовать перепланировку квартиры .
valor slots valor slots .
1xbet g?ncel adres http://1xbet-7.com .
newsky88 newsky-online.com .
J’ai un veritable coup de c?ur pour Lucky 31 Casino, ca offre une experience immersive. Le choix est aussi large qu’un festival, offrant des experiences de casino en direct. 100% jusqu’a 500 € avec des spins gratuits. Disponible a toute heure via chat ou email. Les retraits sont simples et rapides, mais encore plus de promos regulieres dynamiseraient le jeu. En conclusion, Lucky 31 Casino est une plateforme qui fait vibrer. En complement la plateforme est visuellement vibrante, donne envie de prolonger l’aventure. Egalement genial le programme VIP avec des niveaux exclusifs, qui stimule l’engagement.
Visiter maintenant|
1xbet giri? g?ncel http://1xbet-7.com .
1 x bet giri? https://1xbet-7.com/ .
beep casino https://www.beepbeepcasino-online.com .
fichas de casino y su valor http://valorslots.com/ .
surewin download http://surewin-online.com .
где согласовать перепланировку квартиры https://soglasovanie-pereplanirovki-1.ru .
newsky88 slot http://www.newsky-online.com .
заказать перепланировку http://soglasovanie-pereplanirovki-1.ru/ .
goodday4play goodday4play .
beep beep casino logowanie https://www.beepbeepcasino-online.com .
surewin download http://www.surewin-online.com/ .
beep beep casino no deposit promo code https://beepbeepcasino-online.com .
surewin login malaysia https://www.surewin-online.com .
growtogetherstrong – Positive and motivating, perfect for teamwork and community growth.
https://t.me/da_1xbet/8
goodday4play casino goodday4play casino .
valor casino login valor casino login .
где согласовать перепланировку квартиры soglasovanie-pereplanirovki-1.ru .
услуги по согласованию перепланировки квартиры http://soglasovanie-pereplanirovki-1.ru .
J’ai une passion debordante pour 1xBet Casino, ca donne une vibe electrisante. Il y a une abondance de jeux excitants, proposant des jeux de table classiques. Le bonus de depart est top. Les agents sont rapides et pros. Les transactions sont d’une fiabilite absolue, en revanche des recompenses additionnelles seraient ideales. En resume, 1xBet Casino vaut une exploration vibrante. En complement le site est fluide et attractif, ajoute une touche de dynamisme. Egalement top les paiements securises en crypto, assure des transactions fiables.
Aller plus loin|
aviator game at valor casino valorslots.com .
fichas casino valor fichas casino valor .
good day 4 play casino no deposit http://goodday4play-online.com/ .
goodday 4play goodday 4play .
beep casino beepbeepcasino-online.com .
sure win login http://www.surewin-online.com/ .
J’ai une passion debordante pour Action Casino, il procure une sensation de frisson. Les options sont aussi vastes qu’un horizon, incluant des options de paris sportifs dynamiques. Il rend le debut de l’aventure palpitant. Les agents repondent avec rapidite. Le processus est transparent et rapide, parfois des recompenses additionnelles seraient ideales. En somme, Action Casino offre une aventure inoubliable. De surcroit le design est moderne et energique, ce qui rend chaque moment plus vibrant. Un plus les tournois reguliers pour la competition, qui dynamise l’engagement.
Visiter la plateforme|
beep beep casino review http://www.beepbeepcasino-online.com/ .
surewin slot https://surewin-online.com/ .
Je suis fascine par Lucky 31 Casino, c’est un lieu ou l’adrenaline coule a flots. Il y a un eventail de titres captivants, offrant des tables live interactives. Le bonus de depart est top. Le support est efficace et amical. Les transactions sont d’une fiabilite absolue, cependant des recompenses en plus seraient un bonus. En resume, Lucky 31 Casino merite un detour palpitant. A souligner l’interface est simple et engageante, donne envie de prolonger l’aventure. Un element fort le programme VIP avec des niveaux exclusifs, propose des avantages sur mesure.
Rejoindre maintenant|