Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
488 views
in Structured Query Language by (31.4k points)
reopened by

Write SQL query to construct a table student with fields Reg No, Stud Name, Sex, Course, grade, etc. As per the following conditions 

1. Reg No should not be empty and using this column any rows in that table can be identified. Reg. No. 

2. Student name should have some value. 

3. Default value of sex be Female. 

4. Grade should be any of the values: A+, A, B+, B, C+, C, D+, D, E

Please log in or register to answer this question.

1 Answer

+1 vote
by (30.9k points)
edited by

Create table Student(RollNo decimal(3) not null primary key, 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...