Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Sophia Introduction to Relational Databases Milestone one, score 33/36, 92%

Beoordeling
-
Verkocht
-
Pagina's
40
Cijfer
A+
Geüpload op
07-10-2023
Geschreven in
2023/2024

Sophia Introduction to Relational Databases Milestone one, score 33/36, 92% 33 / 36  that's 92% RETAKE  33 questions were answered correctly . 3 questions were answered incorrectly . In each milestone, you may want or need to use the databaseand query tool to answer some of the questions. We suggest youopen the tool in another browser tab while you are working onthis assessment. Identify the correctly constructed ALTER TABLE statement toadd a UNIQUE constraint to the column reference_number withthe constraint name reference_number_unique on the tablecalled 'document'.   ALTER TABLE document ADDCONSTRAINT reference_numberUNIQUE (reference_number);  ALTER TABLE document ADDCONSTRAINTreference_number_uniqueUNIQUE (reference_number

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

UNIT 1 — MILESTONE 1

33/36

33/36  that's 92% RETAKE



 33 questions were answered correctly.
3 questions were answered incorrectly.



1 


In each milestone, you may want or need to use the database
and query tool to answer some of the questions. We suggest you
open the tool in another browser tab while you are working on
this assessment.

https://postgres.sophia.org/

Identify the correctly constructed ALTER TABLE statement to
add a UNIQUE constraint to the column reference_number with
the constraint name reference_number_unique on the table
called 'document'.



ALTER TABLE document ADD
CONSTRAINT reference_number

UNIQUE (reference_number);



ALTER TABLE document ADD
CONSTRAINT
  reference_number_unique
UNIQUE (reference_number);



ALTER TABLE document ADD
UNIQUE reference_number


, CONSTRAINT
UNIT 1(reference_number_unique);
— MILESTONE 1

33/36
ALTER TABLE document ADD
CONSTRAINT reference_number
 UNIQUE
(reference_number_unique);




RATIONALE
Common mistakes with adding the UNIQUE constraint to an
existing column include not having ( ) around the column names,
omitting the keyword UNIQUE, incorrectly spelling the column
name, and not including the constraint name.

CONCEPT
 UNIQUE to Validate Data

Report an issue with this question




2 


In each milestone, you may want or need to use the database
and query tool to answer some of the questions. We suggest you
open the tool in another browser tab while you are working on
this assessment.

https://postgres.sophia.org/

Using the SELECT statement, query the track table to find the
total cost of the tracks on album_id 5, rounded to the nearest
dollar.



14


, UNIT

114.9
— MILESTONE 1

33/36
14.85




15
 



RATIONALE
Common mistakes when using the ROUND function include not
selecting the right column, not including the precision level,
omitting the ( ) around the column/function, and failing to add in the
filter conditions.

CONCEPT
 ROUND to Round Numbers

Report an issue with this question




3 


In each milestone, you may want or need to use the database
and query tool to answer some of the questions. We suggest you
open the tool in another browser tab while you are working on
this assessment.

https://postgres.sophia.org/

Using the AND or OR statement, filter the employee table for
employees who live in the city Lethbridge or have IT within their
title.

Identify the first name of the 2nd record.



Michael


, UNIT 1Robert
— MILESTONE 1
 

33/36
Laura
 



King




RATIONALE
Common mistakes include using the = instead of LIKE when
utilizing wild cards, filtering the wrong column of data, using the
wrong data table, omitting the single quotes around the data, and
forgetting to include the wild cards in all parts of the string rather
than just on one end. Another common mistake when using the
AND and OR statements is selecting the incorrect option; the AND
operator should be used when both conditions need to apply
whereas the OR operator should be used when only one condition
of the two should apply.

CONCEPT
 Multiple Filters

Report an issue with this question




4 


In each milestone, you may want or need to use the database
and query tool to answer some of the questions. We suggest you
open the tool in another browser tab while you are working on
this assessment.

https://postgres.sophia.org/

Using the WHERE clause, filter the employee table to include
individuals that report to Andrew Adams, who has an
employee_id of 1.

Identify the title of the 2nd individual listed.

Geschreven voor

Vak

Documentinformatie

Geüpload op
7 oktober 2023
Aantal pagina's
40
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.99
Krijg toegang tot het volledige document:

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

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
LectDan Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
221
Lid sinds
3 jaar
Aantal volgers
157
Documenten
7985
Laatst verkocht
2 dagen geleden

4.0

48 beoordelingen

5
25
4
12
3
2
2
4
1
5

Recent door jou bekeken

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