Lecture Materials Week 10 (File Name) Flashcards

(27 cards)

1
Q

Information systems used to support management decisions by producing info for assessment, analysis, planning

A

Business Intelligence systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Business Intelligence systems store their associated data in ____ __________

A

data warehouses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The fundamental framework for an SQL query

A

The select statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

All SQL statements end with a

A

semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The 6 parts of a select statement

A

SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The WHERE clause

A

is a conditional statement used to filter records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The GROUP BY clause

A

is used with aggregate functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

of the 6 parts of a SELECT statement, name the 2 mandatory parts

A

SELECT and FROM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The ORDER BY clause

A

sorts results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The syntactical order for SELECT statements

A

SELECT > FROM > WHERE > GROUP BY > HAVING > ORDER BY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In the field list of the select statement, the * wildcard

A

means include all avalable columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In the field of the select statement, the comma is used when

A

there is a defined list, using commas to separate fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

T/F - The order of the fields in the SELECT statement determines the order of the columns in the table

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This keyword eliminates duplicates in SQL

A

DISTINCT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Keyword to limit how many rows are used

Where does this keyword appear?

A

LIMIT {number}

Keyword comes at the end of the query after any ORDER BY statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Conditional Statements are known as the WHERE clause, what are 4 examples

A
  1. Series of Bool expressions
  2. Several operators
  3. Multiple clauses
  4. Brackets
17
Q

SQL requires the use of _______ quotes

18
Q

The SQL % wildcard represents any sequence of _________ characters in a specific position in a string

19
Q

If a statement attaches

WHERE SKU LIKE “%2__”

What SKU’s will come up?

A

Any that have 2 and then 2 other characters following it.

20
Q

T/F - SQL requires that the column used in the WHERE clause also appears in the SELECT clause

21
Q

Used to rename objects for the duration of the query

22
Q

Aliases can rename _____ or ______

A

fields or tables

23
Q

Field renaming is good for

A

Ensuring valid field names when data is exported

24
Q

Table renaming becomes important when

A

JOINS are involved

25
Alias Column Syntax order column_name AS SELECT FROM alias_name table_name
SELECT column_name AS alias_name FROM table_name
26
Alias Table Syntax column_name FROM table_name SELECT alias_name AS
SELECT column_name FROM table_name AS alias_name
27
Another advantage of aliases is that you can _____ columns and give them a single name
merge Example: Select blah( 'blah', 'blahblah', 'blahah' ) as Politicians