Shared Flashcard Set

Details

MySQL Chapter 04
N/A
18
Computer Science
Undergraduate 2
04/25/2011

Additional Computer Science Flashcards

 


 

Cards

Term
Query
Definition
Question represented in a way that the DBMS can understand
Term
Select Queries
Definition
Conditional restrictions
Arithmetic operators
Logical operators
Special operators
Term
Arithmetic Operators
Definition
Equal to
Less than
Greater than
Less than or equal to
Greater than or equal to
Not equal to
Term
Computed Column
Definition
Does not exist in the database but is computed using data in existing columns
Term
Column Alias
Definition
Alternative name for a column
Use key word AS after the column name to specify an alias
Use double or single quotation marks if an alias contains spaces
Term
Compound Conditions
Definition
Connects two or more simple conditions
AND
OR
NOT
Term
Special Operators
Definition
BETWEEN
IS NULL
IN
LIKE
Term
BETWEEN
Definition
checks whether attribute value is within a range
Term
IS NULL
Definition
checks whether attribute value is null
Term
IN
Definition
checks whether attribute value matches any value within a value list
Term
LIKE
Definition
checks whether attribute value matches given string pattern
% matches any number of characters, even zero characters
_ matches exactly one character
Term
Sorting
Definition
Use ORDER BY clause
Term
SQL Functions
Definition
AVG
COUNT
MAX
MIN
SUM
Term
DISTINCT Operator
Definition
Eliminates duplicate values
Term
Nesting Queries
Definition
Subquery
One query is placed inside another one
The inner query is executed first, then the outer query uses the result of the first query
Used if you have a multiple step operation
Use IN Operator
Term
Grouping
Definition
Creates groups of rows that share common characteristics
Term
HAVING vs. WHERE
Definition
WHERE limit rows
HAVING limit groups
Term
Practice Problems
Definition
Slide 18 , 28 , 34 , 38 , 44
Supporting users have an ad free experience!