Viewing 15 posts - 1,351 through 1,365 (of 1,435 total)
ChrisM@Work (10/20/2016)
Can your week numbers go beyond 53?
Good catch Chris. I completely overlooked the fact that we are looking at weekly sales :doze:
Chris is on the right path. ...
October 20, 2016 at 3:11 am
CferMN (10/19/2016)
DesNorton (10/19/2016)
October 19, 2016 at 2:04 pm
A computed column is not stored, therefor there is no need to be concerned about the size. HOWEVER, SQL has to recompute the value every time that it is...
October 19, 2016 at 12:54 pm
seismicbeat (10/19/2016)
Sorry for bothering you again. I have a couple of questions about putting the dynamic pivot results to a local table or view. I think, I can use INTO...
October 19, 2016 at 12:09 pm
seismicbeat (10/18/2016)
So, I came up with...
October 18, 2016 at 5:00 am
Take a look at the accepted reponse at "http://stackoverflow.com/questions/10404348/sql-server-dynamic-pivot-query"
You will need to replace "date" with your list of static columns (product, area, etc)
October 17, 2016 at 11:14 pm
PearlJammer1 (10/17/2016)
It is because we have a situation where some tables appear to have id values less than the current identity value which will get auto generated on next...
October 17, 2016 at 7:26 am
The only way I can think of is to loop through the tables and check each one
CREATE TABLE #TableList (
ID ...
October 16, 2016 at 1:24 pm
ByronOne (10/14/2016)
Any thoughts on how I could measure the date difference between the first ever order of a given customer...
October 14, 2016 at 1:58 pm
ByronOne (10/14/2016)
Any thoughts on how I could measure the date difference between the first ever order of a given customer...
October 14, 2016 at 1:38 pm
John Mitchell-245523 (10/13/2016)
WITH NumberedDates AS (SELECT
Customer
,PurchaseDate
,ROW_NUMBER() OVER (PARTITION BY...
October 14, 2016 at 9:06 am
hegdesuchi (10/13/2016)
We cannot have hash because target table does not have it. we cannot alter the target table.
Can we do this by dynamic updates?
i.e. I want to check if...
October 14, 2016 at 4:22 am
Sergiy (10/12/2016)
ALTER VIEW vSeedData
AS
SELECT RAND(CHECKSUM(NEWID())) Seed
GO
alter FUNCTION [GenerateRandomDateTime]
(
@MinimumDate DATETIME,
@MaximumDayDifference INT,
@MaximumSecondsFromMidnight INT
) RETURNS DATETIME
BEGIN
RETURN(SELECT TOP 1 DATEADD(DAY, Seed * ISNULL(@MaximumDayDifference, 365), @MinimumDate) + DATEADD(SECOND, Seed...
October 12, 2016 at 11:38 pm
wendy elizabeth (10/11/2016)
October 12, 2016 at 12:37 am
wendy elizabeth (10/11/2016)
October 12, 2016 at 12:19 am
Viewing 15 posts - 1,351 through 1,365 (of 1,435 total)