Viewing 15 posts - 31 through 45 (of 2,456 total)
If anyone is interested in a rather interesting problem has a look at this: https://www.sqlservercentral.com/forums/topic/table-function-returns-varying-number-of-records-for-an-update-statement
I gave up.
December 4, 2019 at 7:00 pm
I'm really curios to what is happening internally for the varying set of records that get updated.
This is one of the more interesting problems I've seen in a while on...
December 4, 2019 at 6:56 pm
To quote Ned Flanders, "Wow! As melon scratchers go, that's a honey doodle."
I can confirm that I see the same issue and racked my brain trying to figure out how...
December 2, 2019 at 10:09 pm
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...
November 21, 2019 at 3:29 pm
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 last...
November 21, 2019 at 2:54 pm
This is an inner join, and is an intersection of the data in the tables. This is shown in the image below.
Careful here. An Inner Join and an Intersection are...
November 19, 2019 at 1:24 pm
The order of processing is as follows:
FROM
WHERE
GROUP BY
HAVING
SELECT
ORDER BY
LIMIT
LIMIT is MySQL not SQL Server. The last three things to be processed are : SELECT then TOP / OFFSET then ORDER...
November 8, 2019 at 7:41 pm
I do not understand the benefit of using a 'cross join' versus an 'inner join' on the sql above pointing to the same table?
There is no "benefit", it's a design...
November 4, 2019 at 11:36 pm
This is good information. My question now is, why even use a UDF as a source for a report? Why not just have the report user access a view...
October 29, 2019 at 2:07 pm
First, as a general rule: when considering user defined functions (UDFs) the most important thing is if the function is inline or not. If performance is important, the only viable...
October 28, 2019 at 8:21 pm
a great start - I use rownumber over (partition by order by) a lot
one of the more overlooked windowing fuctions though is NTILE - especially when you are dealing...
October 22, 2019 at 2:43 pm
Absolutely brilliant! I love this article. Well done. Five stars.
October 17, 2019 at 2:12 pm
You would probably want to create a calendar table when you also want to exclude bank and national holidays since those can vary by country, company and...
October 3, 2019 at 6:52 pm
That function looks like a horror movie and it's not even Halloween yet. The function below, ifn_workdays, is what you need. It does not handle holidays. Here's an example and...
October 3, 2019 at 5:32 pm
Viewing 15 posts - 31 through 45 (of 2,456 total)