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

Mysql Assignment - 2: Where Quality Matters

The document provides sample SQL queries to practice creating and querying a student database table with fields for roll number, name, class, section, address, city, and phone number. It includes queries to create the student table, insert data, display specific fields, and filter records based on attributes like city, class, section, name, and other criteria. Fourteen queries are listed to select, insert, and filter records in the student table.

Uploaded by

Ghanshyam Sharma
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)
203 views1 page

Mysql Assignment - 2: Where Quality Matters

The document provides sample SQL queries to practice creating and querying a student database table with fields for roll number, name, class, section, address, city, and phone number. It includes queries to create the student table, insert data, display specific fields, and filter records based on attributes like city, class, section, name, and other criteria. Fourteen queries are listed to select, insert, and filter records in the student table.

Uploaded by

Ghanshyam Sharma
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

INFOTECH where quality matters

MYSQL ASSIGNMENT - 2
Question. Suppose there is a table named SCHOOL? Write SQL Queries as per the following table fields -
ROLL, NAME, CLASS, SECTION, ADDRESS, CITY, PHONE
Q1. Create a student table with the following structure. Suppose your own data type and size ?

Q2. Display all the records of table student ?

Q3. Display roll and name of all the students ?

Q4. Display records of those students who lives in ajmer ?

Q5. Insert a new record in table student with the following set of values ?
101 ram xi c shivaji nagar ajmer 9856252352

Q6. Insert a new record in the table with the following set of values ?
102 shyam xii a ajmer road beawar NULL

Q7. Display records of those student who reads in class XIth ?

Q8. Display names of those students who reads in section a or section b ?

Q9. Display records of those student who reads in class XI section C ?

Q10. Display roll number and names of those students who lives in ajmer or jaipur ?

Q11. Display records of those students whose name starts with the letter r ?

Q12. Display records of those students who lives in ajmer, jaipur, beawar or nasirabad ?

Q13. Display names of those students who do not reads in section A?

Q14. Display records of those student who do not reads in Class XII A ?

FIRST FLOOR, OPPOSITE BANK OF BARODA


AJMER RO AD, KISHANGARH (RAJ) 305801 CALL:+91-98291-71122
EMAIL:in [email protected] | WEBSITE:ww w.infotechcomputer .in

You might also like