GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is the average number of available rooms in each hotel?…

What is the average number of available rooms in each hotel? SELECT ROUND(AVG(rooms_available), 1) AS avg_available_roomsFROM hotels; Enter the value.

Read Details

How many hotel bookings were there by month? SELECT     MONT…

How many hotel bookings were there by month? SELECT     MONTH(checkin_date) AS month_number,    COUNT(*) AS total_bookingsFROM bookingsGROUP BY MONTH(checkin_date)ORDER BY month_number; Upload a well-formatted line chart.

Read Details

How many hotels do we have? SELECT COUNT(*) AS num_hotelsFRO…

How many hotels do we have? SELECT COUNT(*) AS num_hotelsFROM hotels; Enter the count.

Read Details

What was the average unit cost for each ingredient? For ex…

What was the average unit cost for each ingredient? For example, what was the average cost for each pound of bell peppers? Sort the results by ingredient in alphabetical order. Round to two decimal places. Enter the unit cost for the ingredients below.   [a]  avocado [b]  basil

Read Details

Write Queries

Write Queries

Read Details

Categorize and count ingredients based on their unit cost….

Categorize and count ingredients based on their unit cost. Use CASE WHEN to accomplish this. Ingredients should be categorized into these groups: low cost — less than or equal to $1 medium cost — less than or equal to $2, but greater than $1 high cost — greater than $2 (Round to two decimal places.) Enter the counts for each category.   [a]  low cost [b]  medium cost [c]  high cost

Read Details

How much did we pay for ingredients by supplier location typ…

How much did we pay for ingredients by supplier location type? Enter those values.   [a]  local [b]  national

Read Details

How many purchases were made? Enter the count.

How many purchases were made? Enter the count.

Read Details

Categorize and count flights by their length of delay. Use…

Categorize and count flights by their length of delay. Use CASE WHEN to create these categories: no delay — less than or equal to 0 short delay — greater than 0, but less than 30 moderate delay — greater than or equal to 30, but less than 60 long delay — greater than or equal to 60 Enter the counts in each category.   [a]  1.  no delay [b]  2.  short delay [c]  3.  moderate delay [d]  4.  long delay

Read Details

Which passengers experienced the most flight delays? For e…

Which passengers experienced the most flight delays? For each passenger, count their number of delayed flights and total minutes of delay. Include the passenger’s full name using this format: “Last Name, First Name”. Only count flights with a delay greater than 0. Use a common table expression to accomplish this. Select the two customers with the most delayed flights.

Read Details

Posts pagination

Newer posts 1 … 20 21 22 23 24 … 96,640 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top