SQL Ch4 Review Word Scramble
|
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
| Question | Answer |
| To retrieve data from more than one table, you must ___ the tables together by finding rows in the two tables that have identical values in matching columns. | join |
| Another word for joining the tables is to ___. | relate |
| When there is potential ambiguity in listing column names, you must ___ the columns involved in the query. | qualify |
| You join tables in SQL by including a condition in the ____ clause to ensure that matching columns contain equal values. | WHERE |
| You can obtain similar results by using either the __ operator or the ___ operator. | EXISTS, IN |
| A ___ is a query that involves a table listed in the outer query. | correlated subquery |
| A subquery within a subquery is known as a ____. | nested subquery |
| SQL evaluates the queries from the ____ query to the ____ query. | innermost, outermost |
| An alternate name that you can use in the rest of a statement is known as a ___. | alias |
| If the query is complex and requires you to qualify the names, using ____ can simplify the process. | aliases |
| A second reason for using an alias is when you are joining a table to itself, called a ____. | self-join |
| In SQL, you can use the set operations for taking the ____,____,____ of two tables. | union, intersection, differece |
| The ___ of two tables is a table containing every row that is in either the first table, the second table or both tables. | union |
| The ____( ___ ) of two tables is a table containing all rows that are in both tables. | intersection(intersect) |
| The ___(___) of two tables is the set of all rows that are in the first table but that are not in the second table. | difference(minus) |
| Two tables are _____ ___ if they have the same number of columns and if their corresponding columns have identical data types and lengths. | union compatible |
| If the SQL implementation truly supports the union operation it will remove any ____ rows automatically. | duplicate |
| You can use the ___ and ___ operators with subqueries to produce a single column of numbers. | ALL, ANY |
| A join that compares the tables in the FROM clause and lists only those rows that satisfy the condition in the WHERE clause is called a(n) ___ ___. | inner join |
| Sometimes you need to list all the rows from one of the tables in a join, regardless of whether they match any rows in the other table. This is called a(n) ___ ___. | outer join |
| There are three types of outer joins: __ __ ___. | left outer join, right outer join, full outer join |
| In a ___ ___ ___ all rows from the table on the left will be included regardless of whether they match rows from the table on the right. | left outer join |
| In a ___ ___ __, all rows from the table on the right will be included regardless of whether they match rows from the table on the left. | right outer join |
| In a ___ __ __ , all rows from both tables will be included regardless of whether they match rows from the other table. | full outer join |
| The ___ ( formerly called the ___ ___) of two tables is the combination of all rows in the first table and all rows in the second table. | product, Cartesian Product |
| To form a product you simply omit the ___ clause. | WHERE |
Created by:
kat1350
Popular Computers sets