Section 1

Preview this deck

Data type: number (size,d)

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (25)

Section 1

(25 cards)

Data type: number (size,d)

Front

Number value with a maximum number of digits of "size" total, with a max number of "d" digits to the right of the decimal.

Back

What are the different types of JOIN clauses supported by the ANSI- standard?

Front

(1) Inner Join (2) Left Join (3) Right Join (4) Full Join (5) Cross Join

Back

Exclusionary Left Outer Join

Front

Can produce set of records that exist only in Table A ( and not Table B) using a where clause.

Back

Data type: char(size)

Front

Fixed-length character string. Size specified in parentheses. Max 255 bytes.

Back

Data type: number(size)

Front

Number value with a max number of column digits specified in parenthesis.

Back

TABLE JOIN

Front

SELECT "list-of-columns" FROM table1,table2 WHERE "search-condition(s)"

Back

Describe a Left Join

Front

(or Left Outer Join) Returns all rows from the left table, and the matched rows from the right table; i.e., the results will contain all records from the left table, even if the JOIN condition doesn't find any matching records in the right table. This means that if the ON clause doesn't match any records in the right table, the JOIN will still return a row in the result for that record in the left table, but with NULL in each column from the right table. Ex: Produces a complete set of recors from Table A, with the matching records (where available) in Table B. If no match, right side will contain null.

Back

Describe an Inner Join

Front

simple joins Returns all rows for which there is at least one match in BOTH tables. This is the default type of join if no specific JOIN type is specified. i.e. If you have a Table A and a Table B SELECT * FROM TableA INNER JOIN TableB ON TableA."col" = TableB."col" produces only the set of records that match in both A and B

Back

Constraint (SQL)

Front

Rule associated with a column that the data entered into that column must follow.

Back

Describe a Right Join

Front

(or Right Outer Join) Returns all rows from the right table, and the matched rows from the left table. This is the exact opposite of a LEFT JOIN; i.e., the results will contain all records from the right table, even if the JOIN condition doesn't find any matching records in the left table. This means that if the ON clause doesn't match any records in the left table, the JOIN will still return a row in the result for that record in the right table, but with NULL in each column from the left table.

Back

What does UNION do?

Front

UNION merges the contents of two structurally-compatible tables into a single combined table.

Back

ROUND(x)

Front

Returns the value of x rounded to the nearest whole integer

Back

Exclusionary Full Outer Join

Front

To produce the set of records unique to Table A and Table B, we perform the same full outer join, then exclude the records we don't want from both sides via a where clause.

Back

SIGN(x)

Front

Returns the sign of input x as -1,0,1

Back

Data type: varchar(size)

Front

Variable-length character string. Max size is specified in parenthesis.

Back

ABS(x)

Front

Returns the absolute value of x

Back

Describe a Full Join

Front

(or Full Outer Join) Returns all rows for which there is a match in EITHER of the tables. Conceptually, a FULL JOIN combines the effect of applying both a LEFT JOIN and a RIGHT JOIN; i.e., its result set is equivalent to performing a UNION of the results of left and right outer queries. ex: Produces the set of all records in Table A and Table B, with matching records from both sides if available. If no match, missing side will contain null.

Back

What is the difference between UNION and UNION ALL?

Front

The difference between UNION and UNION ALL is that UNION will omit duplicate records whereas UNION ALL will include duplicate records.

Back

Describe a Cross Join

Front

Returns all records where each row from the first table is combined with each row from the second table (i.e., returns the Cartesian product of the sets of rows from the joined tables). Note that a CROSS JOIN can either be specified using the CROSS JOIN syntax ("explicit join notation") or (b) listing the tables in the FROM clause separated by commas without using a WHERE clause to supply join criteria ("implicit join notation").

Back

POWER(x,y)

Front

Returns the value of x raised to the power of y

Back

DELETE statement

Front

used to delete records or rows from the table delete from "tablename" where "columnname" OPERATOR "value" [and|or "column" OPERATOR "value"]; [ ] = optional

Back

MOD(x,y)

Front

Modulo- returns the integer remainder of x divided by y (same as x%y)

Back

CEILING(x), CEIL(x)

Front

Returns the smallest integer value that is greater than or equal to x

Back

Data type: date

Front

Date value

Back

FLOOR(x)

Front

Returns the largest integer value that is less than or equal to x

Back