0% found this document useful (0 votes)
7 views14 pages

Class 12 Informatics Practices SQL File

This document is a practical file for Informatics Practices submitted by Pooja Mehta for Class 12. It includes acknowledgments, a certificate of completion, and various SQL queries related to database management, including creating databases, inserting records, and using aggregate and text functions. The file demonstrates the student's understanding and application of SQL concepts as per CBSE guidelines.

Uploaded by

ku.mani142008
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)
7 views14 pages

Class 12 Informatics Practices SQL File

This document is a practical file for Informatics Practices submitted by Pooja Mehta for Class 12. It includes acknowledgments, a certificate of completion, and various SQL queries related to database management, including creating databases, inserting records, and using aggregate and text functions. The file demonstrates the student's understanding and application of SQL concepts as per CBSE guidelines.

Uploaded by

ku.mani142008
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

Page | 1

INFORMATICS
PRACTICES
PRACTICAL FILE
CLASS: 12

NAME: POOJA MEHTA


ROLL NUMBER:
SUBMITTED
D TO: TO: MRS. RAJNI
SHARMA
Acknowledgement
I would like to express my special thanks to
my Informatics Practices teacher Mrs. Rajni
Sharma for her guidance and support in
completing my file.
This file would not have completed without
enormous help by my family and friends
with their valuable suggestions.
Although, this file has been made with
utmost care and deep routed interest. Even
then I accept respondent and imperfection.
POOJA MEHTA
CLASS:12-C
H.H.P.S
CERTIFICATE
This is to certify that Pooja Mehta of class
12-C has successfully completed her
INFORMATICS PRACTICES practical file. She
has taken proper care and utmost sincerity
in the completion of this file. All the works
related to this practical file has been done
by the student herself.
I hereby certify that this practical file is up
to my expectations and as per the
guidelines issued by CBSE.

Mrs. RAJNI SHARMA


__________________
[Link] SQL query to create and show a
database Employee.

[Link] SQL query to open database Employee.

3. Write SQL query to create following Table name


emp_1.
4. Write SQL query to Insert 10 records .

5. Write SQL query to display all the records from


table emp_1.
6. Write SQL query to display EmpNo and EName of
all employees from from the table emp_1.

7. Display the details of employees whose name


have only four letters.
AGGREGATE FUNCTIONS
8. Display the name of departments. Each
department should be displayed once.

9. Queries for Aggregate functions- SUM( ), AVG( ),


MIN( ), MAX( ), COUNT( )
a. Find the average salary of the employees in emp_1
table.

b. Find the minimum


salary of job SALEMAN in EMP_1 table.
c. Find the maximum salary of job SALEMAN in EMPL
table.

d. Find the
total number
of Employee
from emp_1
table.

TEXT FUNCTIONS
10. Display name of employee in lower case and

upper case.
11. Display the position of the string ‘LE’ in field job
of table EMPL.
12. TRIM FUNCTION

SUBSTR FUNCTION
LENGTH FUNCTION

LEFT
FUNCTION

RIGHT
FUNCTION

13. MATH FUNCTIONS


MOD FUNCTION
POWER FUNCTION

ROUND FUNCTION

SQUARE ROOT FUNCTION


Truncate Function

ORDER
BY, GROUP BY, HAVING
14. Display all data of emp_1 according to salary
arranged by ascending order.
15. Display department no, job and no. of
employee in particular job Group by department
no, job from emp_1.

Common questions

Powered by AI

Pooja Mehta acknowledges her family and friends for their valuable suggestions, indicating that they provide emotional support, encouragement, and possibly feedback, helping to refine the project and overcome challenges during its completion .

The certification by Mrs. Rajni Sharma serves as an academic validation that confirms the practical file meets specific educational standards and guidelines outlined by CBSE. It ensures that the work is original, thoroughly prepared, and satisfies the curriculum requirements .

Grouping data by department and job in SQL queries facilitates the aggregation of metrics for distinct categories, aiding in comprehensive comparisons and reports. It enables analysts to see the number of employees per department or job roles quickly, which supports decision-making in resource allocation, departmental budgeting, and identifying workforce distribution trends .

The ORDER BY clause in SQL queries helps organize data in a readable format, either in ascending or descending order, depending on the requirements. It improves data analysis by allowing easy recognition of patterns and trends, simplifies reporting, and enhances user navigation through datasets, making it easier to draw meaningful insights .

Aggregate functions such as SUM() and AVG() are used to calculate the total and average values from a column, respectively. They are crucial for deriving insights like total salary expenses (SUM) or analyzing average employee salaries (AVG), helping recognize patterns or trends in data management. For example, finding the average salary of employees can help in budget planning and salary adjustments .

The TRIM function enhances query performance by removing accidental padding spaces from text fields, which can lead to inaccurate comparisons and increased storage usage. By ensuring consistent formatting and reducing errors, it allows more efficient indexing and searching, optimizing database operations .

The SQL query to create a table should define the table structure with appropriate data types and constraints, ensuring efficient data storage, retrieval, and integrity. Best practices involve defining primary keys, using varchar for string fields, and properly indexing columns that are frequently queried. Examples include specifying constraints like NOT NULL and UNIQUE to maintain data integrity .

The key elements that Pooja Mehta’s practical file should contain, according to CBSE guidelines, include a series of SQL queries that demonstrate an understanding of database creation, data manipulation, aggregate functions, text functions, and sorting orders. This includes creating a database, inserting records, using functions like SUM, AVG, COUNT, and displaying data using different text functions and aggregation techniques .

Using SQL's text functions like LOWER(), UPPER(), SUBSTRING(), and TRIM() can significantly enhance data presentation by standardizing text formats, extracting meaningful information, and cleaning data. For instance, displaying all employee names in upper or lower case ensures consistency in report generation. Extracting substrings allows focusing on specific data patterns, and trimming unwanted spaces increases data cleanliness .

Math functions such as POWER and ROUND in SQL provide essential tools for performing complex calculations directly within queries, thus optimizing data analysis. POWER can be used for exponentiation calculations necessary for financial forecasting, and ROUND is crucial for precision in numerical reports like financial statements, where rounding values is necessary for accuracy and presentation .

You might also like