58 Vivek - Kumar.Gupta DBMS
58 Vivek - Kumar.Gupta DBMS
Submitted To:
Prestige institute
Of management.
2. Create two tables (Depatments and Employees) by using the sql script
3. (Employee_create.sql) share with this exercise.
4. Insert data into above created tables by using the Sql script (Employee_insertdb.sql).
5. Once the above tables and data created check the data of both the tables.
f. Select all the data of employees that work in department 37 or department 77.
g. Select all the data of employees whose last name begins with an "S".
h. Select the sum of all the departments' budgets.
i. Select the number of employees in each department (you only need to show the
departments.
n. Select the names of departments with more than two employees.
o. Select the name and last name of employees working for departments with second
lowest budget.
p. Add a new department called "Quality Assurance", with a budget of $40,000 and
departmental code 11. Add an employee called "Mary Moore" in that department,