MySQL Final File
MySQL Final File
MySQL File
Computer Science - Class XII
By - Sinjan Roy
Class - XII-C
Roll No - 23
1
Acknowledgement
I extend my sincere appreciation to all those
who played a crucial role in the completion of
this practical file.
- Thank You
2
Introduction
In this data-oriented world, MySQL has
become a highly powerful tool to store and
manipulate data
3
List of Contents
1) Tables Used………………………………………………………………..5
i) Question 1………………………………………………………………..5
v) Question 5……………………………………………………………..11
i) Question 1………………………………………………………………13
v) Question 5…………………………………………………………….23
4
Tables Used
Question 1
Table - STOCK
5
Table - DEALERS
Question 2)
Table - TEACHER
6
Table - POSTING
7
Question 3)
Table - STORE
8
Table - PRODUCTS
9
Question 4)
Table - TRAINER
Table - COURSE
10
Question 5)
Table - SCHOOL
11
Table - ADMIN
12
Questions and Inputs
Question 1)
Table - STOCK
Table - DEALERS
Input -
Output -
13
ii) To display ItemNo and Item name of those items from
STOCK table whose UnitPrice is more than Rupees 10
Input-
Output -
14
iii) To display the details of those items whose dealer code
(Dcode) is 102 or quantity in STOCK (Qty) is more than 100
from the table Stock.
Input-
Output-
Input-
Output-
15
Question 2)
Table - TEACHERS
Input-
Output-
16
ii) Select the earliest and oldest date of joining of the
teachers from table TEACHER
Input -
Output-
Input -
Output-
17
Input -
Output-
Question 3)
18
i) To display details of all the items in the STORE table in
ascending order of LastBuy
Input -
Output-
Input-
19
Output-
Input-
Output-
Input-
20
Output-
Question 4)
Input-
Output-
21
ii) To display the Tname and City of Trainer who joined the
Institute in the month of December 2001
Input-
Output-
Input-
Output-
22
Input-
Output-
Question 5)
23
i) To display Teacher Name, Periods of all teachers whose
periods are more than 25
Input-
Output-
Input-
Output-
24
iii) To display designation without duplicate entries from
the table ADMIN
Input-
Output-
Input-
Output-
25
*************************************************
26