0% found this document useful (0 votes)
16 views28 pages

Sample Practical File

This document is an acknowledgment and introduction to a project by Taksh Roop Srivastava, a Class 12 student, focusing on SQL and Java programming as per the CBSE IT syllabus. It outlines the project's objectives, including the execution of 15 SQL queries and 15 Java commands, demonstrating proficiency in database management and object-oriented programming. The document also expresses gratitude to the teacher and others who contributed to the educational journey.

Uploaded by

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

Sample Practical File

This document is an acknowledgment and introduction to a project by Taksh Roop Srivastava, a Class 12 student, focusing on SQL and Java programming as per the CBSE IT syllabus. It outlines the project's objectives, including the execution of 15 SQL queries and 15 Java commands, demonstrating proficiency in database management and object-oriented programming. The document also expresses gratitude to the teacher and others who contributed to the educational journey.

Uploaded by

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

ACKNOWLEDGMENT

I, Taksh Roop Srivastava, a student of Class 12th, would


like to express my sincere gratitude to the CBSE Board
for providing the opportunity to undertake this project
during the academic year 2023-24.

I would like to extend my heartfelt thanks to my


teacher, Mrs. Priya Pandey, for her guidance, support,
and valuable feedback throughout the development of
this portfolio. Mrs. Pandey's insights and
encouragement have been instrumental in shaping the
direction and content of this project.

I also acknowledge the invigilators for their diligence


and assistance during the project evaluation process.
Their commitment to maintaining a fair and conducive
environment for assessment is greatly appreciated.

This portfolio is a culmination of my efforts to explore


and demonstrate proficiency in SQL and Java
programming. I dedicate this work to Mrs. Priya Pandey,
whose dedication to teaching has been a constant
source of inspiration.

Thank you to all those who have contributed to my


educational journey.

Sincerely,

Taksh Roop Srivastava


INTRODUCTION
The essence of this project revolves around the integration of Structured
Query Language (SQL) and Java programming, aligning meticulously
with the Class 12 CBSE IT syllabus. The primary objective is to
showcase a robust command over these two fundamental aspects of IT
through the execution of 15 SQL queries and commands, and an
additional 15 Java commands.

This practical file serves as a testament to the theoretical understanding


and hands-on proficiency acquired during the course. The SQL queries
delve into database management, data manipulation, and retrieval,
reflecting a mastery of concepts crucial for managing and extracting
information from relational databases. Simultaneously, the Java
commands demonstrate the application of object-oriented programming
principles, emphasizing the versatility of Java in diverse IT scenarios.

Throughout this endeavor, adherence to the prescribed Class 12 CBSE IT


syllabus has been paramount. Each query and command has been
carefully selected to ensure alignment with the curriculum, covering
topics that include database creation, manipulation, Java programming
fundamentals, exception handling, and more.

This project is not only an academic exercise but also a manifestation of


a commitment to excellence in the realm of Information Technology. I
extend my gratitude to my teacher, Mrs. Priya Pandey, whose guidance
has been instrumental in shaping this project. It is my hope that this
practical file serves as a comprehensive demonstration of the skills and
knowledge gained, contributing to the broader landscape of IT
education.
SQL COMMANDS

“STRUCTURED QUERY LANGUAGE”

• SQL stands for "Structured Query Language."


It is a domain-specific language used for managing and
manipulating relational databases.
• SQL is widely employed for tasks such as querying data,
updating data, inserting data, and managing database
schemas.
• It provides a standardized way for interacting with and
managing relational databases, making it a fundamental tool
in the field of database management and data manipulation.
1. Create a Database:
Creates a new database named "SCHOOLDB" using the SQL
command CREATE DATABASE.
2. Create a Table:
Defines a table named "Students" with columns for student
information like ID, first name, last name, age, and grade.
3. Insert Data:
Inserts a sample student record into the "Students" table with
values for ID, first name, last name, age, and grade.
4. Update Data:
Modifies the age of a student with a specific ID in the "Students"
table using the UPDATE command.

5. Delete Data:
Deletes a student record with a specific ID from the "Students"
table using the DELETE command.
6. Retrieve Data:
Fetches all records from the "Students" table using the SELECT
statement.
7. Filter Data:
Retrieves records from the "Students" table where the grade is 'A'
using the SELECT statement with a WHERE clause.
8. Sort Data:
Retrieves all student records from the "Students" table and sorts
them in descending order based on age using the ORDER BY clause.
9. Aggregate Functions:
Calculates the average age of all students in the "Students" table
using the AVG aggregate function.
10. Joins:
Retrieves information from both the "Students" and "Marks" tables
by performing an INNER JOIN based on the common "StudentID"
column.
11. Subqueries:
Retrieves the first name and age of students whose age is greater
than the average age of all students, using a subquery.
12. Views:
Creates a view named "HighScorers" that includes all records from
the "Marks" table where the marks are greater than 90.

13. Transactions:
Starts a transaction, updates the age of a student, and commits
the transaction to make the change permanent.
14. Indexing:
Creates an index named "idx_LastName" on the "Students" table to
optimize searches based on the "LastName" column.

15. Deleting a Column:


Deletes the "Age" column from the "Students" table, altering its
structure by removing the specified column.
JAVA COMMANDS

• Java is a versatile, object-oriented programming language


known for its platform independence, allowing developers to
write code that runs on different devices.
• Created by Sun Microsystems, it features automatic memory
management, a rich standard library, and security
mechanisms.
• Java's syntax, similar to C/C++, facilitates easy adoption. It
supports multithreading and is widely used for web
development, mobile applications, and enterprise solutions.
With a strong developer community,
• Java continues to evolve through various versions, remaining
a prominent language in the software development
landscape, providing scalability, security, and ease of use for
diverse applications across industries.
1. Declare a Variable:

2. Initialize a Variable:

3. Print Statement:

Input for Declaring, Initiating and Print Statement

Output For Declaring, Initiating and Print Statement


4. Conditional Statement:

5. Loop

Input for Conditional Statement and Loop Statement


Output for Conditional Statement and Loop Statement

6. Array Declaration:

7. Array Initialization:

8. Array Traversal:
Input for Array Declaration, Initialization, Traversal Statement

Output for Array Declaration, Initialization, Traversal Statement

9. Function Declaration:
10. Function Call:

Input for Function Declaration and Function Call

Output for Function Declaration and Function Call


11. Object Declaration:

12. Object Initialization:

Input for Object Declaration and Initialization Statement


Output for Object Declaration and Initialization Statement
13. Class Inheritance:

Input for Class Inheritance Statement

Output for Class Inheritance Statement


14. File Handling

Input for Class Inheritance Statement

15. Exception Handling:


Input for Exception Handling Statement

Output for Exception Handling Statement

You might also like