data theory

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

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

What does CRUD stand for?

Create, read, update, delete

2
New cards

What are the join types

Inner join, left/right outer join, full outer, cross

3
New cards

What does inner join return

rows only returned if they exist in both tables

4
New cards

left outer join results

all rows returned from first table, matching rows from second table, missing values are null

5
New cards

right outer join results

all rows from second table, matching rows, missing are null

6
New cards

full outer join results

all rows from both tables, missing values are null

7
New cards

cross join results

eacb row from left table is joined with each row from right table

8
New cards

what is the order of clauses in a SELECT statement?

select, from, where, group by, having, order by

9
New cards

what is the best date format?

ymd

10
New cards

how do you write a DATEDIFF statement

DATEDIFF(datepart, startdate, enddate)

11
New cards

How do you write a DATEADD statement

DATEADD(datepart, num, date)

12
New cards

What are the basic predicates?

=, <, >, <=, >=, <>, etc.

13
New cards

BETWEEN predicate

shortened version of >= AND <=

14
New cards

EXISTS predicate

tests for existence of certain rows using a subquery

15
New cards

IN predicate

compares a value with a set of values

16
New cards

LIKE predicate

searches for strings with a certain pattern, % matches any num of characters, _ matches a single character

17
New cards

NULL predicate

tests for null values

18
New cards

What is an ERD

a form of semantic modeling, description of data in a system

19
New cards

What is an entity?

something or someone that contains data/info

20
New cards

What are the 3 kinds of relationships?

1:1, 1:M, M:N