Updating Normative Data in Mind Games

Use the program SQLite Browser located in documents.

Run query on the server to re-create normative data table.

delete from topscores where game=’MEMORYRACER’ and level<3;
repair table topscores;
truncate table norms;
insert into norms (game,age,level,mean,sd,n)
select game, age, level, AVG(CAST(score AS SIGNED)) as mean,
std(cast(score as signed)) as sd,
count(ident) as n from topscores
where cast(other as signed) between 1 and 3 and
game not in (‘MINESWEEPER’,’SHUFFLE’)
/*and\n (cast(score2 as signed)>=60 or (game in (\’SPEEDTRIVIA\’,\’VOCABULARYSTAR\’,\’SERIAL_MEMORY\’,\’MEMORYSPAN\’,\’PUZZLEMYMIND\’))) and \n cast(score as signed)>0*/
group by game, age, level;

Run query to display all records in norms table.

Copy Row Content.  (Needs to be unquoted)

Paste into excel.  Save as CSV to documents/norm data.  MUST EXIT OUT OF EXCEL.

Open raw csv in n++.  Paste the following row in the top line.  IDNORMS,GAME,AGE,LEVEL,MEAN,SD,N

Open SQLite browser.  Open the norms.db database file.

Delete table normsdata.

Import CSV to table normsdata.