Lecture Materials Week 10 (File Name) Flashcards
(27 cards)
Information systems used to support management decisions by producing info for assessment, analysis, planning
Business Intelligence systems
Business Intelligence systems store their associated data in ____ __________
data warehouses
The fundamental framework for an SQL query
The select statement
All SQL statements end with a
semicolon
The 6 parts of a select statement
SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY
The WHERE clause
is a conditional statement used to filter records
The GROUP BY clause
is used with aggregate functions
of the 6 parts of a SELECT statement, name the 2 mandatory parts
SELECT and FROM
The ORDER BY clause
sorts results
The syntactical order for SELECT statements
SELECT > FROM > WHERE > GROUP BY > HAVING > ORDER BY
In the field list of the select statement, the * wildcard
means include all avalable columns
In the field of the select statement, the comma is used when
there is a defined list, using commas to separate fields
T/F - The order of the fields in the SELECT statement determines the order of the columns in the table
True
This keyword eliminates duplicates in SQL
DISTINCT
Keyword to limit how many rows are used
Where does this keyword appear?
LIMIT {number}
Keyword comes at the end of the query after any ORDER BY statements
Conditional Statements are known as the WHERE clause, what are 4 examples
- Series of Bool expressions
- Several operators
- Multiple clauses
- Brackets
SQL requires the use of _______ quotes
single
The SQL % wildcard represents any sequence of _________ characters in a specific position in a string
contiguous
If a statement attaches
WHERE SKU LIKE “%2__”
What SKU’s will come up?
Any that have 2 and then 2 other characters following it.
T/F - SQL requires that the column used in the WHERE clause also appears in the SELECT clause
False
Used to rename objects for the duration of the query
Aliases
Aliases can rename _____ or ______
fields or tables
Field renaming is good for
Ensuring valid field names when data is exported
Table renaming becomes important when
JOINS are involved