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