0

Is there a way I can create a view with last 7 days formated as DATE in mysql?

I have a query that I can use in where clause:

DATE_SUB( NOW(), INTERVAL 7 DAY )

but I can use it to create a standalone table.

4
  • Please provide more detail. Are you after a VIEW with 1 column that returns 7 rows of date values for the past 7 days? Or something else? Commented Aug 28, 2017 at 4:45
  • @Dai correct that is what I need Commented Aug 28, 2017 at 4:52
  • Yes. There is, and you can. Next! Commented Aug 28, 2017 at 6:44
  • @Strawberry can you prove that? Commented Aug 28, 2017 at 12:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.