Class XI MYSQL
Class XI MYSQL
Class XI MYSQL
MySQL is the most popular Open Source Relational SQL Database Management
System. MySQL is one of the best RDBMS being used for developing various web-
based software applications.
SQL is a standard language for storing, manipulating and retrieving data in database.
RECORDS
Records are composed of fields, each of which contains one item of information. A set
of records constitutes a file. For example, a personnel file :eg a name field, an
address field, and a phone number field. In relational database management
systems, records are called tuples.
FILE
A field is a single piece of information; a record is one complete set of fields; and
a file is a collection of records.
DATABASE
Database. A database is a data structure that stores organized information.
Most databases contain multiple tables, which may each include several different fields.
For example, a company database may include tables for products, employees, and
financial records.
JDKPS (Database)
File
XI A XI B XI C XI D
Record
1 Name Marks
DATATYPES USED IN MYSQL
size bytes.
(c) To list names of all teachers with their dat of admission in ascending order.
SELECT Name FROM TEACHER ORDERBY Dateofjoin.
(g) To insert a new row in the TEACHER table with the following data;
9,’uma’,’22,’computer’,’13-may-95’,20000,’M’.
INSERT INTO TEACHER VALUES(9,’uma’,’22,’computer’,’13-may-95’,20000,’M’);
(iii) List names all class of all students in descending order of DOB.
Ans: Select * from students order by DOB desc;
(iv) To count the number of student in XII Class of Mumbai city.
Ans: Select count(*) from students where class city=”Mumbai”;