File: oci8po.sql

package info (click to toggle)
moodle 1.4.4.dfsg.1-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 57,876 kB
  • ctags: 29,496
  • sloc: php: 271,617; sql: 5,084; xml: 702; perl: 638; sh: 403; java: 283; makefile: 42; pascal: 21
file content (630 lines) | stat: -rwxr-xr-x 21,836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
rem
rem Oracle - draft draft draft untested untested untested
rem

set echo on pagesize 60

rem
rem Table structure for table quiz
rem

drop table prefix_quiz;
CREATE TABLE prefix_quiz (
  id number(10) primary key,
  course number(10)  default '0' not null,
  name varchar2(255) default '' not null,
  intro varchar2(255) NOT NULL,
  timeopen number(10) default '0' not null,
  timeclose number(10) default '0' not null,
  attempts number(6) default '0' not null,
  attemptonlast number(1) default '0',
  feedback number(4) default '0' not null,
  correctanswers number(4) default '1' not null,
  grademethod number(4) default '1' not null,
  review number(4) default '0' not null,
  shufflequestions number(4) default '0' not null,
  shuffleanswers number(4) default '0' not null,
  questions varchar2(255) NOT NULL,
  sumgrades number(10) default '0' not null,
  grade number(10) default '0' not null,
  timecreated number(10) default '0' not null,
  timemodified number(10) default '0' not null
);

comment on table prefix_quiz is 'Main information about each quiz';

drop sequence pqs;
create sequence pqs;

create or replace trigger pqt
  before insert on prefix_quiz
  referencing new as new_row
  for each row
  begin
    select pqs.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz(course,name,intro, timeopen,timeclose,attempts,attemptonlast,feedback,correctanswers,grademethod,review,shufflequestions,shuffleanswers,questions,sumgrades,grade,timecreated,timemodified) values(1,'1','1',1,1,1,1,1,1,1,1,1,1,'1',1,1,1,1);
insert into prefix_quiz(course,name,intro, timeopen,timeclose,attempts,attemptonlast,feedback,correctanswers,grademethod,review,shufflequestions,shuffleanswers,questions,sumgrades,grade,timecreated,timemodified) values(2,'2','2',2,2,2,2,2,2,2,2,2,2,'2',2,2,2,2);
insert into prefix_quiz(course,name,intro, timeopen,timeclose,attempts,attemptonlast,feedback,correctanswers,grademethod,review,shufflequestions,shuffleanswers,questions,sumgrades,grade,timecreated,timemodified) values(3,'3','3',3,3,3,3,3,3,3,3,3,3,'3',3,3,3,3);
insert into prefix_quiz(course,name,intro, timeopen,timeclose,attempts,attemptonlast,feedback,correctanswers,grademethod,review,shufflequestions,shuffleanswers,questions,sumgrades,grade,timecreated,timemodified) values(4,'4','4',4,4,4,4,4,4,4,4,4,4,'4',4,4,4,4);

select * from prefix_quiz order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_answers
rem

drop TABLE prefix_quiz_answers;
CREATE TABLE prefix_quiz_answers (
  id number(10)  NOT NULL  PRIMARY KEY,
  question number(10)  default '0' not null,
  answer varchar(255) default '' not null,
  fraction varchar(10) default '0.0',
  feedback varchar2(255) NOT NULL
);

COMMENT on table prefix_quiz_answers is 'Answers, with a fractional grade (0-1) and feedback';

create index question on prefix_quiz_answers(question);

drop sequence pqas;
create sequence pqas;

create or replace trigger pqat
  before insert on prefix_quiz_answers
  referencing new as new_row
  for each row
  begin
    select pqas.nextval into :new_row.id from dual;
  end;
.
/

insert into prefix_quiz_answers(question,answer,fraction,feedback) values(1,'1','1','1');
insert into prefix_quiz_answers(question,answer,fraction,feedback) values(2,'2','2','2');
insert into prefix_quiz_answers(question,answer,fraction,feedback) values(3,'3','3','3');
insert into prefix_quiz_answers(question,answer,fraction,feedback) values(4,'4','4','4');

col feedback format a10
select * from prefix_quiz_answers order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_attempts
rem

drop table prefix_quiz_attempts;
CREATE TABLE prefix_quiz_attempts (
  id number(10)  primary key,
  quiz number(10)  default '0' not null,
  userid number(10)  default '0' not null,
  attempt number(6) default '0' not null,
  sumgrades varchar(10) default '0.0' not null,
  timestart number(10)  default '0' not null,
  timefinish number(10)  default '0' not null,
  timemodified number(10)  default '0' not null
);

COMMENT on table prefix_quiz_attempts is 'Stores various attempts on a quiz';

create index quiz on prefix_quiz_attempts(quiz);
create index userid0 on prefix_quiz_attempts(userid);

drop sequence pq_attempts_seq;
create sequence pq_attempts_seq;

create or replace trigger pq_attempts_trig
  before insert on prefix_quiz_attempts
  referencing new as new_row
  for each row
  begin
    select pq_attempts_seq.nextval into :new_row.id from dual;
  end;
.
/

insert into prefix_quiz_attempts(quiz,userid,attempt,sumgrades,timestart,timefinish,timemodified) values(1,1,1,'1',1,1,1);
insert into prefix_quiz_attempts(quiz,userid,attempt,sumgrades,timestart,timefinish,timemodified) values(2,2,2,'2',2,2,2);
insert into prefix_quiz_attempts(quiz,userid,attempt,sumgrades,timestart,timefinish,timemodified) values(3,3,3,'3',3,3,3);
insert into prefix_quiz_attempts(quiz,userid,attempt,sumgrades,timestart,timefinish,timemodified) values(4,4,4,'4',4,4,4);

select * from prefix_quiz_attempts order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_categories
rem

drop table prefix_quiz_categories;
CREATE TABLE prefix_quiz_categories (
  id number(10) primary key,
  course number(10)  default '0' not null,
  name varchar(255) default '' not null,
  info varchar2(1024) not null,
  publish number(4) default '0' not null
);

COMMENT on table prefix_quiz_categories is 'Categories are for grouping questions';

drop sequence pq_categories_seq;
create sequence pq_categories_seq;

create or replace trigger pq_categories_trig
  before insert on prefix_quiz_categories
  referencing new as new_row
  for each row
  begin
    select pq_categories_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_categories (course,name,info,publish) values (1,1,1,1);
insert into prefix_quiz_categories (course,name,info,publish) values (2,2,2,2);
insert into prefix_quiz_categories (course,name,info,publish) values (3,3,3,3);
insert into prefix_quiz_categories (course,name,info,publish) values (4,4,4,4);

select * from prefix_quiz_categories order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_grades
rem

drop TABLE prefix_quiz_grades;
CREATE TABLE prefix_quiz_grades (
  id number(10)  NOT NULL ,
  quiz number(10)  default '0' not null,
  userid number(10) default '0' not null,
  grade varchar(10) default '0.0' not null,
  timemodified number(10) default '0' not null
);

COMMENT on table prefix_quiz_grades is 'Final quiz grade (may be best of several attempts)';

create index quiz0 on prefix_quiz_grades(quiz);
create index userid1 on prefix_quiz_grades(userid);

drop sequence pq_grades_seq;
create sequence pq_grades_seq;

create or replace trigger pq_grades_trig
  before insert on prefix_quiz_grades
  referencing new as new_row
  for each row
  begin
    select pq_grades_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_grades (quiz,userid,grade,timemodified) values (1,1,1,1);
insert into prefix_quiz_grades (quiz,userid,grade,timemodified) values (2,2,2,2);
insert into prefix_quiz_grades (quiz,userid,grade,timemodified) values (3,3,3,3);
insert into prefix_quiz_grades (quiz,userid,grade,timemodified) values (4,4,4,4);

select * from prefix_quiz_grades order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_match
rem

drop TABLE prefix_quiz_match;
CREATE TABLE prefix_quiz_match (
  id number(10) primary key,
  question number(10) default '0' not null,
  subquestions varchar2(255) default '' not null
);

COMMENT on table prefix_quiz_match is 'Defines fixed matching questions';

drop sequence pq_match_seq;
create sequence pq_match_seq;

create or replace trigger pq_match_trig
  before insert on prefix_quiz_match
  referencing new as new_row
  for each row
  begin
    select pq_match_seq.nextval into :new_row.id from dual;
  end;
.
/

create index question4 on prefix_quiz_match(question);

insert into prefix_quiz_match(question,subquestions) values(1,'1');
insert into prefix_quiz_match(question,subquestions) values(2,'2');
insert into prefix_quiz_match(question,subquestions) values(3,'3');
insert into prefix_quiz_match(question,subquestions) values(4,'4');

rem --------------------------------------------------------
rem
rem Table structure for table quiz_match_sub
rem

drop TABLE prefix_quiz_match_sub;
CREATE TABLE prefix_quiz_match_sub (
  id number(10)  primary key,
  question number(10)  default '0' not null,
  questiontext varchar2(1024) NOT NULL,
  answertext varchar2(255) default '' not null
);

COMMENT on table prefix_quiz_match_sub is 'Defines the subquestions that make up a matching question';

CREATE index question6 on prefix_quiz_match_sub (question);

drop sequence pq_match_sub_seq;
create sequence pq_match_sub_seq;

create or replace trigger pq_match_sub_trig
  before insert on prefix_quiz_match_sub
  referencing new as new_row
  for each row
  begin
    select pq_match_sub_seq.nextval into :new_row.id from dual;
  end;
.
/

insert into prefix_quiz_match_sub (question,questiontext,answertext) values(1,'1','1');
insert into prefix_quiz_match_sub (question,questiontext,answertext) values(2,'2','2');
insert into prefix_quiz_match_sub (question,questiontext,answertext) values(3,'3','3');
insert into prefix_quiz_match_sub (question,questiontext,answertext) values(4,'4','4');

select * from prefix_quiz_match_sub order by 1,2;

rem --------------------------------------------------------
rem Table structure for table quiz_multichoice
rem

drop TABLE prefix_quiz_multichoice;
CREATE TABLE prefix_quiz_multichoice (
  id number(10) primary key,
  question number(10) default '0' not null,
  layout number(4) default '0' not null,
  answers varchar(255) default '' not null,
  single number(4) default '0' not null
);

COMMENT on table prefix_quiz_multichoice is 'Options for multiple choice questions';

CREATE index question7 on prefix_quiz_multichoice(question);

drop sequence pq_multichoice_seq;
create sequence pq_multichoice_seq;

create or replace trigger pq_multichoice_trig
  before insert on prefix_quiz_multichoice
  referencing new as new_row
  for each row
  begin
    select pq_multichoice_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_multichoice (question,layout,answers,single) values (1,1,1,1);
insert into prefix_quiz_multichoice (question,layout,answers,single) values (2,2,2,2);
insert into prefix_quiz_multichoice (question,layout,answers,single) values (3,3,3,3);
insert into prefix_quiz_multichoice (question,layout,answers,single) values (4,4,4,4);

select * from prefix_quiz_multichoice order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_question_grades
rem

drop TABLE prefix_quiz_question_grades;
CREATE TABLE prefix_quiz_question_grades (
  id number(10)  NOT NULL ,
  quiz number(10)  default '0',
  question number(10) default '0',
  grade number(6) default '0'
);

COMMENT on table prefix_quiz_question_grades is 'The grade for a question in a quiz';

CREATE index quiz1 on prefix_quiz_question_grades(quiz);
CREATE index question8 on prefix_quiz_question_grades(question);

drop sequence pq_question_grades_seq;
create sequence pq_question_grades_seq;

create or replace trigger pq_question_grades_trig
  before insert on prefix_quiz_question_grades
  referencing new as new_row
  for each row
  begin
    select pq_question_grades_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_question_grades (quiz,question,grade) values (1,1,1);
insert into prefix_quiz_question_grades (quiz,question,grade) values (2,2,2);
insert into prefix_quiz_question_grades (quiz,question,grade) values (3,3,3);
insert into prefix_quiz_question_grades (quiz,question,grade) values (4,4,4);

select * from prefix_quiz_question_grades order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_questions
rem

drop TABLE prefix_quiz_questions;
CREATE TABLE prefix_quiz_questions (
  id number(10) primary key,
  category number(10) default '0' not null,
  name varchar(255) default '' not null,
  questiontext varchar2(1024) NOT NULL,
  image varchar(255) default '' not null,
  defaultgrade number(4) default '1' not null,
  qtype number(6) default '0' not null,
  stamp varchar2(255) default '' not null,
  version number(10) default '1' not null
);

COMMENT on table prefix_quiz_questions is 'The quiz questions themselves';

drop sequence pq_questions_seq;
create sequence pq_questions_seq;

create or replace trigger pq_questions_trig
  before insert on prefix_quiz_questions
  referencing new as new_row
  for each row
  begin
    select pq_questions_seq.nextval into :new_row.id from dual;
  end;
.
/

insert into prefix_quiz_questions (category,name,questiontext,image,defaultgrade,qtype,stamp,version) values(1,'1','1','1',1,1,'1',1);
insert into prefix_quiz_questions (category,name,questiontext,image,defaultgrade,qtype,stamp,version) values(2,'2','2','2',2,2,'2',2);
insert into prefix_quiz_questions (category,name,questiontext,image,defaultgrade,qtype,stamp,version) values(3,'3','3','3',3,3,'3',3);
insert into prefix_quiz_questions (category,name,questiontext,image,defaultgrade,qtype,stamp,version) values(4,'4','4','4',4,4,'4',4);

select * from prefix_quiz_questions order by 1,2;

rem --------------------------------------------------------
rem
rem Table structure for table quiz_randomsamatch
rem

drop TABLE prefix_quiz_randomsamatch;
CREATE TABLE prefix_quiz_randomsamatch (
  id number(10) primary key,
  question number(10) default '0' not null,
  choose number(4) DEFAULT '4' NOT NULL
);

COMMENT on table prefix_quiz_randomsamatch is 'Info about a random short-answer matching question';

drop sequence pq_quiz_randoms_seq;
create sequence pq_quiz_randoms_seq;

create or replace trigger pq_quiz_randoms_trig
  before insert on prefix_quiz_randomsamatch
  referencing new as new_row
  for each row
  begin
    select pq_quiz_randoms_seq.nextval into :new_row.id from dual;
  end;
.

create index question0 on prefix_quiz_randomsamatch (question);

insert into prefix_quiz_randomsamatch(id,question,choose) values(1,1,1);
insert into prefix_quiz_randomsamatch(id,question,choose) values(2,2,2);
insert into prefix_quiz_randomsamatch(id,question,choose) values(3,3,3);
insert into prefix_quiz_randomsamatch(id,question,choose) values(4,4,4);

select * from prefix_quiz_randomsamatch order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_responses
rem

drop TABLE prefix_quiz_responses;
CREATE TABLE prefix_quiz_responses (
  id number(10)  primary key,
  attempt number(10) default '0' not null,
  question number(10) default '0' not null,
  answer varchar(255) default '' not null,
  grade varchar(10) default '0.0' not null
);

COMMENT on table prefix_quiz_questions is 'Stores user responses to a quiz, and percentage grades';

create index attempt on prefix_quiz_responses(attempt);
create index question1 on prefix_quiz_responses(question);

drop sequence pq_responses_seq;
create sequence pq_responses_seq;

create or replace trigger pq_responses_trig
  before insert on prefix_quiz_responses
  referencing new as new_row
  for each row
  begin
    select pq_responses_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_responses (attempt,question,answer,grade) values (1,1,'answer1','grade1');
insert into prefix_quiz_responses (attempt,question,answer,grade) values (2,2,'answer2','grade2');
insert into prefix_quiz_responses (attempt,question,answer,grade) values (3,3,'answer3','grade3');
insert into prefix_quiz_responses (attempt,question,answer,grade) values (4,4,'answer4','grade4');

select * from prefix_quiz_responses order by 1,2;

rem --------------------------------------------------------

rem
rem Table structure for table quiz_shortanswer
rem

drop TABLE prefix_quiz_shortanswer;
CREATE TABLE prefix_quiz_shortanswer (
  id number(10) primary key,
  question number(10) default '0' not null,
  answers varchar(255) default '' not null,
  usecase number(2) default '0' not null
);

COMMENT on table prefix_quiz_shortanswer is 'Options for short answer questions';

create index question2 on prefix_quiz_shortanswer(question);

drop sequence pq_shortanswer_seq;
create sequence pq_shortanswer_seq;

create or replace trigger pq_shortanswer_trig
  before insert on prefix_quiz_shortanswer
  referencing new as new_row
  for each row
  begin
    select pq_shortanswer_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_shortanswer (question,answers,usecase) values (1,'answer1',1);
insert into prefix_quiz_shortanswer (question,answers,usecase) values (2,'answer2',2);
insert into prefix_quiz_shortanswer (question,answers,usecase) values (3,'answer3',3);
insert into prefix_quiz_shortanswer (question,answers,usecase) values (4,'answer4',4);

select * from prefix_quiz_shortanswer order by 1,2;

rem --------------------------------------------------------


rem
rem Table structure for table quiz_numerical
rem

drop TABLE prefix_quiz_numerical;
CREATE TABLE prefix_quiz_numerical (
  id number(10) primary key,
  question number(10) default '0' not null,
  answer number(10) default '0' not null,
  min varchar2(255) default '' not null,
  max varchar2(255) default '' not null
);

COMMENT on table prefix_quiz_numerical is 'Options for numerical questions';

create index answer on prefix_quiz_numerical(answer);

drop sequence pq_numerical_seq;
create sequence pq_numerical_seq;

create or replace trigger pq_numerical_trig
  before insert on prefix_quiz_numerical
  referencing new as new_row
  for each row
  begin
    select pq_numerical_seq.nextval into :new_row.id from dual;
  end;
.
/

insert into prefix_quiz_numerical (question,answer,min,max) values (1,1,'1','1');
insert into prefix_quiz_numerical (question,answer,min,max) values (2,2,'2','2');
insert into prefix_quiz_numerical (question,answer,min,max) values (3,3,'3','3');
insert into prefix_quiz_numerical (question,answer,min,max) values (4,4,'4','4');

select * from prefix_quiz_numerical order by 1,2;

rem --------------------------------------------------------
rem
rem Table structure for table quiz_truefalse
rem

drop TABLE prefix_quiz_truefalse;
CREATE TABLE prefix_quiz_truefalse (
  id number(10)  primary key,
  question number(10)  default '0' not null,
  trueanswer number(10)  default '0' not null,
  falseanswer number(10) default '0' not null
);

COMMENT on table prefix_quiz_truefalse is 'Options for True-False questions';

create index question3 on prefix_quiz_truefalse(question);

drop sequence pq_truefalse_seq;
create sequence pq_truefalse_seq;

create or replace trigger pq_truefalse_trig
  before insert on prefix_quiz_truefalse
  referencing new as new_row
  for each row
  begin
    select pq_truefalse_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_truefalse (question,trueanswer,falseanswer) values (1,1,1);
insert into prefix_quiz_truefalse (question,trueanswer,falseanswer) values (2,2,2);
insert into prefix_quiz_truefalse (question,trueanswer,falseanswer) values (3,3,3);
insert into prefix_quiz_truefalse (question,trueanswer,falseanswer) values (4,4,4);

select * from prefix_quiz_truefalse order by 1,2;

rem --------------------------------------------------------
rem
rem Table structure for table quiz_multianswers
rem

drop TABLE prefix_quiz_multianswers;
CREATE TABLE prefix_quiz_multianswers (
  id number(10)  primary key,
  question number(10)  default '0' not null,
  trueanswer number(10)  default '0' not null,
  falseanswer number(10) default '0' not null
);

COMMENT on table prefix_quiz_multianswers is 'Options for True-False questions';

create index question5 on prefix_quiz_multianswers(question);

drop sequence pq_multianswers_seq;
create sequence pq_multianswers_seq;

create or replace trigger pq_multianswers_trig
  before insert on prefix_quiz_multianswers
  referencing new as new_row
  for each row
  begin
    select pq_multianswers_seq.nextval into :new_row.id from dual;
  end;
.
/
insert into prefix_quiz_multianswers (question,trueanswer,falseanswer) values (1,1,1);
insert into prefix_quiz_multianswers (question,trueanswer,falseanswer) values (2,2,2);
insert into prefix_quiz_multianswers (question,trueanswer,falseanswer) values (3,3,3);
insert into prefix_quiz_multianswers (question,trueanswer,falseanswer) values (4,4,4);

select * from prefix_quiz_multianswers order by 1,2;

delete from prefix_log_display where module='quiz';
INSERT INTO prefix_log_display VALUES ('quiz', 'view', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'report', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'attempt', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'submit', 'quiz', 'name');

select * from prefix_log_display where module='quiz' order by 1,2;