1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Amanda [17]
3 years ago
8

Write a SELECT statement that returns these columns from the Orders table: The order_id column The order_date column A column na

med approx_ship_date that’s calculated by adding 5 days to the order_date column The ship_date column A column named days_to_ship that shows the number of days between the order date and the ship date When you have this working, add a WHERE clause that retrieves just the orders for March 2018.
Computers and Technology
1 answer:
valkas [14]3 years ago
7 0

Answer:

SELECT order_id, order_date,

DATEADD(DAY,5,order_date) AS approx_ship_date,

ship_date,

DATEDIFF(DAY,ship_date,DATEADD(DAY,2,order_date)) AS days_to_ship

FROM Orders

WHERE YEAR(order_date) = 2018 AND MONTH(order_date) = 3                            

Explanation:

The first line of the SQL statement is a SELECT statement which selects    order_id, order_date and ship_date columns from Orders table.

The DATEADD() is used to add date and here it is used to add 5 days to order_date column and the resultant column is named as approx_ship_date using ALIAS.

DATEDIFF() function is used to return the difference between two dates and here it shows number of days between order_date and ship_date columns.

WHERE clause is used to retrieve orders from March 2018. YEAR function represents the year of order_date which is set as 2018 to retrieve the orders for 2018. MONTH function represents the month of order_date which is set to 3 which means March in order to retrieve the orders for March.

You might be interested in
Which of the following is true regarding data acquisition? Because data acquisition is often technical, the research team does n
elixir [45]

Answer:

Data acquisition should follow a detailed collection plan that is set in advance.

Explanation:

The process of collection of data over computer with the help of electronic sensors is called data acquisition. The can be related to voltage, current, temperature etc.

For example

Data collection with the help of sensors to monitor weather conditions is an example of data acquisition. In this process data has been gathered on already planned format. Each column or row of data will be helpful to predict the weather condition such as, rain predictions, earthquake prediction etc.

That's why to collect this type of data, collection plan should be set in advance to gather relevant information with the help of data.

4 0
4 years ago
Read 2 more answers
What is the legal right granted to all authors and artists that gives them sole ownership and use of their words, software, pict
ICE Princess25 [194]

Answer:

copyright

Explanation:

3 0
4 years ago
Janeal spends her day looking at the stock and bond markets and evaluating how the portfolios of the businesses she serves will
pychu [463]

Answer:

ur answer good sir will be : financial analyst

and a brainliest will be good to thnx

4 0
4 years ago
A team member was assigned 4 stories during sprint planning for a 2 week Sprint. Story 1 is easy to complete but does not add a
lbvjy [14]

Answer:

Option (B) is correct answer.

Explanation:

In this whole world, any person needs to do the task because of some profits. If there is a task with more points and if it is easy then it needs to be executed first.

Here in this question, story 2 is an easy task and gives more money, so that is to be executed first. Story 4 also gives more money but it is not easy so no one grantee to complete the task.

Hence option b is the correct answer. while the other option is not because--

  • Option "a" states about story 1, which is easy to complete but can not provide any type of value or money. So why anyone complete that task first which does not gives any types of profits.
  • Option c states about story 3, which is not easy to complete and also does not give any profits. So do not need to complete that task first which does not provide any profits and also that is difficult.
  • Option d states about story 4, which is not easy to complete but gives a lot of points. But there is no grantee that the task can complete in time. so no one needs to complete the risky task in the first order.

Hence the team member needs to execute the task in the following order--

  1. Story 2
  2. Story 4
  3. Story 1 and then
  4. Story 3

4 0
3 years ago
What is the purpose of the domain name?
Aloiza [94]

Answer:

Purpose. Domain names serve to identify Internet resources, such as computers, networks, and services, with a text-based label that is easier to memorize than the numerical addresses used in the Internet protocols.

6 0
3 years ago
Other questions:
  • A _______ is used to analyze and summarize your data without graphical support.
    10·1 answer
  • People with healthy media diets:
    12·1 answer
  • Lonnie has several workbooks that contain financial and sales data. He needs to ensure that if the data in a single cell in one
    5·1 answer
  • A website that sells high-end ties notices that its ads are showing up for searches that include "cheap". Because its ties are e
    14·1 answer
  • Which column and row references are updated when you copy the formula: =F$5+12?
    14·1 answer
  • A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To ac
    5·2 answers
  • What is the meaning of the concept (atomically)
    11·1 answer
  • Which item best describes fiber optic transmission?
    14·1 answer
  • I’m printing a paper but it told me “printer has a paper jam” what does that mean?
    6·1 answer
  • Which word did alexander graham bell want adopted as a telephone greeting instead of hello.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!