COMP1850 Lecture 3.2 Relational Databases and SQL Queries

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/6

flashcard set

Earn XP

Description and Tags

Flashcards covering SQL queries, joins, and multi-table databases based on lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

7 Terms

1
New cards

JOIN

A type of SQL query used to combine tables, allowing work with normalized data across multiple tables.

2
New cards

Foreign Key

The primary key of another table that uniquely identifies a row in that table.

3
New cards

JOIN … ON …

The SQL command used to combine rows from two or more tables based on a related column.

4
New cards

INNER JOIN

SQL type that only shows rows where a matching ID is found in both tables, representing the intersection of the tables.

5
New cards

FULL OUTER JOIN

SQL type that displays every row of both tables, regardless of whether a match is found.

6
New cards

LEFT JOIN

SQL type that displays all rows from the first table and only matching rows from the second table.

7
New cards

RIGHT JOIN

SQL type that displays all rows from the second table and only matching rows from the first table.