Viewing 15 posts - 1,981 through 1,995 (of 4,087 total)
January 23, 2017 at 11:51 am
January 23, 2017 at 10:58 am
I think that we need a better data set if we're going to give a good answer. Your current data set only has one record that will be deleted. We...
January 20, 2017 at 8:31 am
Assuming that you data does not contain any records for the current month, this should work.
;
WITH CTE AS
(
SELECT StoreId, sales, DENSE_RANK() OVER(ORDER BY...
January 19, 2017 at 2:32 pm
January 19, 2017 at 1:57 pm
When working with dates, you DO NOT want to use Year and Month (unless you have a calendar table). You want to use the first day of the month. Using Year/Month...
January 19, 2017 at 1:09 pm
When responding to a long post, I sometimes like to interleave my answers in the places that I'm responding to. I used to be able to just add a closing...
January 19, 2017 at 12:55 pm
jcelko212 32090 - Thursday, January 19, 2017 12:05 PMYour "TB_" is a design flaw called a Tibble
[/quote]
No, this is not...
January 19, 2017 at 12:38 pm
Also, it's pointless to have both a DISTINCT keyword and a GROUP BY in the same section of a query. The GROUP BY has an implicit DISTINCT in it, and...
January 19, 2017 at 9:59 am
I'm producing a server status...
January 19, 2017 at 9:51 am
January 19, 2017 at 9:11 am
A common approach is to reference a calendar table, especially if you need to exclude holidays as well as weekends. You just count the number of days that qualify.
January 18, 2017 at 3:28 pm
Viewing 15 posts - 1,981 through 1,995 (of 4,087 total)