Perfectly Placed Parentheses
Like many other programming languages T-SQL uses parentheses () for a number of tasks. To help determine precedence, function calls etc....
2016-07-05 (first published: 2016-06-27)
2,910 reads
Like many other programming languages T-SQL uses parentheses () for a number of tasks. To help determine precedence, function calls etc....
2016-07-05 (first published: 2016-06-27)
2,910 reads
Strangely enough its been a long time since I installed SQL in production. It’s almost always done by someone on...
2016-06-27
1,713 reads
Recently I’ve been talking a lot with clients and others about the involvement of cloud architecture in a data warehouse...
2016-06-29 (first published: 2016-06-27)
1,122 reads
In the wake of last week’s BREXIT vote and subsequent fallout, I decided to delay making this announcement until today....
2016-06-27
426 reads
So… it’s Saturday night and I missed getting this out on Friday morning… But, in past three weeks’ posts (1, 2, 3), I talked about how I’ve got a few copies...
2016-06-26
27 reads
So… it’s Saturday night and I missed getting this out on Friday morning…
But, in past three weeks’ posts (1, 2, 3),...
2016-06-26
731 reads
I know there have been a few other folks going into more detail on SQL Compare 12 (beta), but I...
2016-06-25
472 reads
There is a huge time for suspense for everyone in the Microsoft Data Platform space, whenever its time to submit...
2016-06-25
431 reads
Please join me and about 4000+ other technology professionals for the annual PASS Summit in Seattle, WA October 24th – 28th....
2016-06-24
546 reads
I’ve had an aging desktop for some time. I originally bought it from Glenn Berry (b | t), who I think...
2016-06-24
541 reads
By Steve Jones
I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...
By Hemantgiri
I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...
Comments posted to this topic are about the item Split Large Queries in Athena...
Comments posted to this topic are about the item Finding Trailing Spaces
I have some data in a SQL Server 2025 database. It looks like this for the dbo.Customer table:
CustomerID CustomerName PreferredName 1 Steve Steve 2 Andy Andy 3 Brian Brian 4 Allan Allan 5 Devin Devin 6 Steve Steve 7 Sally SallyI want to detect which names have a single trailing space. The CustomerName is a varchar() and the PreferredName is a CHAR(). Does this query detect the problem rows?
SELECT
CustomerID,
CustomerName,
PreferredName
FROM Customer
WHERE CustomerName <> RTRIM(CustomerName)
OR PreferredName <> RTRIM(PreferredName); See possible answers