Reblog: October 12 to October 18
Welcome to this Friday’s reblog summary post. The aim of these posts is to bring some old posts that newer...
2012-10-19
520 reads
Welcome to this Friday’s reblog summary post. The aim of these posts is to bring some old posts that newer...
2012-10-19
520 reads
Back on October 3, I put up a post about a free indexing book. And specifically about Expert Performance Indexing for...
2012-10-17
573 reads
This post is part of a blog series which focuses on translating compatibility views in SQL Server to their respective...
2012-10-17
635 reads
Another week down and there are now 3-weeks until this year’s PASS Summit. Take a moment and register now if...
2012-10-17
1,750 reads
Throughout the week, I like to tweet links to the things that I’ve been reading. Since they all come out...
2012-10-15
718 reads
Every now and then I get a question in e-mail and I usually just reply and leave it at that. ...
2012-10-12
694 reads
This post is part of a blog series which focuses on translating compatibility views in SQL Server to their respective...
2012-10-12
1,158 reads
Welcome to this Friday’s reblog summary post. The aim of these posts is to bring some old posts that newer...
2012-10-12
489 reads
This just in… the 24 Hours of PASS sessions are in and available for streaming. If you missed an hour...
2012-10-11
1,031 reads
This post is part of a blog series which focuses on translating compatibility views in SQL Server to their respective...
2012-10-11
779 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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