Answered step by step
Verified Expert Solution
Link Copied!

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,
`quiz-number` int DEFAULT NULL,
`marks` int DEFAULT NULL,
DROP TABLE IF EXISTS `tblclasses`;
CREATE TABLE IF NOT EXISTS `tblclasses`(
`id` int NOT NULL AUTO_INCREMENT,
`ClassName` varchar(80) DEFAULT NULL,
`ClassNameNumeric` int NOT NULL,
`Section` varchar(5) NOT NULL,
`CreationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`UpdationDate` timestamp NOT NULL DEFAULT '0000-00-0000:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2111113 DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `tblstudents`;
CREATE TABLE IF NOT EXISTS `tblstudents`(
`StudentId` int NOT NULL AUTO_INCREMENT,
`StudentName` varchar(100) NOT NULL,
`RollId` varchar(100) NOT NULL,
`StudentEmail` varchar(100) NOT NULL,
`Gender` varchar(10) NOT NULL,
`DOB` varchar(100) NOT NULL,
`ClassId` int NOT NULL,
`RegDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`UpdationDate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`Status` int NOT NULL,
PRIMARY KEY (`StudentId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `tblsubjects`;
CREATE TABLE IF NOT EXISTS `tblsubjects`(
`id` int NOT NULL AUTO_INCREMENT,
`SubjectName` varchar(100) NOT NULL,
`SubjectCode` varchar(100) NOT NULL,
`Creationdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`UpdationDate` timestamp NOT NULL DEFAULT '0000-00-0000:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

Explain the value of using one-time passwords.

Answered: 1 week ago

Question

Draw a picture consisting parts of monocot leaf

Answered: 1 week ago