Set-B (1)
Set-B (1)
A. Python program (60% logic + 20% documentation + 20% code quality) [8]
Write a python program to implement a stack using a list data structure (PUSH, POP, PEEK and DISPLAY)
OR
EmpSalary [4]
TABLE : EMPLOYEES
EMPID FIRSTNAM LASTNAME ADDRESS CITY
10 RAVI KUMAR RAJ NAGAR GZB
105 HARRY WALTOR GANDHI NAGAR GZB
152 SAM TONES 33 ELM ST. PARIS
215 SARAH ACKERMAN 440 U.S. 110 UPTON
244 MANILA SENGUPTA 24 FRIENDS STREET NEW DELHI
300 ROBERT SAMUEL 9 FIFTH CROSS WASHINGTON
335 RITU TONDON SHASTRI NAGAR GZB
400 RACHEL LEE 121 HARRISON ST. NEW YORK
441 PETER THOMPSON 11 RED ROAD PARIS
TABLE : EMPSALARY
EMPID SALARY BENEFITS DESIGNATION
10 75000 15000 MANAGER
105 65000 15000 MANAGER
152 80000 25000 DIRECTOR
215 75000 12500 MANAGER
244 50000 12000 CLERK
300 45000 10000 CLERK
335 40000 10000 CLERK
400 32000 7500 SALESMAN
Page 1 of 2
Write SQL queries for (i) to (iv) , which are the based on the tables : Employees and Empsalary
Queries :-
(i) To show firstname, lastname, address and city of all employees living in Pairs.
(iii) To display the firstname, lastname and total salary of all managers from the tables Employes and
(iv) To display the maximum salary among managers and clerks from the table EmpSalary.
*************
Page 2 of 2