Take your time, relax, read all directions carefully and show me your best work. When you get to the queries, give me anything you can; I’ll give you partial credit for anything useful you include. There’s no best score write them in Cloud9, make sure they work, paste them into the exam and fix the formatting, line breaks, etc.
What type of JOIN returns all rows from the first table and any matching rows from the second table?
FULL OUTER JOIN LEFT OUTER JOIN INNER JOIN
Which records will the following FROM clause select? FROM Faculty LEFT JOIN Classes
All Faculty records and any Class records that are related to them Any Class records that are related to Faculty records
All Class records and any Faculty records that are related to them Any Faculty records that are related to Class records
When testing for NULL values to find Customers who have no Orders, which column is best to include in the WHERE clause below: WHERE IS NULL
Any foreign key from the Customers table The primary key from the Customers table The OrderDate column from the Orders table The primary key from the Orders table
What type of JOIN returns all rows from the second table and any matching rows from the first table?
RIGHT OUTER JOIN FULL OUTER JOIN INNER JOIN
LEFT OUTER JOIN
The results of a UNION cannot be sorted At the end of each SELECT statement
At the end of the last SELECT statement At the end of the first SELECT statement
When the keyword is left out of a UNION, the database system automatically eliminates any duplicate rows.
Which of the following is a requirement for the columns of the SELECT statements in a UNION?
Must have the same number of output columns specified. Neither of these are requirements.
Each corresponding column must have a comparable value. Both of these are requirements.
A SELECT expression that is embedded within one of the clauses of a SELECT statement is a(n) .
embedded SELECT sub-SELECT embedded query subquery
Which of the following is a request that can be answered using a subquery?
Create a list that combines agents and entertainers.
Create an index list of all the recipe classes, recipe titles, and ingredients. Display products and the latest date the product was ordered.
Show me the students who have a grade of 85 or better in Art together with the faculty members who teach Art and have a proficiency rating of 9 or better.
What type of subquery is an embedded SELECT expression that returns only one column and no more than one row?
Table subquery Row subquery Scalar subquery
Which aggregate function calculates the mean for a value expression?
When using an aggregate function, what is the name of the column in the final result set?
The name is generated by the database system. The name assigned in the AS clause.
None of these are possible names for the column.
All of these are possible names for the column. The column has no name.
What character is used to separate the columns referenced in the GROUP BY clause?
Comma , Period . Colon :
Which clause is used to group matching values of a specified column together?
WHERE GROUP BY FROM
When the GROUP BY clause is used without aggregate functions it will give you the same result as what keyword?
DISTINCT HAVING WHERE FROM
Columns referenced in the WHERE clause must be a part of what?
The columns referenced in the ORDER BY clause. Tables defined in the FROM clause.
The columns referenced in the SELECT clause. The columns used in aggregate functions.
Columns referenced in the HAVING clause must also be referenced where?
Enclosed within an aggregate function
What SQL feature enables you to undo a series of changes to the data?
System Updates UPDATE Undo Transactions
What character is used to separate multiple assignment statements in the SET clause?
Semicolon ; Comma ,
What need would NOT be addressed with an UPDATE statement?
Increasing the price of all sports supplements by 3%
Creating a list of all supplements that contain Creatine by manufacturer
Appending the word ?powder? to all ItemDescriptions for MuscleMilk products Changing the category of all sports supplements to ?Nutrition?
If the new value of a column involves the old or current value of the column, the column must be referenced where?
The left side of the equal sign The UPDATE clause
The WHERE clause
Both sides of the equal sign
Data can be inserted into a table or what other database item?
When the INSERT statement is fetching rows of data to be placed into a table, the SELECT expression is used in place of what?
The VALUES clause The value expression The column name list
The table name
HAVING WHERE FROM
What would keep the DELETE statement without the WHERE clause from deleting all the rows in a table?
Referential integrity constraints Transactions
What is a possible method for ensuring that the correct rows are deleted from the database before the DELETE statement is run?
Creating a SELECT statement and then transferring the WHERE clause to the DELETE statement Using system logs
We are planning our 1st Quarter marketing budget and need you to provide some historical sales data from the SalesOrdersModify database. Provide summarized data regarding the orders we received d out by customer city and state. Include customer city and state names along with the count of all orders, the average order total, smallest and largest order totals and the sum of all orders from that city and Please make sure the average is formatted with two digits after the decimal place. (20 rows)
We are planning a postcard mailing to promote our performers who play Show Tunes or Standards. Using the EntertainmentAgencyModify database, list the full name and mailing address for all customers play Show Tunes or Standards so that we can include them in the mailing. (Hint: create a subquery to list all customers who DID book performers who play those musical styles and then test for NULL to s use the names of the musical styles, not the styleID numbers. (7 rows)
Our EntertainmentAgencyModify database is encountering performance issues because of its size. Archive all Engagements that both started and ended prior to March 1, 2018 into the Engagements_Arch remove them from the original Engagements table to reduce the size of that table. Remember to use transactions for each of these two queries to protect your data. (45 rows)
(Note: Refer to the schema in Question 32 for relationships.)
We are looking for customer endorsements of the performer “Modern Dance”. Provide a list of names and phone numbers for any customers in the EntertainmentAgencyModify database who have ever bo these engagements may now be archived. Put the list of customers in alphabetical order by last name and first name. (Hint: use a SQL command that will allow you to combine the results of two similar qu Engagements_Archive, into a single result set.) (8 rows)
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more