Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write query codes for to show student results after login session by using collegeID DROP TABLE IF EXISTS ` tblresult ` ; CREATE TABLE IF
write query codes for to show student results after login session by using collegeID
DROP TABLE IF EXISTS tblresult;
CREATE TABLE IF NOT EXISTS tblresult
id int NOT NULL,
StudentId int DEFAULT NULL,
ClassId int DEFAULT NULL,
SubjectId int DEFAULT NULL,
quiznumber int DEFAULT NULL,
marks int DEFAULT NULL,
DROP TABLE IF EXISTS tblclasses;
CREATE TABLE IF NOT EXISTS tblclasses
id int NOT NULL AUTOINCREMENT,
ClassName varchar DEFAULT NULL,
ClassNameNumeric int NOT NULL,
Section varchar NOT NULL,
CreationDate timestamp NOT NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NOT NULL DEFAULT :: ON UPDATE CURRENTTIMESTAMP,
PRIMARY KEY id
ENGINEInnoDB AUTOINCREMENT DEFAULT CHARSETlatin;
DROP TABLE IF EXISTS tblstudents;
CREATE TABLE IF NOT EXISTS tblstudents
StudentId int NOT NULL AUTOINCREMENT,
StudentName varchar NOT NULL,
RollId varchar NOT NULL,
StudentEmail varchar NOT NULL,
Gender varchar NOT NULL,
DOB varchar NOT NULL,
ClassId int NOT NULL,
RegDate timestamp NOT NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NULL DEFAULT NULL ON UPDATE CURRENTTIMESTAMP,
Status int NOT NULL,
PRIMARY KEY StudentId
ENGINEInnoDB DEFAULT CHARSETlatin;
DROP TABLE IF EXISTS tblsubjects;
CREATE TABLE IF NOT EXISTS tblsubjects
id int NOT NULL AUTOINCREMENT,
SubjectName varchar NOT NULL,
SubjectCode varchar NOT NULL,
Creationdate timestamp NOT NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NOT NULL DEFAULT :: ON UPDATE CURRENTTIMESTAMP,
PRIMARY KEY id
ENGINEInnoDB AUTOINCREMENT DEFAULT CHARSETlatin;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started