Assignment db1
Assignment db1
Subject DB II
Covered Topics Topic 1
Assignment No Assignment 01
Issued Date 2018.08.10
Due Date 2018.08.24
Submission Hard Copy to instructor
Method Softcopy /scanned image to LMS
Q1. Alias can be used to preface the column name in order to clarify which table and column are
participating in the join. Also we can rename the columns in an output.
Q2. Display employee ID, last name, department ID, department name, and hire date for those
employees whose hire date was June 7, 1994.Assume the following table structure.
Employees
Department
Give the answer for the above question using following methods of join
1) Assume data types are same for department ID column of both table. Write down answer
using natural join
2) Give the same output using ON clause
3) Give the same output using USING clause
4) Give the same output using equi join
(20 marks)
Q5. What is null value? Write down example for check a value for null using SQL Select statement.
(10 marks)
Q6. Explain the concept of joins using set oriented venn diagrams (20 marks)
Q7. Show an example to show the usage of dual table (10 marks)