Viewing 15 posts - 1 through 15 (of 303 total)
February 26, 2019 at 4:31 pm
@ScottPletcher Yes, lots of data rows. REPLACE performs OK, but I thought I could find a better way.
@
February 21, 2017 at 1:05 pm
@ScottPletcher I am trying to avoid 26 REPLACE. That is what...
February 21, 2017 at 12:36 pm
Ed Wagner (3/17/2016)
If it doesn't have a sequence number, I wont be using it. 'Nuff said.
I use Jeff's function all the time, and I can't even think of a...
March 18, 2016 at 1:32 pm
robert.sterbal 56890 (7/7/2015)
i.e.
colA colB colC
1 5 23
colA...
July 7, 2015 at 8:08 am
Using ROW_NUMBER() for display purposes.
CREATE TABLE #Relationships
(
IDINT
,NameVARCHAR(50)
,ParentIDINT
)
INSERT INTO #Relationships(ID, Name, ParentID)
SELECT 1, 'Walt', NULL
UNION ALL SELECT 2, 'Frank', NULL
UNION ALL SELECT 3, 'Steven', 1
UNION ALL SELECT 4, 'Selma', 1
UNION...
December 10, 2013 at 3:49 pm
Interesting article. However, the code in the article is basically re-numbering manually instead of taking advantage of the built in Row_Number() functionality.
This seems to be a lot simpler:
(Note: I...
June 17, 2013 at 7:12 am
Awesome article! Easy to read and very informative.
I especially liked that you provided simple easy-to-understand examples. 🙂
August 26, 2011 at 8:35 am
...
We don't actually need the Color table or the List table at this point. What we're really interested in is figuring out the answer to your question of "find if...
May 15, 2011 at 8:50 am
CELKO (5/13/2011)
May 15, 2011 at 8:32 am
Thanks for pointing me in the right direction, Mike!
SwePeso's solution worked for me.
Posting the solution here in case this helps others:
--10 times the record, 7 times the duration.
/* ...
May 13, 2011 at 12:27 pm
Thanks for the great article Jeff!
Eagerly awaiting the varchar(max) versions so I can incorporate them into my databases. 🙂
Does anyone have a theory as to why the CTE beats the...
May 3, 2011 at 3:36 pm
DB Dan (4/15/2011)
Try the following
SELECT t2.EntityID, t1.EntityID
FROM @NewEntities t1
CROSS JOIN @NewEntities t2
WHERE t1.ID < t2.ID
ORDER BY t2.ID DESC
That worked! Thanks!
April 15, 2011 at 7:25 am
Jason Selburg (4/15/2011)
Goldie Lesser (4/15/2011)
.............
For example, I start with a list of entities: 32, 54, 67, 148.
I would need to insert the following values into the enemies table.
OriginalID | EnemyID
148...
April 15, 2011 at 6:55 am
Viewing 15 posts - 1 through 15 (of 303 total)