Myprac
Myprac
Practical File
Submitted By:-
Name:- Mayank
Ref. No.:- 232DCAP1/000060
Table of Contents
Steps:-
1) Open Microsoft Word:
a) Launch Microsoft word by clicking on its icon or searching for it in
your computer’s applications.
2) Create a New Document:
a) Click on “File” in the upper-left corner.
b) Select “New” to create a new document.
c) Choose a blank document template.
3) Page Layout:
a) Use the “Page Layout” tab to set the card’s size:
i) Click on “Size” to choose a specific size (e.g., 5x7 inches) for
your greeting card.
ii) Adjust the orientation (portrait/landscape) as needed.
4) Background Color or Image:
a) Use the “Design” tab to set a background color or image for the card:
i) Click on “Page Color” to choose a background color.
ii) To use an image, go to “Page Color”>”Fill Effects”> “Picture”.
5) Insert Images:
a) Use the “Insert” tab to add festive images:
i) Click “Pictures” to insert images from your computer.
ii) You can also use “Online Pictures” to search for relevant
images.
6) Text:
a) Use the “Insert” tab to add text:
i) Choose “Text Box” to create a text box for your message.
ii) Type your festive greeting inside the text box.
iii) Format the text using the “Font” options on the “Home” tab.
7) Shapes and Decorations:
a) Use the “Insert” tab to add shapes and decorative elements:
i) Click ”Shapes” to choose from a variety of shapes (e.g., hearts,
stars).
ii) Customize shapes by changing their colors and sizes.
8) Borders and Farmers:
a) Add borders or frames to your card:
i) Use the “Design” tab to apply a border to your card.
ii) Adjust the line style, color and thickness.
9) Clip Art and Icons:
a) Use the “Insert” tab to add clip art or icons:
i) Click “Icons” to search for and insert relevant icons.
ii) Customize their colors and sizes.
10) Text Effects:
a) Apply text effects to make your message stand out:
i) Highlight the text.
ii) Use the “Text Effects” options on the “Format” tab to add
effects like shadows, reflections, and more.
11) Saving your card:
a) Click “File”>”Save as” to save your greeting card to a location on
your computer.
b) Choose a name for your card and select a format (e.g., PDF or Word
Document) to save it in.
12) Printing or Sharing:
a) Print your greeting card on appropriate cardstock or paper.
b) Share it electronically by converting it to a PDF and sending it via
email or social media.
Insert clip art and icons:-
Practical of
Ms-word
TASK COMPLETED
Experiment-3
Create your bio-data or resume.
Steps:-
1) Create a New Document:
a) Click on “File” in the upper-left corner.
b) Select “New” to create a new document.
c) Choose a blank document template.
2) Choose a Resume Template:
a) Browse the available templates in the “New Document” doalog.
b) Search for “resume” to find relevant templates.
c) Choose a template that matches your style and profession.
3) Enter Your Contact Information:
a) In the template, replace the placeholder text with your name, address,
phone number, and email.
4) Write your professional summary/objective:
a) Include a brief paragraph that summarizes your skills, experience and
goals.
b) Place this under your contact information.
5) List Your Work Experience:
a) Include your job history in reverse chronological order (most recent
first).
b) For each position, include your job title, company name, location,
dates worked, and a brief description of your responsibilities and
accomplishments.
6) Add Your Education:
a) List your educational background in reverse chronological order.
b) Include the name of the institution, degree earned, field of study, and
graduation date.
7) Highlight Skills:
a) Create a section for your skills, including technical skills, languages,
and relevant certifications.
b) You can organize skills in bullet points or columns.
8) Include Additional Sections (Optional):
a) Depending on your industry and background, you might want to
include sections such as:
i) Projects
ii) Achievements
iii) Volunteer Work
iv) Publications
v) Awards
9) Formatting and Styling:
a) Format your resume for clarity and readability:
i) Use headings and subheadings for different sections.
ii) Utilize bullet points for listing responsibilities and
achievements.
iii) Maintain consistent font styles and sizes.
10) Add Keywords (Optional):
a) If submitting your resume online or through applicant tacking
systems, consider adding relevant keywords related to your field.
BIO DATA
Mobile : 8054305353
Email id : ynisha243@gmail.com
Gender : Female
Religion : Hindu
Qualification
Experience
Place : Panchkula.
Date : 22.02.2024
Signature
Experiment-4
Applying header and footer in document.
Steps:-
Steps:-
1) Open the file Birthday1.xlsx on your network drive.
2) Make the main title in row 1 and the column headings in row 3 bold.
3) Format cells C5 to C9 and cells D5 to D11 to two decimal places.
4) In cell D10 create a thick top and bottom border.
5) In cell D5 enter a formula to calculate the total cost for catering (i.e. the
number x the cost).
6) Insert similar formula to calculate the total cost for the other items.
7) Enter a label Total in cell C10. Make it bold.
8) In cell D10 insert a formula to find the grand total.
9) In cell C11 enter a label per Child. Make it bold.
10) In cell D11 enter a formula to divide the grand total by 20.
11) Save the file as Birthday2.xlsx
Experiment-2
The worksheet contains Roll Nos. and marks in 5 subjects of different students.
Calculate the percentage and grade of each student.
Steps:-
1) Make the main title in row 1 and the column headings in row 3 bold.
2) Use the formula= SUM(B5:E5) in cell F5 to calculate the total marks of
student. Copy and paste the same formula to calculate total for other
students.
3) Format cells G5 to G9 to two decimal places.
4) Use the formula =F5/400*100 in cell G5 to calculate the percentage of
student. Copy and paste the same formula to calculate percentage for
other students.
5) In cell H5 enter a formula to calculate the grade of student using the
following logic:-
a) If percentage is between 0-39, grade= F
b) If percentage is between 30-59, grade= C
c) If percentage is between 60-79, grade = B
d) If percentage is 80 or above, grade = A
= IF(G5>=80, “A”, IF(G5>=60, “B”, If(G5>=30, “C”, “F”))).
6) Save the file as classroom_data.xlsx
Experiment-3
The worksheet contains Name & Taxable Income for 5 employees, Calculate
Income Tax, Surcharge and Total Tax for the following worksheet.
Steps:-
3) 2D Column Chart:
a) Select A3:D14
b) Insert Tab-Chart group-Column option-sub option 2D
c) 2D Column chart appears
d) Under layout menu of chart tools, select chart title, sub option above
the chart
e) It displays a box above the chart.
f) Click inside the box and type the title as Column Chart for subjects
g) Also specify the axis titles as explained above
h) Also specify the Horizontal axis labels as explained above
Experiment-5
For the following worksheet obtain the solution for the cost price so that the
profit will be 20000.
Steps:-
Set Cell D2
To value 20000
By changing cell A2
Steps:-
1) Search for Run SQL Command Line in the system. The SQL Command
Line terminal will open.
2) Type “connect” command and then enter the valid username and
password.
3) After successful connection, you can execute the SQL commands in the
terminal.
4) Create a sample table using the CREATE TABLE command and use
DESC table_name or DESCRIBE table_name to display the structure of
table.
Output:-
Experiment-2
Create table with different fields and data types, insert values inside the table,
display the values stored in the table.
1) CREATE TABLE:-
a) The CREATE TABLE statement is used to create a new table in the
database.
b) The column parameters specify the names of the columns of the table.
c) The datatype parameter specifies the type of data the column can hold
(e.g. varchar, integer, date, etc.).
d) Syntax:
CREATE TABLE table_name(
Column1 datatype,
Column2 datatype,
Column3 datatype,
......
);
Output:-
2) INSERT INTO:-
a) The INSERT INTO statement is used to insert new records in a table.
b) Syntax:
INSERT INTO table_name (column1, column2, column3, ...)
VALUES ( value1, value2, value3, ....);
Output:-
3) SELECT:-
a) The SELECT statement is used to select data from a database.
b) Syntax:
SELECT column1, column2, ....
From table_name;
Output:-
SELECT*FROM Persons;
Experiment-3
2) DELETE:-
a) The DELETE statement is used to delete existing records in a table.
b) Syntax:
DELETE FROM table_name WHERE condition;
Output:-
Experiment-4
Output:-
2) UNIQUE Constraint:-
a) The UNIQUE constraint ensures that all values in a column are
different.
Output:-
CHECK Constriant:-
a) The CHECK constraint is used to limit the value range that can be
placed in a column.
b) If you define a CHECK constraint on a column it will allow only
certain values for this column.
c) If you define a CHECK constraint on a table it can limit the values in
certain column based on values in other columns in the row.
Output:-
3) DEFAULT Constraint:-
a) The DEFAULT constraint is used to set a default value for a column.
b) The default value will be added to all new records, if no other value is
specified.
Output:-
4) PRIMARY KEY Constraint:-
a) The PRIMARY KEY constraint uniquely identifies each record in a
table.
b) Primary keys must contain UNIQUE values, and cannot contain
NULL values.
c) A table can have only One primary key; and in the table, this primary
key can consist of single or multiple columns(fields).
Output:-
Output :-
Experiment 5
Add, delete and modify columns in an existing table using ALTER TABLE
statement.
Output:-
Output:-
3) Alter/Modify data type of a column:-
ALTER TABLE table_name
MODIFY COLUMN column_name datatype;
Output:-
Experiment 6
Explore select statement using various clauses like where, order by, group by,
having and aggregate functions.
1) WHERE clause:-
a) The WHERE clause is used to filter records.
b) It is used to extract only those records that fulfil a specified
condition.
c) Syntax:
SELECT column1, column2,......
FROM table_name
WHERE condition;
Output:-
2) ORDER BY clause:-
a) The ORDER BY keyword is used to sort the result-set in ascending
or descending order.
b) The ORDER BY keyword sorts the records in ascending order by
default. To sort the records in descending order, use the DESC
keyword.
c) Syntax:
SELECT column1, column2,.....
FROM table_name
ORDER BY column1, column2,...... ASC|DESC;
Output:-
3) GROUP BY clause:-
a) The GROUP BY statement groups rows that have the same values
into summary rows, like “find the number of customers in each
country”.
b) The GROUP by statement is often used with aggregate functions
(COUNT(), MAX(), MIN(), SUM(), AVG()) to group the result-set
by one or more columns.
c) Syntax:
SELECT column_name(s)
FROM table_name
WHERE condition
GROUP BY column_name(s)
ORDER BY column_name(s);
Output:-
4) HAVING clause:-
a) The HAVING clause was added to SQL because the WHERE
keyword cannot be used with aggregate functions.
b) Syntax:
SELECT column_name(s)
From table_name
WHERE condition
GROUP BY column_name(s)
HAVING condition
ORDER BY column_name(s);
Output:-
From Customers
GROUP BY Country
HAVING COUNT(CustomerID)>5;
5) COUNT:-
a) The COUNT() function returns the number of rows that matches a
specified criterion.
b) Syntax:
SELECT COUNT(column_name)
FROM table_name
WHERE condition;
Output:-
6) SUM:-
a) The SUM() function returns the total sum of a numeric column.
b) Syntax:
SELECT SUM(column_name)
FROM table_name
WHERE condition;
Output:-
7) AVG:-
a) The AVG() function returns the average value of a numeric
column.
b) Syntax:
SELECT AVG(column_name)
FROM table_name
WHERE condition;
Output:-
8) Min/Max:-
a) The MIN() function returns the smallest value of the selected
column.
b) The MAX() function returns the largest value of the selected
column.
c) Syntax:-
SELECT MIN/MAX(column_name)
FROM table name
WHERE condition;
Output:-
Experiment 7
1) UNION:-
a) UNION will be used to combine the result of two select statements.
b) Duplicate rows will be eliminated from the results obtained after
performing the UNION operation.
c) Syntax:-
SELECT * from table 1 UNION SELECT * from table2;
Output:-
2) INTERSECT:-
a) It is used to combine two SELECT statements, but it only returns the
records which are common from both SELECT statements.
b) Syntax:
SELECT * from table1 INTERSECT SELECT * from table2;
Output:-
3) UNION ALL:-
a) This operator combines all the records from both the queries.
b) Duplicate rows will be not be eliminated from the results obtained
after performing the UNION ALL operation.
c) Syntax:
SELECT * from table1 UNION ALL SELECT * from table2;
Output:-
4) MINUS:-
a) It displays the rows which are present in the first query but absent in
the second query with no duplicates.
b) Syntax:
SELECT * from table1 MINUS SELECT * from table2;
Output:-
Experiment-8
Create joins and views on tables.
1) INNER JOIN:-
a) A JOIN clause is used to combine rows from two or more tables,
based on a related column between them.
b) The INNER JOIN keyword selects records that have matching values
in both tables.
c) Syntax:
SELECT column_name(s)
FROM table1
INNER JOIN table2
ON table1.column_name=table2.column_name;
Output:-
2) LEFT JOIN:-
a) The LEFT JOIN keyword returns all records from the left table
(table1), and the matching records from the right table (table2). The
result is 0 records from the right side, if there is no match.
b) Syntax:
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name;
Output:-
3) RIHGT JOIN:-
a) The RIGHT JOIN keyword returns all records from the right table
(table2), and the matching records from the left table (table1). The
result is 0 records from the left side, if there is no match.
b) Syntax:
SELECT column_name(s)
FROM table1
RIGHT JOIN table2
ON table1.column_name = table2.column_name;
Output:-
4) VIEWS:-
a) In SQL, a view is a virtual table based on the result-set of an SQL
statement.
b) A view contains rows and columns, just like a real table. The fields in
a view are fields from one or more real tables in the database.
c) You can add SQL statements and functions to a view and present the
data as if the data were coming from one single table.
d) A view is created with the CREATE VIEW statement.
e) Syntax:
CREATE VIEW view_name AS
SELECT column1, column2,....
FROM table_name;
Output:-
Experiment-9
Search for specific pattern using LIKE operator.
Syntax:-
FROM table_name
Output:-
Sub-Queries:-
Syntax:-
[WHERE]);
Output:-