Professional Documents
Culture Documents
Joins
Name of the Student: Sahish Ashok Pandav Div. & Roll No. C-33 .
Title:- Execute DDL statements which demonstrate the use of views. Try to update the bas
e table using its corresponding view. Perform view creation from multiple tables.
Description:-
The database joins has the ability of combining two or more data tables/tuples into a single
table/tuple only if the following conditions are satisfied.
There must be a common attribute in both the tables .
Join must be satisfied.
Results:
1. Equi Join
Customer Table:
Policy Table:
select Customers.FirstName, Customers.LastName, Policy.EffectiveDate
from Policy inner join Customers
on Policy.CustomerID = Customers.CustomerID;
2. Theta Join:
mobile table:
laptop table:
3. Natural Join:
4. Customer Table:
Policy Table:
Policy Table
SELECT Customers.FirstName, Policy.PolicyType
FROM Customers
LEFT JOIN Policy ON Customers.CustomerID = Policy.CustomerID
ORDER BY Customers.FirstName;
Policy Table