Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Brain Freeze
Message
From
18/03/2021 15:13:46
 
 
To
18/03/2021 13:46:16
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01679077
Message ID:
01679083
Views:
50
Likes (1)
>The brain just refuses to yield on this one.
>I need to calculate the number of Fridays (or any day) between 11/01/20 and 01/31/21.
>The column the table in question - coindrop- is a datetime called dropdate.
>I can determine that 815 rows happened on Friday during that time period.
>The next question is - how may happened on the average Friday, for example?
>Any ideas?

Just spitballing off the top o'me head here:

Select count(*) as FriCnt, DropDate from CoinDrop
where DateName(dw, DropDate) = 'Friday'
group by DropDate

or summat as a start
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform