01 ICS 2609 - SQL Part 1

studied byStudied by 11 people
5.0(1)
Get a hint
Hint
  • Projection

  • Selection

  • Join

1 / 28

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

29 Terms

1
  • Projection

  • Selection

  • Join

Capabilities of SQL SELECT Statements

New cards
2

FROM

keyword that identifies which table

New cards
3

SELECT

keyword that identifies what columns

New cards
4
  • Not case sensitive

  • Can be on one or more lines

  • Keywords cannot be abbreviated or split across lines

  • Clauses are usually placed on separate lines

  • Indents are used to enhance readability

SQL statements are the following:

New cards
5

Arithmetic Operators

Using _________, we can create expressions with number and date data

New cards
6

Multiplication and Division

Takes priority over addition and subtraction

New cards
7

Left to Right

Operators of the same priority are evaluated from __________

New cards
8

Parenthesis

Force prioritized evaluation and to clarify statements

New cards
9

Null

A value that is unavailable, unassigned, unknown, or inapplicable

New cards
10

Zero or Blank Space

A null is not the same as ______ or _______.

New cards
11

Column Alias

  • renames a column heading

  • Immediately follows the column name

  • Immediately follows the column name, either AS keyword or double quotation marks if it contains spaces or special characters or is case-sensitive

New cards
12

Concatenation Operator

  • concatenates columns or character strings to other columns

  • Is represented by two vertical bars (||)

  • creates a resultant column that is a character expression.

New cards
13

Literal

  • a character, a number, or a date included in the SELECT list

  • Date and character literal values must be enclosed within single quotation marks

  • Each character string output once for each row returned

New cards
14

DISTINCT

eliminating duplicate rows

New cards
15

WHERE

Restrict the rows by using _____ clause

New cards
16

FROM

The WHERE clause follows the _____ clause

New cards
17

Single Quotation Marks

Character strings and date values are enclosed in _________.

New cards
18

Case Sensitive, Format Sensitive

Character values are _____, and date values are ______

New cards
19

DD-MON-RR

The default date format is _______

New cards
20

BETWEEN

Using the _________ condition to display row based on a range of values.

New cards
21

IN Membership Condition

Use the _______ to test for values in a list

New cards
22

LIKE

Use the ______ condition to perform wildcard searches of valid search string values.

New cards
23

literal characters or numbers

Search conditions can contain either _________ or ________

New cards
24

%

denotes zero or many characters

New cards
25

__

denotes one character

New cards
26

ESCAPE

you can use the ________ to search for actual % and _ symbols

New cards
27

IS NULL

Tests for nulls with the ______ operator

New cards
28
  1. Arithmetic Operators

  2. Concatenation Operators

  3. Comparison Condition

  4. IS [NOT] NULL, LIKE, [NOT] IN

  5. [NOT] BETWEEN

  6. [NOT] logical condition

  7. AND logical condition

  8. OR logical condition

Rules of Precedence

New cards
29

ORDER BY

sort rows, it comes last in the SELECT statement

New cards

Explore top notes

note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 128 people
... ago
5.0(4)
note Note
studied byStudied by 36 people
... ago
5.0(1)
note Note
studied byStudied by 25 people
... ago
5.0(1)
note Note
studied byStudied by 22 people
... ago
5.0(2)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (24)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (62)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (52)
studied byStudied by 87 people
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 22 people
... ago
5.0(1)
flashcards Flashcard (57)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 15 people
... ago
5.0(2)
flashcards Flashcard (20)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 2 people
... ago
5.0(1)
robot