Template:Resultlink: Difference between revisions
mNo edit summary |
(new queries added: run list, result list, sample) |
||
Line 1: | Line 1: | ||
[http://base.opasnet.org/index.php?page_id={{PAGEID}}&wiki_id=1&sample={{{1|1}}} Show the newest result in Opasnet base] | [http://base.opasnet.org/index.php?page_id={{PAGEID}}&wiki_id=1&sample={{{1|1}}} Show the newest result in Opasnet base] | ||
{{#sql-query:SELECT | {{#sql-query: | ||
FROM | SELECT Var.Ident, Var.Name, Var.Unit, Res.id, Mean, N, Inf.Begin | ||
WHERE | FROM Obj as Var, Obj as Run, Res, Inf | ||
AND | WHERE Var.Ident = "Op_en{{PAGEID}}" | ||
AND | AND Var.id = Res.Obj_id_v | ||
GROUP BY | AND Run.id = Res.Obj_id_r | ||
AND Run.id = Inf.id | |||
GROUP BY Res.id | |||
ORDER BY Run.id DESC, Var.Ident | |||
|Show the means and samplesizes (N) for each result of this variable}} | |||
{{#sql-query: | {{#sql-query: | ||
Line 17: | Line 21: | ||
GROUP BY Var.id, Run.id | GROUP BY Var.id, Run.id | ||
|Show the new runs of this variable in Opasnet base}} | |Show the new runs of this variable in Opasnet base}} | ||
{{#sql-query: | |||
SELECT Var.Ident, Var.Unit, Res.id, Res.Obj_id_r as Run, Sample, Result | |||
FROM Obj as Var, Res, Sam | |||
WHERE Var.Ident = 'Op_en1904' | |||
AND Var.id = Res.Obj_id_v | |||
AND Res.id = Sam.Res_id | |||
ORDER BY Res.Obj_id_r, Var.Ident, Res.id | |||
|Show the full sample of each result distribution}} | |||
<noinclude> | <noinclude> |
Revision as of 14:11, 18 December 2008
Show the newest result in Opasnet base
{{#sql-query: SELECT Var.Ident, Var.Name, Var.Unit, Res.id, Mean, N, Inf.Begin 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 Res.id ORDER BY Run.id DESC, Var.Ident |Show the means and samplesizes (N) for each result of this variable}}
{{#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}}
{{#sql-query: SELECT Var.Ident, Var.Unit, Res.id, Res.Obj_id_r as Run, Sample, Result FROM Obj as Var, Res, Sam WHERE Var.Ident = 'Op_en1904' AND Var.id = Res.Obj_id_v AND Res.id = Sam.Res_id ORDER BY Res.Obj_id_r, Var.Ident, Res.id |Show the full sample of each result distribution}}
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.