Viewing 15 posts - 24,841 through 24,855 (of 59,102 total)
ScottPletcher (1/6/2014)
Depending on your specific data, future inserts could be sequential anyway. Even if not, rows are...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 10:53 pm
Ed Wagner (1/3/2014)
It...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 10:23 pm
Christian Graus (1/6/2014)
Thanks - good to know.
Just so you don't think that I'm making this up, here's the entry from Books Online under the title of "Creating and Modifying PRIMARY...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 10:17 pm
Christian Graus (1/6/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 10:09 pm
Just to add to that, "It Depends".
If this table is a lookup table that is mostly static, leaving out an IDENTITY column and using the the two columns...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 10:04 pm
Actually, it's not a terrible idea to add an IDENTITY column to this table especially if it suffers a lot of inserts. If you make the clustered index (the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:54 pm
Other than that, this is a LEAD/LAG problem and that does require SQL Server 2012... which I don't have installed anywhere, yet.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:46 pm
PSB (1/3/2014)
CREATE TABLE #TempTable
(
[GROUP] VARCHAR(100),
[Status] Varchar(10),
CreateDate Datetime,
ClosedDate DateTime,
RequestID INT
)
INSERT INTO #TempTable
(...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:45 pm
Christian Graus (1/6/2014)
To...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:24 pm
mxy (1/6/2014)
thanks Jeff you are so helpful as always !!!!!!
Thanks but Christian likely had it, as well. It just didn't look right and so he took another path. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:23 pm
Christian Graus (1/6/2014)
To...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:21 pm
Christian Graus (1/6/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:14 pm
We can use ROW_NUMBER() to assign sequences for each unique combination in descending order by date_ and then select the rows that have a"1" in them. Like this... (and...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 9:07 pm
Considering the "DBAs" that I've interviewed in the last six months, I'd say they shouldn't take the time learning more about development... they should first learn how to be a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 8:47 pm
Vincent_Poirier (1/6/2014)
Jeff Moden (1/6/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 1:58 pm
Viewing 15 posts - 24,841 through 24,855 (of 59,102 total)