0% found this document useful (0 votes)
2 views15 pages

Informative Practices Project File

The document outlines a project file by DanishPreet Kaur Kahlon for an 11th-grade class, focusing on MYSQL and Python programming. It includes various SQL queries for database management and operations, as well as basic Python programming concepts such as loops and user input handling. The document serves as a guide for executing common database tasks and programming exercises.

Uploaded by

danishkahlon8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views15 pages

Informative Practices Project File

The document outlines a project file by DanishPreet Kaur Kahlon for an 11th-grade class, focusing on MYSQL and Python programming. It includes various SQL queries for database management and operations, as well as basic Python programming concepts such as loops and user input handling. The document serves as a guide for executing common database tasks and programming exercises.

Uploaded by

danishkahlon8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

INFORMATIVE PRACTICES

PROJECT FILE

Name: DanishPreet Kaur Kahlon

Class: 11th C

Session: 2024-2025

Sub to- Mr. Talwinder singh


INDEX
 Query to launch MYSQL
 Query to show existing databases
 Query to create a new database
 Query to use database
 Query to create table in existing database
 Query to insert values in existing table student
 Query to see the table student
 Query to see particular field in a table
 Query to see city= Chandigarh
 Query to see structure of table
 Query to see where Coursefee is between 100000 to 5000000
 Query to see where coursefee is greater than 500000
 Query to delete a column
 Aggregate keys
 Query to rename column
 Query to distinct the values
 Query to arrange records in descending order
 Query to arrange records in ascending order
 Query to delete a record
Introduction- MYSQL is an open source database management system
which is free of cost. It is easy to use and was first released in 1995.

QUERIES USED IN MYSQL:


Query to launch MYSQL:

Query to show existing databases:


Query to create a new database:

Query to use database:

Query to create table in existing database:


Query to insert values in existing table (student):

Query to see the table student:


Query to see particular field in a table:

Query to see city=Chandigarh


Query to see structure of table:

Query to see record where course fee is between 100000-5000000:


Query to see records where coursefee greater than 500000

Query to delete a column:

AGGREGATE KEYS:

Maximum and Minimum:


Average:

No of values

No of values (*)
Query to rename a column:

Query to Distinct the values:

Query to arrange records in DESCENDING order:


Query to arrange records in ASCENDING order:

Query to Delete a record:


Introduction: Python is a high level and dynamic object oriented
programming language runs on every platform. It is available for free.

Codes for script mode and print mode:

Input:

Output:
Input:

Output:

Interactive messages in python:


Input:

Output:

Loops in python:
While loop:

Write a program in python where user will take the input of class and
section according to assigned tourist destination the criteria for same
is as follows:

I. If class=9 and section A then tourist destination would be


jaipur
II. If class=9 and section B then tourist destination would be
Udhaypur
III. If class=9 and section C then tourist destination would be
Jaisalmer otherwise you will be going next year

Input:

You might also like