Viewing 15 posts - 1,291 through 1,305 (of 2,645 total)
Grab a copy of NGrams8k and you can do this:
Declare @Temp Table(SomeId INT IDENTITY, [Data] VarChar(8000))
Insert @Temp ([Data])
Values('hello my name is john 07999999999 smith 07888888888 this...
November 21, 2019 at 3:04 pm
Hi,
There is a maximum of three occurrences.
I want the output to be the numbers separated by a comma.
07999999999, 07888888888
Thanks,
Paul
Once you have the numbers in separate rows you can make...
November 21, 2019 at 2:07 pm
I'm assuming that rows are added roughly in CREATE_DATE order. That means you will find the earliest rows on db1 very quickly as no rows have been deleted.
On db2 you...
November 21, 2019 at 1:59 pm
A recursive CTE will allow you to select more than one number from a line
DROP TABLE #t1
go
CREATE TABLE #t1
(
SomeText VARCHAR(500)
);
INSERT #t1
(
...
November 21, 2019 at 1:53 pm
How long does it take to do the select on just a small not null column with the same query on both databases? e.g.:
select TOP (50000) CREATE_DATE
from...
November 21, 2019 at 11:44 am
I didn't mess with any indexes on the table you provided.
Here are a few methods:
Update Windowed SUM/COUNT using ROWS BETWEEN
/*-- ****************************************************************************************
-- Update Windowed SUM/COUNT using ROWS BETWEEN
--...
November 20, 2019 at 4:07 pm
I do have a way to avoid that problem that will blow the doors off of most other methods for calculating running totals but it does take...
November 20, 2019 at 2:57 am
I do have a way to avoid that problem that will blow the doors off of most other methods for calculating running totals but it does take a bit...
November 19, 2019 at 8:04 pm
This is a classic Catch-All query.
November 19, 2019 at 7:56 pm
I'm not sure what the parameter values mean, but I think you might have meant to check if the parameter is null not the column?
SELECT *
...
November 19, 2019 at 6:02 pm
SELECT Date,
SUM([101]) OVER (ORDER BY Date) Acct#1,
SUM([201]) OVER (ORDER BY Date)...
November 19, 2019 at 4:51 pm
I'm not sure if the OVER clause is available in SQL 2008, if it isn't you can use this method:
SELECT a.Date,
...
November 19, 2019 at 4:03 pm
SELECT Date,
SUM([101]) OVER (ORDER BY Date) Acct#1,
SUM([201]) OVER (ORDER BY Date) Acct#2,
...
November 19, 2019 at 3:56 pm
Don't know how come I missed that. The BWAvg will be NULL when the data is inserted and will be updated later.
insert into tblData3 Values ('4567','ABC',NULL)
insert...
November 19, 2019 at 3:50 pm
It would be helpful if you could show what results are expected.
There is no data in tblData3 so I don't see how you can do an update?
November 19, 2019 at 1:52 pm
Viewing 15 posts - 1,291 through 1,305 (of 2,645 total)