100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
MIS 180 MY EDUCATOR SQL EXAM 2024/2025 $15.49   Add to cart

Exam (elaborations)

MIS 180 MY EDUCATOR SQL EXAM 2024/2025

 2 views  0 purchase
  • Course
  • MIS 180
  • Institution
  • MIS 180

MIS 180 MY EDUCATOR SQL EXAM 2024/2025

Preview 2 out of 11  pages

  • August 12, 2024
  • 11
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • MIS 180
  • MIS 180
avatar-seller
YANCHY
MIS 180 MY EDUCATOR SQL EXAM
2024/2025


Create a list in alphabetical order of names of customers with more than
$10 million in annual revenue - Precise Answer ✔✔Select *
from Customer
where annual_revenue > 10000000


The query result should be sorted by the following columns:
"cust_name". It is not. (-2)
Ignoring case, "order" could not be found in the query. (-1)


Give names, states, and areas of cities with names ending with 'City' and
with areas greater than 10 but less than 50. Use the BETWEEN operator.
- Precise Answer ✔✔Select City_name, State, area
from City
where city_name like '%city'
and area between 10 and 50


Give names and average monthly revenue of customers having annual
revenue exceeding $20 million. Name the column
Average_Monthly_Revenue with a literal (note the underscores). (Hint:
Use division.) - Precise Answer ✔✔Select Cust_name,
annual_revenue/12 as Average_Monthly_Revenue

, From customer
where annual_revenue > 20000000


Give names and states of customers that have a "D" as the third
character in their names. (Note: SQL Server data is not case sensitive.) -
Precise Answer ✔✔Select Cust_name, state
from Customer
where cust_name like '__D%'


What are the truck ID's of trucks that have carried small shipments.
Small shipments are defined as those that weigh less than 800 pounds?
(HInt: Avoid duplcates.) - Precise Answer ✔✔Select distinct (truck_ID),
weight
from shipment
where weight < 800


Feedback:
Your query produces too many rows. (-3)
Your query produces too many records with 1 in the result. (-1)
Your query produces too many records with 4 in the result. (-1)
Your query produces too many records with 11 in the result. (-1)


Using the IN operator, give the city names and their populations of the
cities in the database in North or South Dakota, Wyoming, or Montana. -
Precise Answer ✔✔select city_name, population

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller YANCHY. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77016 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.49
  • (0)
  Add to cart