

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The fundamental sql database querying terms: select (retrieving specific data), project (selecting columns), union (combining tables), difference (removing common rows), product (multiplying tables), and join (combining tables with matching fields).
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


TERM 1
DEFINITION 1 -Take rows (using criteria) from one table to create a new table General form: Select Test From Table Example: Select marathon_place=1 From Olympic_Marathon_Medal_Winners Test can be any sort of criteria , , =, text comparison TERM 2
DEFINITION 2 -Take columns from a table to create new table General form: Project Field_list From Table Example: Project FirstName, Birthdate From Person TERM 3
DEFINITION 3 -Combine 2 tables Can only be performed if the 2 tables have the same set of attributes General Form: Table1 + Table Example: If we had 2 tables Men and Women People = Men
DEFINITION 4 -Remove from one table the rows also listed in a second table General Form: Table1 Table2 Remove from Table1 any rows that are also in Table2 Women = People - Men TERM 5
DEFINITION 5 -Multiply two tables Has all the fields from both tables Appending/concatenating each row of second table to each row of first table General form: Table1 x Table2 Example: Courses x Faculty Produces all possible pairings, some may not belong together
TERM 6
DEFINITION 6 -Combines two tables BUT does not produce all pairings Combines rows from two tables if there is a match on the field General form: Table1 + Table2 On Match Example: Courses + Faculty On Courses.InstructorID=Faculty.ID