Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 13 páginas
Examen

Databases and SQL for Data Science Exam Review

Document preview thumbnail
Vista previa 2 fuera de 13 páginas

Databases and SQL for Data Science Exam Review Which of the following statements are correct about databases: Select the correct statement below about database services or database instances

Vista previa del contenido

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

Información del documento

Subido en
14 de noviembre de 2023
Número de páginas
13
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$12.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
3
Seguidores
1
Artículos
327
Última venta
5 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes