Interview Exam: Databases (Basic) Candidate Name: - Date
This document contains an interview exam for a database position. It includes instructions to create an entity relationship diagram for tables of students, departments, teachers and courses. It then lists 4 SQL queries to run on the tables: 1) list teachers from Engineering department, 2) list students taking English courses, 3) find average age of students from Engineering, and 4) count students per department. It also includes a question to find employees making more than their managers and to find the second highest student marks. The document finishes with sections to assess the candidate's personality, aptitude, skills and overall comments.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
35 views
Interview Exam: Databases (Basic) Candidate Name: - Date
This document contains an interview exam for a database position. It includes instructions to create an entity relationship diagram for tables of students, departments, teachers and courses. It then lists 4 SQL queries to run on the tables: 1) list teachers from Engineering department, 2) list students taking English courses, 3) find average age of students from Engineering, and 4) count students per department. It also includes a question to find employees making more than their managers and to find the second highest student marks. The document finishes with sections to assess the candidate's personality, aptitude, skills and overall comments.
Make an Entity Relationship Diagram (ERD) for tables above. By analyzing the above relational model, write SQL queries to: 1. List the teachers from DEPT_NAME=Engineering 2. List the students who are taking English (COURSE_NAME=English) 3. What is the average age of students from Engineering department? (DEPT_NAME=Engineering) 4. Count the number of students for each department
Given an Employee table which has 3 fields - ID (Primary key), SALARY and MANAGER_ID, where MANAGER_ID is the id of the employee that manages the current employee, find all employees that make more than their manager in terms of salary. Given a Student Table with STUDENT_ID, and MARKS, find out the student who has obtained second highest marks.