Computers and Technology
Computers and Technology, 12.08.2020 16:01, javlo4461

Write a SELECT statement that returns these columns from the Products table: • The ListPrice column
• The DiscountPercent column
• A column named DiscountAmount that uses the previous two columns to calculate the discount amount and uses the ROUND function to round the result to 2 decimal places
I got number one figured out. SELECT ListPrice, DiscountPercentROUND(ListPrice * DiscountPrice/100) AS DiscountAmountfrom Products;
2. Write a SELECT statement that returns these columns from the Orders table:The OrderDate columnA column that returns the four-digit year that’s stored in the OrderDate columnA column that returns only the day of the month that’s stored in the OrderDate column. A column that returns the result from adding thirty days to the OrderDate column.3. Write a SELECT statement that returns these columns from the Orders table:The CardNumber columnThe length of the CardNumber columnThe last four digits of the CardNumber columnWhen you get that working right, add the column that follows to the result set. This is more difficult because the column requires the use of functions within functions. A column that displays the last four digits of the CardNumber column in this format: ---1234. In other words, use Xs for the first 12 digits of the card number and actual numbers for the last four digits of the number.4. Write a SELECT statement that returns these columns from the Orders table:The OrderID columnThe OrderDate columnA column named ApproxShipDate that’s calculated by adding 2 days to the OrderDate columnThe ShipDate columnA column named DaysToShip that shows the number of days between the order date and the ship dateWhen you have this working, add a WHERE clause that retrieves just the orders for March 2012

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, jumpgirll
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, victordhernandez01
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
image
Computers and Technology, 24.06.2019 09:00, lisacarter0804
Why might you chose to crest a function resume
Answers: 1
image
Computers and Technology, 24.06.2019 12:50, opgbadwolf5
When is it most apprpriate for a development team to change the definition of done
Answers: 1
Do you know the correct answer?
Write a SELECT statement that returns these columns from the Products table: • The ListPrice column...

Questions in other subjects:

Konu
English, 30.11.2021 01:00