Given the following four tables: Employee (empno (PK), empname, monthlysalary, deptno, mqrnd (FK)) Department (deptno, deptname, deptlocation)…
Given the following four tables:
- Employee (
empno (PK), empname, monthlysalary, deptno, mqrnd (FK)) - Department (
deptno, deptname, deptlocation) - Course (
erscode (PK), erd_desc, ers_category, ers_duration) - Offering (
of_begin_gate, erscode (FK), offeringlocation, empno (FK))
Write SQL queries for the following:
- Find Departments with Average Monthly Salary Greater Than 1000.
- Find Courses with More Than 2 Offerings.
From the PetroBangla Assistant Manager (CSE / IT) June 2024 – Written (BUET) exam, question 10 of 11.
More from this paper
- Previous: Given the following software engineering testing types (Unit Testing, Regression Testing, Smoke Testing, Integration Testing, Load…
- Next: You are given a binary tree (a, b, c, d, e, f, g, h, i) nodes. The post-order of the binary tree is: a b c h d e g i. Now draw the binary…
- All questions in PetroBangla Assistant Manager (CSE / IT) June 2024 – Written (BUET)