ITM Sql Practice Exam Questions And
Answers Latest Update 2024/2025
The columns in a table represent which of the following about an entity in the table
Attributes
If an individual would like to place a non-aggregate condition (such as country = 'US') in code that only
results rows that fit certain criteria, which if the following areas would this code be placed?
Where
How has a document that contains all of the metadata about the data elements in a database. This
would be an example of which of the following?
Data dictionary
If the following join statements is used to join two tables in a query, which if the following tables would
all of the tulles in the relation appear in results
Left outer join university.students on class.classid = schedule.classid
University
Robert is writing a query to pull data from two tables. One table contains a list of video games. The field
games.gameid is the primary key of games and the field high scores.gameid is the foreign key in the
highscores.table. The other table contains player high scores. He has written the following in his query
so far:
Inner join schema.highscores on highscores.gameid = games.gameid
The three factors of the variety of date are:
Form function source
Text in a novel is an example of unstructured data
True
Zara is ready to buy a house, so she decides to hire a real estate agent from East Lansing Realty. Each
real estate agent works with several customers and the agent receives a commission on the sale of each
house. However, East Lansing Realty has a policy that each customer can be assigned to no more than
one real estate agent. This is an example of what type of relationship between customer and agent?
1:n
Collecting information from many sources and storing them together into a single location is referred to
as:
data aggregation
For the following piece of code, we would use the having function:
, Count(payment.payments) > 10
True
On a ranch, a person can own many horses. However, each horse is owned by a single person. What
type of relationship do we see here?
One to many
Which command allows you to add a professional title for your column title
As
The operator like in a sql statement is used for:
Pattern matcching
Which wildcard would you use that allows you to select all the rows in a selectable table
*
Which aggragation function shows the number of records that meet a set of criteria
Count
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 Schoolflix. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.99. You're not tied to anything after your purchase.