Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
782 views
in Technique[技术] by (71.8m points)

cryptography - How to group by month-year from a differently formatted date (SQL)

I've tried to self-teach myself SQL but am struggling with a dashboard I want to build.

How do I manipulate or change the date which is "08/03/18 09:00" so that I can group it by month+year and not per second?

[link to what the table looks like]1

my current attempt:

SELECT AVG(price) as "price", MONTH(minute) as month
FROM prices.usd
WHERE minute > now() - interval '365 days'
AND contract_address = 'x6b175474e89094c44da98b954eedeac495271d0f'
GROUP BY month
question from:https://stackoverflow.com/questions/66056926/how-to-group-by-month-year-from-a-differently-formatted-date-sql

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...