0% found this document useful (0 votes)
60 views2 pages

Schema Iris

The document contains SQL commands to create a database called "iris" with several tables: a "register" table to store user details, an "admin" table to store admin credentials, a "question" table to store quiz questions, a "result" table to store user quiz results, a "message" table to store messages between users, and a "freezed" table to store saved quiz attempts. Some records are inserted into the "admin", "question" and "freezed" tables.

Uploaded by

Rahul Chouksey
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views2 pages

Schema Iris

The document contains SQL commands to create a database called "iris" with several tables: a "register" table to store user details, an "admin" table to store admin credentials, a "question" table to store quiz questions, a "result" table to store user quiz results, a "message" table to store messages between users, and a "freezed" table to store saved quiz attempts. Some records are inserted into the "admin", "question" and "freezed" tables.

Uploaded by

Rahul Chouksey
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

drop database iris;

create database iris;


use iris;

create table register


(
eid varchar(40) primary key Not null,
name varchar(30),
sex varchar(6),
contact varchar(15),
Address varchar(40),
cat varchar(10),
image longblob,
stat int(1)
);

create table admin


(
seq int(2) auto_increment primary key not null,
aid varchar(30) not null,
apass varchar(30) not null
);
insert into admin(seq,aid,apass) values(null,'admin','admin');

create table question


(
qid int auto_increment primary key not null,
subject varchar(15),
ques varchar(2000),
o1 varchar(30),
o2 varchar(30),
o3 varchar(30),
o4 varchar(30),
ans varchar(5),
explanation varchar(2000)
);

insert into question values(null,'Java','what is java','Prog. Lang.','Query Lang


.','Scripting Lang','None','A','None');
insert into question values(null,'C',' The C language terminator is',' semicolon
','colon','period','exclamation mark','A','None');
insert into question values(null,'Chemistery','Name the phenomena in which one p
roton is jumped from one isomer to another isomer to create two different elemen
ts','Functional Isomerisim',' Sterio Merisim','Tauto Merisim',' Penta Merisim','
C','None');
insert into question values(null,'Math','a and b are two numbers selected random
ly from 1,2,3.... 25 what is the probability of a and b are not equal','1/25','2
4/25','13/25',' 2/25','B','None');
insert into question values(null,'C','What is the output: main()
{
printf(5+"Fascimile");
}','mile','Fascimile','5Fascimile','None','A','None');
insert into question values(null,'C','If i = 5 what is the output of:
printf("%d %d %d", ++i ,i ,i++);',' 5,6,7',' 6,6,7 ','7,6,5',' 6,5,5','C','None
');
insert into question values(null,'Math','Find the next term of series:0, 6, 24,
60, 120, 210, 210, ?','336','210','60','420','A','None');
insert into question values(null,'Comp. Archi.','Which of the following is a uni
versal gate ?','OR','AND','XOR','NOR','D','None');
insert into question values(null,'OS','Semaphore is used for','synchronization',
'dead-lock avoidence','box','None','A','None');
insert into question values(null,'Comp.Funda.','Pick the odd man out','IO.SYS','
MSDOS.SYS','ROM-BIOS','COMMAND.COM ','C','None');

create table result


(
rid int auto_increment primary key not null,
eid varchar(40) references register(eid),
wrong int(3),
correct int(3),
dot date
);

create table message


(
mid int(5) auto_increment primary key not null,
sub varchar(30),
to_eid varchar(40) references register(eid),
from_eid varchar(40) references register(eid),
msg_date datetime,
msg varchar(2000)
);
create table freezed
(
fid int(5) auto_increment primary key not null,
tatt int(3),
wrog int(3),
correct int(3),
datt datetime,
uid varchar(40) references register(eid)
);

insert into freezed values(1,5,2,3,'2011-11-11','xyz@email.com');

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy