You are on page 1of 12

ASSIGNMENT 1

Create a Column Chart in Excel sheet

2008-2011 Income Sheet


Year Total Total Profit/Loss
Revenue Expenses
2008 100000 50000 50000
2009 200000 75000 125000
2010 300000 125000 175000
2011 300000 150000 150000
ASSIGNMENT 2

Create a Pie Chart in Excel sheet

Cookie Shop 2012 Sales by percent


Lemon 18%
Peanut Butter 19%
Chocolate 33%
Oatmeal 30%
ASSIGNMENT 3

Using conditional formatting highlight the students whose marks is less than 50

S.N
o Name of the student Enrollment No. Marks
1 Neha 00161201712 95
2 Nishant Kumar 00261201712 86
3 Vishawendra Raghuvanshi 00461201712 47
4 Megha Sharma 00561201712 83
5 Ankit Dwivedi 00761201712 43
6 Anshu Koul 00861201712 67
7 Aditya Nair 00961201712 56
8 Khushboo Gulati 01061201712 45
9 Prapti Kalra 01161201712 78
10 Shivani Bahuguna 01261201712 78
11 Akshay Kalra 01461201712 45
12 Priya Tanwar 01561201712 87
13 Rahul Sunda 01661201712 45
14 Tushar Thakur 01761201712 34
15 Ayush Aaggarwal 01861201712 76
ASSIGNMENT 4

Do the following using Excel formulas.

1. Add the following numbers horizontally as well as vertically

4 345 2345 12  
8 678 6578 13  
75 985 9876 14  
43 345 9876 15  
         

2. Subtract the following numbers

4 100 10 789
2 50 5 251
       

3. Find the average, max, min, median of following numbers

4
8
75
43
345
678
985
345
2345
6578
9876
9876
12
13
14
15
 
ASSIGNMENT 5

Differentiate between Countif and Countifs Excel formulas using following example.

Quantit
Suppliers Zone y
Trimnet suppliers South 10
Zebra Suppliers East 24
Ramnack Suppliers West 35
Seashadow
Suppliers North 64
Trimnet suppliers West 23
Zebra Suppliers West 12
Ramnack Suppliers North 14
Seashadow
Suppliers North 34
Seashadow
Suppliers North 65
Zebra Suppliers North 45
Trimnet suppliers North 34
Zebra Suppliers South 23
Trimnet suppliers South 43
Zebra Suppliers South 24
Ramnack Suppliers South 35
 
Apply CountIf to count the occurance of suppliers
Trimnet suppliers          
Zebra Suppliers          
Ramnack Suppliers          
Seashadow
Suppliers          
           
Apply CountIfs to count the occurance of suppliers in each zone
           
  South North East West  
Trimnet suppliers          
Zebra Suppliers          
Ramnack Suppliers          
Seashadow
Suppliers          
           
ASSIGNMENT 6

Apply Round, Roundup and Rounddown formulas using excel sheet on following example

Round Roundu Rounddow


upto 2 p upto 2 n upto 2
Roundu Rounddow decimal decimal decimal
  Round p n places places places
1.2345            
5.6789            
3.245            
56.7896            
ASSIGNMENT 7

Use If function to find the Pass or Fail status of following students on the basis of their marks

S.N Enrollment
o Name of the student No. Marks Status - Pass or Fail
1 Neha 00161201712 95  
2 Nishant Kumar 00261201712 86  
Vishawendra
3 Raghuvanshi 00461201712 47  
4 Megha Sharma 00561201712 83  
5 Ankit Dwivedi 00761201712 43  
6 Anshu Koul 00861201712 67  
7 Aditya Nair 00961201712 56  
8 Khushboo Gulati 01061201712 45  
9 Prapti Kalra 01161201712 78  
10 Shivani Bahuguna 01261201712 78  
11 Akshay Kalra 01461201712 45  
12 Priya Tanwar 01561201712 87  
13 Rahul Sunda 01661201712 45  
14 Tushar Thakur 01761201712 34  
15 Ayush Aaggarwal 01861201712 76  
16 Parth Prabhakar 01961201712 87  
17 Aditya Raj 02061201712 67  
18 Vivek Joshi 02261201712 56  
19 Abhishek Aggarwal 02561201712 45  
20 Kunal Singh 02661201712 67  
21 Pankaj Sharma 02761201712 65  
22 Tanya Kohli 02861201712 45  
23 Ankit Upreti 02961201712 45  
24 Chirag Riat 03061201712 45  
25 Nandu Mohan 03161201712 34  
26 Abhishek Shastri 03361201712 53  
ASSIGNMENT 8

Using SUMif calculate the total marks of students whose course is BBA

S.No Name Course Marks


1 Neha BBA 95
2 Nishant Kumar MBA 86
3 Vishawendra Raghuvanshi BTECH 47
4 Megha Sharma BBA 83
5 Ankit Dwivedi MBA 43
6 Anshu Koul BTECH 67
7 Aditya Nair BBA 56
8 Khushboo Gulati MBA 45
9 Prapti Kalra BTECH 78
10 Shivani Bahuguna BBA 78
11 Akshay Kalra MBA 45
12 Priya Tanwar BTECH 87
13 Rahul Sunda BBA 45
14 Tushar Thakur MBA 34
15 Ayush Aaggarwal BTECH 76
ASSIGNMENT 9

Solve the following text functions

Text
Data Output
Function
Banarsidas Chandiwala Institute Of
LEFT  
Professional Studies
  RIGHT  
  TRIM  
  MID  
  LOWER  
  UPPER  
  PROPER  
ASSIGNMENT 10

Solve the following using VLOKKUP functions

STATIONARY ITEM PRICE TABLE


PRODUCT PRICE QUANTITY
PEN 20 50
PENCIL 12 20
ERASER 5 10

VLOOKUP
PRODUCT PRICE QUANTITY
PRINTER    
MONITOR    
MOUSE    
PEN
PENCIL
ERASER
SQL
Assignment 1

a. Write an SQL command that will create a table named Test1 with the following fields
and types: idno NUMERIC(10) , fname VARCHAR(24), address VARCHAR(30), age
NUMERIC(10) , giftvalue NUMERIC(10).
b. Insert the following items in the table you have created

ENo FirstName Address1 Age Gift


01 Ram Dwarka sector 41 200
10
02 Sita Janakpuri 26 250
block C
03 Rajesh Dwarka sector 23 200
15
04 Ajit Noida sector 35 150
11
05 Rita Noida sector 40 200
11

Assignment 2: Select Queries for table Test1


a. Write an SQL query to display all the records
b. Write an SQL query to display all the records where age >40
c. Write an SQL query to display Fname, Age from the table
d. Write an SQL query to display Fname, Age, Gift where Age > 35 from the table
e. Write an SQL query to display all record where Gift > 200 and Age >20
f. Write an SQL query to display all record where Gift > 200 or Age >20

Assignment 3: Queries for aggregate functions for table Test1


a. Write SQL query to add the age of all records.
b. Write a query to average of the cost of gifts.
c. Write a query to display the name and age of the youngest member
d. Write a query to count the number of candidates whose age in more than 30.
e. Write a query to find the name and cost of the costliest gift.

Assignment 4: Constraints
a. Create a table with the following specifications

Field name Data type


EMPID INT, Primary Key
DEPT CHAR(5)
EMPNAME VARCHAR(15)
ADDRESS VARCHAR(30)
SALARY NUMERIC(7)
b. Make the following entries in the table

EMPID DEPT EMPNAME ADDRESS SALARY


101 RD01 Prince Park Way 15000
102 RD01 Harry Pebble Street 12000
103 RD02 Tom Rose Garden 11000
104 RD02 Susan Model Town 10000
105 ED01 Mark Victor Crescent 10000
106 AD01 Francis Chelmsford Park 13000
107 GR01 Robert Downtown 14000
Cross
108 RD03 Philip Park Avenue 15000
109 RD03 Henry Malibu Beach 14000
110 AD01 Frank St. Peters Lane 7000

Assignment 5: Select & Update


a. Find names for all employees who work for the RD01 department.
b. How many employees work in department starting from RD.
c. What is the maximum and minimum of the salaries.
d. Name the employees and their department whose salaries are greater than 12000.
e. Find the number of employees in each department.
f. List the employees in increasing order of their salaries.
g. Modify the table so that Susan is assigned to AD01 department.
h. Change the salary of all the employees to AD01 to salary*1.2
i. Name the employee in department RD03 who lives in Park Avenue.
j. Find the Average salary.
k. Count the number of employees.

Assignment 6: Alter
Create a table Student1 with the following structure:
Roll no number 3
Name varchar 20
Marks number 6
Write the following SQL queries
1. Add new columns pincode and city to Student1
2. Change the width of pincode to 6
3. Add a primary key
4. Add a not null constraint
5. Add construct check to the Marks column (Marks >=0 and Marks<=100)

You might also like