subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
Answers: 1
question
Computers and Technology, 25.06.2019 04:40
1. instructions: in your response, make an argument for whether for whether it is better for waketown to build its new wake heights subdivision or to preserve the wake wetlan to preserve the wake wetland preserve. use evidence from at least two of the sources below to support your claim. be sure to introduce your precise claim, develop the claim with evidence from the sources, and demonstrate relationships between ideas. (15 points)
Answers: 2
You know the right answer?
Write a SELECT statement that returns these columns from the Products table: • The ListPrice column...
Questions
question
Chemistry, 10.11.2019 06:31
Questions on the website: 13722367