Viewing 15 posts - 24,841 through 24,855 (of 59,099 total)
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
ELLEN-610393 (1/6/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 1:56 pm
Yes... rename each table and build a synonym for each table using the original table name. Build an additional table for each table and populate it with the "current"...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 1:00 pm
jeandlauro (1/6/2014)
I just mean I thought it would be easier to link Microsoft data tools together.
I've been wondering the same thing for years (almost 2 decades, now). When I've...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2014 at 12:56 pm
Viewing 15 posts - 24,841 through 24,855 (of 59,099 total)