• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 2 van de 13 pagina's
Tentamen (uitwerkingen)

Databases and SQL for Data Science Exam Review

Document preview thumbnail
Voorbeeld 2 van de 13 pagina's

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

Voorbeeld van de inhoud

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

Documentinformatie

Geüpload op
14 november 2023
Aantal pagina's
13
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
$12.99

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Verkocht
3
Volgers
1
Items
322
Laatst verkocht
8 maanden geleden



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen