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)

WGU D427 PRACTICE TEST QUESTIONS WITH ANSWER KEY 2024.

Beoordeling
-
Verkocht
-
Pagina's
26
Cijfer
A+
Geüpload op
03-06-2024
Geschreven in
2023/2024

WGU D427 PRACTICE TEST QUESTIONS WITH ANSWER KEY 2024. 1.47 Write the SQL to create a Product table with the following columns: ID - Integer Name - Variable-length string with maximum 40 characters ProductType - Variable-length string with maximum 3 characters OriginDate - Year, month, and day Weight - Decimal number with six significant digits and one digit after the - decimal point Place your CREATE TABLE statement before the INSERT and SELECT statements. Run your solution and verify the result table contains the three inserted rows. CREATE TABLE Product ( ID INT, Name VARCHAR(40), ProductType VARCHAR(3), OriginDate DATE, Weight DECIMAL(6,1) ); 1.54 Write the SQL to create a Product table with the following columns: ID - Integer with range 0 to 65,535 Name - Variable-length string with maximum 40 characters ProductType - Fixed-length string with 3 characters OriginDateTime - Year, month, day, and time Weight - Decimal number with variable precision and 4 bytes of storage Place your CREATE TABLE statement before the INSERT and SELECT statements. Run your solution and verify the result table contains the three inserted rows. CREATE TABLE Product ( ID SMALLINT UNSIGNED, Name VARCHAR(40), ProductType CHAR(3), OriginDateTime DATETIME, Weight FLOAT ); 1.6.9 The given SQL creates a Movie table and inserts some movies. The SELECT statement selects all movies released before January 1, 2000. Modify the SELECT statement to select the title and release date of PG-13 movies that are released after January 1, 2008. Run your solution and verify the result table shows just the titles and release dates for The Dark Knight and Crazy Rich Asians. SELECT Title, ReleaseDate FROM Movie WHERE Rating = 'PG-13' AND ReleaseDate ''; 1.79 Modify the SELECT statement to only select songs that have a NULL Title value. Then run your solution, and verify the new query returns only songs by Taylor Swift and Nirvana. SELECT * FROM Song WHERE Title IS NULL; 1.7.11 Modify the SELECT statement to select only songs that have a NULL Title or NULL Artist. SELECT * FROM Song WHERE Title IS NULL OR Artist IS NULL; or SELECT * FROM Song WHERE Title = NULL OR Artist = NULL; 1.8.6 Write three UPDATE statements to make the following changes: Change the title from 'One' to 'With Or Without You'. Change the artist from 'The Righteous Brothers' to 'Aretha Franklin'. Change the release years of all songs after 1990 to 2021. UPDATE Song SET Title = 'With Or Without You' WHERE ID = 200; UPDATE Song SET Artist = 'Aretha Franklin' WHERE ID = 300; UPDATE Song SET ReleaseYear = 2021 WHERE ReleaseYear 1990; 197 The given SQL creates a Movie table with an auto-incrementing ID column. Write a single INSERT statement immediately after the CREATE TABLE statement that inserts the following movies: Raiders of the Lost Ark PG June 15, 1981 The Godfather R March 24, 1972 The Pursuit of Happyness PG-13 December 15, 2006 INSERT INTO Movie (Title, Rating, ReleaseDate) VALUES ('Raiders of the Lost Ark', 'PG', ''), ('The Godfather', 'R', ''), ('The Pursuit of Happyness', 'PG-13', '');

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

WGU D427 PRACTICE TEST QUESTIONS WITH
ANSWER KEY 2024.



1.47 Write the SQL to create a Product table with the following columns:
ID - Integer
Name - Variable-length string with maximum 40 characters
ProductType - Variable-length string with maximum 3 characters
OriginDate - Year, month, and day
Weight - Decimal number with six significant digits and one digit after the -
decimal point
Place your CREATE TABLE statement before the INSERT and SELECT
statements. Run your solution and verify the result table contains the three
inserted rows.
CREATE TABLE Product (
ID INT,
Name VARCHAR(40),
ProductType VARCHAR(3),
OriginDate DATE,
Weight DECIMAL(6,1)
);
1.54 Write the SQL to create a Product table with the following columns:
ID - Integer with range 0 to 65,535
Name - Variable-length string with maximum 40 characters
ProductType - Fixed-length string with 3 characters
OriginDateTime - Year, month, day, and time
Weight - Decimal number with variable precision and 4 bytes of storage
Place your CREATE TABLE statement before the INSERT and SELECT

,statements. Run your solution and verify the result table contains the three
inserted rows.
CREATE TABLE Product (
ID SMALLINT UNSIGNED,
Name VARCHAR(40),
ProductType CHAR(3),
OriginDateTime DATETIME,
Weight FLOAT
);
1.6.9
The given SQL creates a Movie table and inserts some movies. The SELECT
statement selects all movies released before January 1, 2000.
Modify the SELECT statement to select the title and release date of PG-13 movies
that are released after January 1, 2008.
Run your solution and verify the result table shows just the titles and release
dates for The Dark Knight and Crazy Rich Asians.
SELECT Title, ReleaseDate
FROM Movie
WHERE Rating = 'PG-13' AND ReleaseDate > '2008-01-01';
1.79
Modify the SELECT statement to only select songs that have a NULL Title value.
Then run your solution, and verify the new query returns only songs by Taylor
Swift and Nirvana.
SELECT *
FROM Song
WHERE Title IS NULL;
1.7.11
Modify the SELECT statement to select only songs that have a NULL Title or
NULL Artist.

, SELECT * FROM Song WHERE Title IS NULL OR Artist IS NULL;
or
SELECT * FROM Song WHERE Title = NULL OR Artist = NULL;
1.8.6
Write three UPDATE statements to make the following changes:
Change the title from 'One' to 'With Or Without You'.
Change the artist from 'The Righteous Brothers' to 'Aretha Franklin'.
Change the release years of all songs after 1990 to 2021.
UPDATE Song
SET Title = 'With Or Without You'
WHERE ID = 200;


UPDATE Song
SET Artist = 'Aretha Franklin'
WHERE ID = 300;


UPDATE Song
SET ReleaseYear = 2021
WHERE ReleaseYear > 1990;
197
The given SQL creates a Movie table with an auto-incrementing ID column.
Write a single INSERT statement immediately after the CREATE TABLE statement
that inserts the following movies:
Raiders of the Lost Ark PG June 15, 1981
The Godfather R March 24, 1972
The Pursuit of Happyness PG-13 December 15, 2006
INSERT INTO Movie (Title, Rating, ReleaseDate)
VALUES ('Raiders of the Lost Ark', 'PG', '1981-06-15'),
('The Godfather', 'R', '1972-03-24'),
('The Pursuit of Happyness', 'PG-13', '2006-12-15');

Geschreven voor

Vak

Documentinformatie

Geüpload op
3 juni 2024
Aantal pagina's
26
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.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


Ook beschikbaar in voordeelbundel

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.
AcademicSuperScores Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
299
Lid sinds
3 jaar
Aantal volgers
37
Documenten
7648
Laatst verkocht
5 dagen geleden
AcademicSuperScores

NURSING, ECONOMICS, MATHEMATICS, BIOLOGY AND HISTORY MATERIALS. BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS AND STUDY GUIDE MATERIALS WITH GUARANTEE OF A+ I am a dedicated medical practitioner with diverse knowledge in matters Nursing and Mathematics. I also have an additional knowledge in Mathematics based courses (finance and economics)

4.6

156 beoordelingen

5
125
4
9
3
11
2
5
1
6

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