0% found this document useful (0 votes)
9 views1 page

DBMS_SQL_Lab_Work_1

The document provides SQL queries for a database named 'college' with a table 'student' containing student records. It includes tasks such as displaying all records, listing names and classes, filtering by class and gender, and deleting a specific record. The queries are designed to manipulate and retrieve data from the student table based on various conditions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

DBMS_SQL_Lab_Work_1

The document provides SQL queries for a database named 'college' with a table 'student' containing student records. It includes tasks such as displaying all records, listing names and classes, filtering by class and gender, and deleting a specific record. The queries are designed to manipulate and retrieve data from the student table based on various conditions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Q1.

Write SQL queries on the basis of following table:

Relation: Student

Name Class Fee Gender DOB

Rahul XII 1200 M 2005-02-01

Mehul XII 1200 M 2004-12-11

Manisha XI 1050 F 2006-10-12

Sujoy XI 1050 M NULL

Sonakshi XII 1200 F 2005-09-19

Suman X 950 F 2008-06-16

Firstly, create a database named as college and then create a


table named as student. Insert the above-mentioned records
into table student then solve the following problems---

i. Display all records from table student.


ii. List names of all students from table student.
iii. List name and class of all students from table student.
iv. List all students studying in class XII.
v. List names of male students.
vi. Show information of students having fee more than 1000.
vii. Show name, fee and class of students having fee below or
equal to 1100.
viii. View the complete structure of student table.
ix. show database and table.
x. Delete record from the table whose name is Rahul.

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