HIT334. Week 2. Some Definitions. Set : A collection of objects that contain NO duplicates Relation : Table, a set of tuples Tuple : Row in a table, a collection of attributes Attribute : Column Heading, an actual role played by Domain
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Projection:Used to produce, from relation R, a new relation that has only some of R’s attributes.
Denoted as A1,A2..AnR , which gives a relation that only has the columns for attributes A1, A2…An
title, year, studio MOVIE =
inColour Movie =
title, year, studio(length > 100 AND studioName = ‘Fox’ (MOVIE))
Instead of nesting, you can explicitly show a sequence of operations:
TEMP <- length > 100 AND studioName = ‘Fox’(MOVIE))
RESULT<- title, year, studio(TEMP)
SELECT title, year, studio
WHERE length > 100
AND studioname = ‘FOX’
R X S =
TEMP <- R X S
RESULT <- σR.B = R.S TEMP
DEPT_MGR DEPARTMENT MGRSSN=SSN (EMPLOYEE)
What if you only wanted the Manger for the Administration Department?