Template:Resultlink: Difference between revisions
Juha Villman (talk | contribs) mNo edit summary |
(run list query added (based on the new Opasnet base structure)) |
||
Line 8: | Line 8: | ||
GROUP BY Variable.var_id, Run.Run_id|Show the runs of this variable in Opasnet base}} | GROUP BY Variable.var_id, Run.Run_id|Show the runs of this variable in Opasnet base}} | ||
{{#sql-query:SELECT Var.Ident, Var.Name, Var.Unit, Run.Ident, Inf.Begin, Inf.Who, Run.Name as Method | |||
FROM Obj as Var, Obj as Run, Sett, Item, Inf | |||
WHERE Var.Ident = "Op_en{{PAGEID}}" | |||
AND Sett.Sty_id = 9 | |||
AND Var.id = Item.Obj_id | |||
AND Run.id = Sett.Obj_id | |||
AND Item.Sett_id = Sett.id | |||
AND Run.id = Inf.id | |||
GROUP BY Var.id, Run.id|Show the new runs of this variable in Opasnet base}} | |||
<noinclude> | <noinclude> |
Revision as of 04:47, 18 December 2008
Show the newest result in Opasnet base
{{#sql-query:SELECT Var_name, Var_title, Var_unit, Run.Run_id, Run_date, Run_who, Run_method FROM Variable , Run_list, Run WHERE Variable.var_name = "Op_en2239" AND Variable.var_id = Run_list.Var_id AND Run_list.Run_id = Run.Run_id GROUP BY Variable.var_id, Run.Run_id|Show the runs of this variable in Opasnet base}}
{{#sql-query:SELECT Var.Ident, Var.Name, Var.Unit, Run.Ident, Inf.Begin, Inf.Who, Run.Name as Method FROM Obj as Var, Obj as Run, Sett, Item, Inf WHERE Var.Ident = "Op_en2239" AND Sett.Sty_id = 9 AND Var.id = Item.Obj_id AND Run.id = Sett.Obj_id AND Item.Sett_id = Sett.id AND Run.id = Inf.id GROUP BY Var.id, Run.id|Show the new runs of this variable in Opasnet base}}
USAGE:
This template creates a link to a variable in result database.
First parameter is number of samples.
Development idea: Templaatti avaa tuloksen uuteen ikkunaan. Siellä on linkki, jota klikkaamalla tulee compare versions muuttujan nykyisestä wikisivusta ja siitä, joka oli voimassa sillä hetkellä kun muuttuja laskettiin tulostietokantaan.