Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Databases and SQL for Data Science Exam Review

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
14-11-2023
Written in
2023/2024

Databases and SQL for Data Science Exam Review Q1. Which of the following statements are correct about databases: Q2. Which of the following statements about a database is/are correct?

Institution
Course

Content preview

Databases and SQL for Data Science Exam
Review
Q1. Which of the following statements are correct about databases:

A database is a repository of data
There are different types of databases - Relational, Hierarchical, No SQL, etc.
A database can be populated with data and be queried
All of the above - ANSW All of the above

Q2. Which of the following statements about a database is/are correct?

A database is a logically coherent collection of data with some inherent meaning
Data can only be added and queried from a database but not modified
Only SQL can be used to query data in a database
All of the above - ANSW A database is a logically coherent collection of data with some
inherent meaning

Q3. Select the correct statement below about database services or database instances:

Database services are logical abstractions for managing workloads in a database
An instance of the cloud database operates as a service that handles all application
requests to work with the data in any of the databases managed by that instance
The database service instance is the target of the connection requests from applications
All of the above - ANSW All of the above

Q4. The 5 basic SQL commands are...

CREATE, SELECT, INSERT, UPDATE, DELETE
SELECT, COPY, PASTE, INSERT, ALTER
CREATE, INSERT, RETRIEVE, MODIFY, DELETE
None of the above - ANSW CREATE, SELECT, INSERT, UPDATE, DELETE

Q5. A database stores data in tabular form only. True or False? - ANSW False

Q6. What is the function of a WHERE clause in an UPDATE statement?

A WHERE clause enables you to specify a new table to receive the updates.
A WHERE clause is never used with an UPDATE statement.
A WHERE clause enables you to specify which rows will be updated.
A WHERE clause enables you to list the column and data to be updated. - ANSW A
WHERE clause enables you to list the column and data to be updated.

, Q7. Which of the following statements would you use to add a new instructor to the
Instructor table.

ADD INTO Instructor(ins_id, lastname, firstname, city, country)
VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

INSERT INTO Instructor(ins_id, lastname, firstname, city, country)
WITH VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

UPDATE Instructor(ins_id, lastname, firstname, city, country)
WITH VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

SELECT Instructor(ins_id, lastname, firstname, city, country)
FROM VALUES(4, 'Doe', 'John', 'Sydney', 'AU'); - ANSW INSERT INTO
Instructor(ins_id, lastname, firstname, city, country)
WITH VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

Q8. You are working on a Film database, with a FilmLocations table. You want to
retrieve a list of films that were released in 2019. You run the following query but find
that all the films in the FilmLocations table are listed:

SELECT Title, ReleaseYear, Locations FROMFilmLocations;

What is missing?


Nothing, the query is correct.
A WHERE clause to limit the results to films released in 2019.
A DISTINCT clause to specify a distinct year.
A LIMIT clause to limit the results to films released in 2019. - ANSW A WHERE clause
to limit the results to films released in 2019.

Q1. The primary key of a relational table uniquely identifies each row in a table. True or
False? - ANSW True

Q2. The INSERT statement cannot be used to insert multiple rows in a single
statement. (T/F) - ANSW F

Q3. The SELECT statement is called a Query, and the output we get from executing the
query is called a ResultSet. - ANSW True

Q4. The CREATE TABLE statement is a....

DML statement
DDL statement

Written for

Course

Document information

Uploaded on
November 14, 2023
Number of pages
13
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.39
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartchoices Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
5 year
Number of followers
5
Documents
4499
Last sold
2 weeks ago

4.8

9 reviews

5
7
4
2
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions