Template:Resultlink: Difference between revisions
(run list query added (based on the new Opasnet base structure)) |
mNo edit summary |
||
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 | {{#sql-query: | ||
FROM Obj as Var, Obj as Run, | SELECT Var.Ident, Var.Name, Var.Unit, Run.Ident, Inf.Begin, Inf.Who, Run.Name as Method | ||
WHERE Var.Ident = "Op_en{{PAGEID}}" | FROM Obj as Var, Obj as Run, Res, Inf | ||
WHERE Var.Ident = "Op_en{{PAGEID}}" | |||
AND Var.id = | AND Var.id = Res.Obj_id_v | ||
AND Run.id = | AND Run.id = Res.Obj_id_r | ||
AND Run.id = Inf.id | AND Run.id = Inf.id | ||
GROUP BY Var.id, Run.id|Show the new runs of this variable in Opasnet base}} | GROUP BY Var.id, Run.id | ||
|Show the new runs of this variable in Opasnet base}} | |||
<noinclude> | <noinclude> |
Revision as of 13:46, 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, Res, Inf WHERE Var.Ident = "Op_en2239" AND Var.id = Res.Obj_id_v AND Run.id = Res.Obj_id_r 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.