Viewing 15 posts - 1,861 through 1,875 (of 3,957 total)
Something like this to get you started perhaps?
WITH SampleData AS (
SELECT ID=ROW_NUMBER() OVER (ORDER BY (SELECT NULL))
,MyString=REPLACE(MyString,...
March 13, 2013 at 10:27 pm
Many ways to skin this cat:
WITH SampleData AS (
SELECT val=REPLACE(val, '.', '#')
FROM (VALUES ('10.0||14.5'), ('2||34'), ('7.1||19'), ('4||11.7') ) v(val))
SELECT C1=REPLACE(PARSENAME(REPLACE(val, '||', '.'),...
March 13, 2013 at 8:47 pm
Sean Lange (3/13/2013)
Erin-489205 (3/13/2013)
If DateField1 is >= GETDATE() OR DateField2 >= GETDATE() AND Extension =1...
March 13, 2013 at 8:35 pm
dajonx (3/7/2013)
Is there a way to figure this out?
Time ...
March 13, 2013 at 7:21 pm
I'm not sure if this has been suggested but I think it will be pretty fast:
declare @t table (dt datetime)
insert @t values ('2013-03-02 13:40:00'),
('2013-03-02 14:00:00'),('2013-03-02 14:20:00'),
('2013-03-02 14:30:00'),('2013-03-02 14:50:00'),
('2013-03-02 15:00:00'),('2013-03-02 17:00:00');
SELECT...
March 13, 2013 at 6:56 pm
Here's another way:
SELECT ItemNumber, Item
FROM PatternSplitCM('Notes_20130204_003015.txt', '[._]')
WHERE Matched = 0
PatternSplitCM is described in the 4th article in my signature.
March 13, 2013 at 6:37 pm
Of course, I could be wrong as Eugene has proven in the past.
I think his query may be workable. All you'd need to do is UNPIVOT the two columns....
March 11, 2013 at 4:21 am
dwain.c (3/11/2013)
Group unit
1 ...
March 11, 2013 at 4:18 am
March 11, 2013 at 3:56 am
I have a question about group #2. Shouldn't it actually be two groups:
Group unit
1 ...
March 11, 2013 at 3:48 am
Jeff Moden (3/8/2013)
...Since I'm mostly a data troll...
Does that mean you live under a bridge on Al Gore's information superhighway?
March 10, 2013 at 3:36 am
SQLRNNR (3/7/2013)
Jeff Moden (3/7/2013)
Paul White (3/7/2013)
Jeff Moden (3/7/2013)
I just can't understand why anyone would actually use XML. 😉The only possible reason is so you can say your indexes are SeXI.
That...
March 7, 2013 at 9:28 pm
Conceptually, product prices are usually retained in Price Lists. In your case, the price list happens to be by city but what happens when you have different customers in...
March 7, 2013 at 8:35 pm
ChrisM@Work (3/7/2013)
Nice one geezer 😎It makes for a surprisingly succinct query.
Good thing I'm not getting paid by the keystroke. 🙂
March 7, 2013 at 7:50 am
oliver.morris (3/7/2013)
For the 1st ID -...
March 7, 2013 at 7:48 am
Viewing 15 posts - 1,861 through 1,875 (of 3,957 total)