100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

D427 Questions with complete solution 2024

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
01-09-2024
Written in
2024/2025

D427 Questions with complete solution 2024 D427 Write a Query that Selects all fields from "Customers" where country is "Germany" AND city must be "Berlin" OR "Stuttgart" - correct answer SELECT * FROM Customers WHERE Country = 'Germany' AND (City = 'Berlin' OR City = 'Stuttgart'); Write a Query that selects all customers from the "Customers" table, sorted by the "Country" and the "CustomerName" column. This means that it orders by Country, but if some rows have the same Country, it orders them by CustomerName - correct answer SELECT * FROM Customers ORDER BY Country, CustomerName; Insert a new record into the "Customers" table, but only insert data in the "CustomerName", "City", and "Country" columns - correct answer INSERT INTO Customers (CustomerName, City, Country) VALUES ('Rick', 'Lexington', 'USA'); Lists all customers from the Customers table with a NULL value in the "Address" field - correct answer SELECT * FROM Customers WHERE Address IS NULL; List all customers from the Customers table without a NULL value in the CustomerName field

Show more Read less
Institution
WGU D427
Course
WGU D427

Content preview

D427
Write a Query that Selects all fields from "Customers" where country is
"Germany" AND city must be "Berlin" OR "Stuttgart" - correct answer
✔SELECT *
FROM Customers
WHERE Country = 'Germany' AND (City = 'Berlin' OR City = 'Stuttgart');


Write a Query that selects all customers from the "Customers" table, sorted by
the "Country" and the "CustomerName" column. This means that it orders by
Country, but if some rows have the same Country, it orders them by
CustomerName - correct answer ✔SELECT *
FROM Customers
ORDER BY Country, CustomerName;


Insert a new record into the "Customers" table, but only insert data in the
"CustomerName", "City", and "Country" columns - correct answer ✔INSERT
INTO Customers (CustomerName, City, Country)
VALUES ('Rick', 'Lexington', 'USA');


Lists all customers from the Customers table with a NULL value in the
"Address" field - correct answer ✔SELECT *
FROM Customers
WHERE Address IS NULL;


List all customers from the Customers table without a NULL value in the
CustomerName field - correct answer ✔SELECT *
FROM Customers
WHERE CustomerName IS NOT NULL;

, Update the first customer (CustomerID = 1) with a new contact person and a
new city in the Customer Table - correct answer ✔UPDATE Customer
SET ContactPerson = 'John', City = 'Lexington'
WHERE CustomerID = 1;


Deletes the customer "Alfreds Futterkiste" from the "Customers" table - correct
answer ✔DELETE FROM Customers
WHERE CustomerName = 'Alfreds Futterkiste';


Delete all records from the Customers table - correct answer ✔DELETE
FROM Customers;


Write a query statement that finds the price of the cheapest product in the
Products table - correct answer ✔SELECT MIN(Price)
FROM Products;


Write a query that finds the maximum population in the USA from the World
Table - correct answer ✔SELECT MAX(Population)
FROM World
WHERE Country = 'USA';


Write a query to find the total number of Users in the Google table - correct
answer ✔SELECT COUNT(UserID)
FROM Google;


Write a query to find the average amount of cars in the Neighborhood Table -
correct answer ✔SELECT AVG(Cars)

Written for

Institution
WGU D427
Course
WGU D427

Document information

Uploaded on
September 1, 2024
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • d427

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.
Academia199 Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
354
Member since
3 year
Number of followers
209
Documents
19198
Last sold
1 day ago

3.9

50 reviews

5
27
4
6
3
7
2
3
1
7

Trending documents

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

Frequently asked questions