0% 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.

Uploaded by

Aitzaz Ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% 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.

Uploaded by

Aitzaz Ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Interview Exam: Databases (Basic)

Candidate Name:________________________ Date:__________________


STUDENT
S_ID DEPT_ID S_NAME S_AGE S_GENDER S_ADDRESS

DEPARTMENT
DEPT_ID DEPT_NAME

TEACHER
T_ID T_NAME DEPT_ID

COURSES
COURSE_ID COURSE_NAME T_ID

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.


Candidate Assessment
Interviewer Name:___________________

Candidate Name:_____________________

Personality:


Aptitude:


Skill:


Comments:














Candidate Assessment
Interviewer Name:___________________

Candidate Name:_____________________

Personality:


Aptitude:


Skill:


Comments:

You might also like