Database Systems Chapter 2

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

1/20

flashcard set

Earn XP

Description and Tags

CS 4210 Chapter 2

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

BI Systems

Business Intelligence Systems. used to support management decisions by assessing, analyzing, planning, and controlling

2
New cards

BI Systems usually store their data in a

Data Warehouse

3
New cards

The entire database isnt necessary for every analysis so we get an ____, and its put from the ___ database to the ____ database

extraction; operational database to the offline database

4
New cards

DDL (term and commands in it)

Data Definition Language. Used for creating tables, relationships. Makes the actual structures. Commands: CREATE, ALTER, DROP

5
New cards

DML (term and commands in it)

Data Manipulation Language. Inserting, Updating, and Querying data. SELECT, INSERT, UPDATE, DELETE

6
New cards

TCL

Transaction control language

7
New cards

SELECT x FROM y WHERE z

x: column y: table the column is in z: condition on the entries

8
New cards

Command to get the metadata

DESCRIBE

9
New cards

Command to add a column to a table already created

ALTER. you are changing the structure of the object so it is a DDL command

10
New cards

Command to control how many rows are displayed

TOP

11
New cards

to change a value of something in a table, use this command

UPDATE. not changing the structure so a DML

12
New cards

command to make a brand new table

CREATE. structure command so DDL

13
New cards

Command to include a new row (entry) into a table

INSERT. not changing the structure so DML

14
New cards

Command to remove a table from a database

DROP. changes structure so DDL

15
New cards

SQL underscore

for representing a single unspecified character in a specific position LIKE “_2%”

16
New cards

SQL % sign

any sequence of contiguous unspecified characters in a specific position in character string LIKE “Pete%’

17
New cards

SQL limitations

1) you cannot combine column names with sql functions (ex: SELECT Department, Count(*)

2)You cannot use table names in the WHERE function. WHERE only works for rows

18
New cards

Concatenation

SELECT (Buyer + ‘in’ Department) AS Sponsor (lets you make columns like a string in java

19
New cards

WHERE, GROUP BY, HAVING

WHERE- tells you which rows to use

GROUP BY- creates groups

HAVING- tells you which groups to use

WHERE should always go before GROUP BY and HAVING

20
New cards

All column names in ____ associated with a function must appear in the _____ clause

SELECT; GROUP BY

21
New cards

ETL System in BI Systems

Extract, Transform, and load system