COB 204 Databases Test with Complete Solutions
What is a database management system (DBMS)? - Answer-Software program to create, process, administer a database
Licensed from vendors
- IBM, Microsoft, Oracle, & others
DB2, Access, SQL Server, Oracle Database
Open Source
MySQL: License-free f...
COB 204 Databases Test with
Complete Solutions
What is a database management system (DBMS)? - Answer-Software program to
create, process, administer a database
Licensed from vendors
- IBM, Microsoft, Oracle, & others
DB2, Access, SQL Server, Oracle Database
Open Source
MySQL: License-free for most applications
what does Database administration do? - Answer-- Set up security system, user
accounts, passwords, permissions, limits for processing
- Limit user permissions
- Backup database, improve performance of database application, remove unwanted
data
This statement will return a row for every row in the Customer table, and also
associated information from the CustomerDetail table is there is any
A.) SELECT * FROM CustomerDetail RIGHT JOIN CustomerDetail ON Customer.Id =
CustomerDetail.CustomerId;
B.) SELECT * FROM Customer LEFT JOIN CustomerDetail ON Customer.Id =
CustomerDetail.CustomerId;
C.) SELECT * FROM Customer WHERE CustomerDetail.CustomerId = Customer.Id;
D.) SELECT * FROM Customer; - Answer-B.) SELECT * FROM Customer LEFT JOIN
CustomerDetail ON Customer.Id = CustomerDetail.CustomerId;
Which SQL clause will you add to this query in order to associate the "Phone" field with
the "Number1" field in the "Contacts" table?
SELECT * FROM Customers
A.) JOIN Contacts
ON Phone=Number1
B.) JOIN ON Customers.Phone = Contacts.Number1
C.) JOIN Contacts
ON Customers.Phone = Contacts.Number1
D.) CONNECT Customers.Phone = Contacts.Number1 - Answer-C.) JOIN Contacts
ON Customers.Phone = Contacts.Number1
Which type of join returns only the matches for items that are in both tables?
, A. outer join
B. right join
C. left join
D. inner join - Answer-D. inner join
Is it possible to group by two fields, and if so what would be the correct syntax?
A. Yes, using this syntax:
GROUP BY Field1
GROUP BY Field2
B. No, applying multiple grouping in the same statement is not allowed
C. Yes, using this syntax:
GROUP BY Field1, Field2
D. Yes, multiple grouping is allowed, but only if the grouped fields have the same data
type - Answer-C. Yes, using this syntax:
GROUP BY Field1, Field2
Which statement is true regarding the DB Browser tool?
A. The tool must connect to a database server
B. This tool must be purchased
C. This tool works consistently across all major platforms
D. This tool does not offer a log of historical commands - Answer-C. This tool works
consistently across all major platforms
What does a record represent in a database?
A. a kind of information
B. a set of information
C. a type of field
D. a table of values - Answer-B. a set of information
How many clauses are defined in this statement?
*SELECT Height, Weight FROM Shapes
WHERE Material='Wood'
ORDER BY Height;*
A. one
B. four
C. three
D. five - Answer-B. four
Bryan is 13 years old, Lisa is 15, and Mike is 21. Their ages would most likely be stored
in a:
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 Scholarsstudyguide. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.39. You're not tied to anything after your purchase.