Viewing 15 posts - 361 through 375 (of 2,462 total)
Assuming Jason's interpretation of the OP's requirement is correct and the requirement was to have all the numbers in a single column separated by spaces (which looks correct but who...
-- Itzik Ben-Gan 2001
November 28, 2016 at 10:04 am
manie (11/25/2016)
I just realised that I posted a comment as if the is a new article and then realised it was posted in 2009. Still a very good article!!! :cool::cool::cool::cool::cool::cool:
Its...
-- Itzik Ben-Gan 2001
November 28, 2016 at 8:06 am
I just deleted a table named dbo.deleteme from our Dev box. This upset some people. Nothing surprises me anymore.
-- Itzik Ben-Gan 2001
November 22, 2016 at 12:27 pm
rajemessage 14195 (11/22/2016)
1) select * from abc where abc.abcid =(select top 1 xyz.abcid from xyz...
-- Itzik Ben-Gan 2001
November 22, 2016 at 11:50 am
Got it. Note the mild tweak:
DECLARE @sample TABLE (col1 varchar(100), col2 varchar(100), col3 varchar(100), col4 int);
INSERT @sample VALUES
('1234', 'ABC', 'TEXT', '80'),
('1234', 'ABC', 'TEXT2', '20'),
('1234', 'XYZ', 'TEXT',...
-- Itzik Ben-Gan 2001
November 21, 2016 at 11:37 am
Here's an example of how you could tackle this:
DECLARE @sample TABLE (col1 varchar(100), col2 varchar(100), col3 varchar(100));
INSERT @sample VALUES
('1234 ABC', 'TEXT', '80'),
('1234 ABC', 'TEXT2', '20'),
('1234 XYZ',...
-- Itzik Ben-Gan 2001
November 21, 2016 at 10:18 am
Another way:
WITH MyCTE(val) AS
(
SELECT '21-12-ABCD' UNION ALL
SELECT '23-1-hdf' UNION ALL
SELECT '19-1345-dsnf'
)
SELECT val,
SUBSTRING(val, 1,...
-- Itzik Ben-Gan 2001
November 21, 2016 at 9:27 am
Excellent article! Well done.
-- Itzik Ben-Gan 2001
November 17, 2016 at 1:35 pm
Jeff Moden (11/9/2016)
Alan.B (11/9/2016)
Jeff Moden (11/8/2016)
Alan.B (11/8/2016)
You can accomplish this using NGrams2B which can be downloaded from here[/url] at the end of the article.).
I must be tired and I'm...
-- Itzik Ben-Gan 2001
November 16, 2016 at 9:15 am
Jeff Moden (11/8/2016)
Alan.B (11/8/2016)
You can accomplish this using NGrams2B which can be downloaded from here[/url] at the end of the article.).
I must be tired and I'm not seeing what...
-- Itzik Ben-Gan 2001
November 9, 2016 at 8:16 pm
pietlinden (11/8/2016)
-- Itzik Ben-Gan 2001
November 8, 2016 at 7:40 pm
Itzik's SQL Server 2012 Window Function book is the best SQL Books I own. His SQL Server 2012 book may be the second best.
Any article by Jeff Moden, Dwain Camps,...
-- Itzik Ben-Gan 2001
November 8, 2016 at 4:02 pm
spam reported.
-- Itzik Ben-Gan 2001
November 8, 2016 at 2:24 pm
Spammers not gaining ground. Spam reported.
-- Itzik Ben-Gan 2001
November 8, 2016 at 2:20 pm
You can accomplish this using NGrams2B which can be downloaded from here[/url] at the end of the article.). I don't know how you are bringing in your CSV file data...
-- Itzik Ben-Gan 2001
November 8, 2016 at 1:25 pm
Viewing 15 posts - 361 through 375 (of 2,462 total)