SANS GFACT SQL QUIZ QUESTIONS
The data in non-relational databases is structured, just like relational databases. -
Answers- False - Non-relational databases are for use when the kind of data is not
known, and/or if the type of data changes frequently.
The 'WHERE' SQL command is used to filter data that meet certain criteria. - Answers-
True - The `WHERE` clause helps us to filter records to only the ones that match a
certain condition, i.e.the defined value within a database column
To select all data from a table, use the wild card character '!', exclamation point -
Answers- False - The asterisks '*' is the wild card character
When using the AS command, the renaming of the field is permanent - Answers- False
- The renaming of a field using the AS command only exists fo the duration of the SQL
query.
a LEFT JOIN includes matching results from the first table and all results from the
second table - Answers- False - the RIGHT JOIN command includes matching results
from the first table and all results from the second table
The first table in a LEFT JOIN will always have all of its records returned in the query no
matter what the condition of the join is - Answers- True
The first table to be joined is mentioned in the INNER JOIN clause. - Answers- False -
The second table to be joined is mentioned in the INNER JOIN clause.
Operators UNION, IN, LIKE and SOME are examples of Comparison operators -
Answers- False - These are Logical operators
When you execute a query that contains a subquery, the subquery is evaluated at the
same time as the query - Answers- False - The subquery is evaluated first and then the
result of that query is used in the enclosing query
The `EXISTS` operator checks for the existence of records in a subquery before the
subquery is evaluated - Answers- False - The 'EXISTS' operator evaluates subqueries
after all the subqueiries are evaluated
The UNION operator is used to emulate a FULL JOIN, not supported by MySQL -
Answers- True
The CONSTRAINTS operator is used to define rules for a field in a table - Answers-
False - There is no CONSTRAINT operator, rather we use commands like FOREIGN
KEY, PRIMARY KEY or REFERENCES
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller GEEKA. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.