Name: Saksham
Class: 12thB
Rollno:
Subject: Information Practices
Submitted To:Ankur sir
ACKNOWLEDGEMENT
I ,SAKSHAM ,of B.B.S.V.P school do hereby
declare that this is my practical file and I
extend my appreciation and gratitude to Mr.
Ankur Gupta, INFORMATION PRACTICES
teacher for his whole hearted support and
guidance for the successful completion of this
file in time. I am immensely obliged to my
parents for their constant guidance and
support.
Student sign
CERTIFICATE
This is to certify that SAKSHAM ,
studying in XII 'Non Medical', Roll No:
has prepared the project of
Information Practices(065) in the
academic session 2021-2022 under the
guidance of Mr. Ankur Gupta as per
the CBSE guidelines.
Subject teacher’s Principal’s
Signature Signature
INDEX
S.NO TOPIC PGNO REMARKS
1 Practical No. -1 6
2 Practical No. -2 7
3 Practical No. -3 8
4 Practical No. -4 9
5 Practical No. -5 10
6 Practical No. -6 11
7 Practical No. -7 12
8 Practical No. -8 13
9 Practical No. -9 13
10 Practical No. -10 14
11 Practical No. -11 14,15,16
MySQL- SQL Commands
Practical No-1:-
Problem-Create a database 'School'
on the database server, show the
list of databases and
open it.
Solution :
> create database school;
> show databases;
> use school;
Command and output :-
Practical No-2:-
Practical No-3:-
Practical No-4:-
Practical No-5:-
Practical No-6:-
Practical No-7:-
Practical No-8:-
Practical No-9:-
Practical No-10:-
Problem- Display current date and
current time together.
Solution:
Select curdate() as "CurrentDate",
curtime() as "Current Time";
Practical No-11:-(Stringfunctions)
1)ASCII(): This function is used to find the ASCII value of a
character.
Syntax:
SELECT ascii('t');
Output: 116
2)INSTR(): is used to find the occurrence of an alphabet.Syntax:
INSTR('geeks for geeks', 'e'); Output: 2
3)LCASE(): This function is used to convert the given string into lower
case.
Syntax: LCASE ("GeeksFor Geeks To Learn");
Output: geeksforgeeks to learn
4)LEFT(): This function is used to SELECT a sub string from the left of
given size or characters.
Syntax: SELECT LEFT('geeksforgeeks.org', 5);
Output: geeks
5)LTRIM(): This function is used to cut the given sub string from the
original string.
Syntax: LTRIM('123123geeks', '123');
Output: geeks
6)MID(): This function is to find a word from the given position and of
the given size.
Syntax: Mid ("geeksforgeeks", 6, 2);
Output: for
7)RTRIM(): This function is used to cut the given sub string from the
original string.
Syntax: RTRIM('geeksxyxzyyy', 'xyz');
Output: ‘geeks
8)SUBSTR(): This function is used to find a sub string from the a string
from the given position.
Syntax:SUBSTR('geeksforgeeks', 1, 5);
Output: ‘geeks’
9)UCASE(): This function is used to make the string in upper case.
Syntax: UCASE ("GeeksForGeeks");
Output:
GEEKSFORGEEKS