0% found this document useful (0 votes)
141 views

(I) No. Name Stipend Stream Avgmark Grade Class: Create The Table Givem Below With Name and Stiudent

The document describes a student table with columns for number, name, stipend, stream, average mark, grade, and class. It then lists several SQL commands to query the data in the table: 1. Select all nonmedical stream students. 2. List names of students in class 12 sorted by stipend. 3. List all students sorted by average mark descending, then by stipend. 4. Display a report with name, stipend, stream, and annual stipend amount. 5. Display the structure of the table. 6. Display unique stream values only. 7. Display only medical students in class 11. 8. Display all names starting with D.

Uploaded by

Udit Juneja
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views

(I) No. Name Stipend Stream Avgmark Grade Class: Create The Table Givem Below With Name and Stiudent

The document describes a student table with columns for number, name, stipend, stream, average mark, grade, and class. It then lists several SQL commands to query the data in the table: 1. Select all nonmedical stream students. 2. List names of students in class 12 sorted by stipend. 3. List all students sorted by average mark descending, then by stipend. 4. Display a report with name, stipend, stream, and annual stipend amount. 5. Display the structure of the table. 6. Display unique stream values only. 7. Display only medical students in class 11. 8. Display all names starting with D.

Uploaded by

Udit Juneja
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create the table givem below with name and stiudent

(i) Write SQL command for the following on the basis of given table
STUDENT
No. Name Stipend Stream AvgMark Grade Class

1 Karan 400.00 Medical 78.5 B 12B


2 Divakar 450.00 Commerce 89.2 A 11C
3 Divya 300.00 Commerce 68.6 C 12C
4 Arun 350.00 Humanities 73.1 B 12C
5 Sabina 500.00 Nonmedical 90.1 A 11A
6 John 400.00 Medical 75.4 B 12B
7 Robert 250.00 Humanities 64.4 C 11A
8 Rubina 450.00 Nonmedical 88.5 A 12A
9 Vikas 500.00 Nonmedical 92.0 A 12A
10 Mohan 300.00 Commerce 67.5 C 12C
1. select all the nonmedical
stream students from
Student table
2. List the names of those students who are in class 12 sorted by
stipend
3. List all students sorted by AvgMark in descending sorted by Stipend
4. Display a report, listing Name, stipend, stream and amount of
stipend received in a year assuming that the stipend is paid ever
month
5 Display structure of table
6 Display unique stream only
7 Display 11 Medical students only
8 Display all name starting with D

You might also like