Newest Pragmatic Works’ Team Book on Amazon
Check out our latest book on Amazon. It’s not for sales yet, but just seeing the title up there is...
2010-08-19
358 reads
Check out our latest book on Amazon. It’s not for sales yet, but just seeing the title up there is...
2010-08-19
358 reads
Some great SQL Lunch sessions are coming up. Some from Pragmatic folks and some from other great speakers and community...
2010-08-19
393 reads
Hey folks. I have yet to explore the world of Wolfram Alpha and still don’t claim to be an expert...
2010-08-19
516 reads
I get to work with a lot of different clients and client environments and like many companies they are often...
2010-08-19
348 reads
Pretty exciting stuff gang! I have an approved session and an alternate for the PASS Summit in November. The SQL...
2010-08-19
323 reads
What are we talking about?
Recently Microsoft released a new version of SQL Server 2008 R2 called Parallel Data Warehouse Edition....
2010-08-19
786 reads
Well SQL Saturday here in South Florida was QUITE an event this past weekend. We had over 400+ attendees and...
2010-08-19
477 reads
This post is the first in a new weekly series meant to give my readers some insight into my week....
2010-08-19
647 reads
Ok folks, the video from SQL Saturday 40 is finally up. Thanks to the sponsors who helped foot the bill...
2010-08-19
330 reads
With everyone geared up for SQL Cruise I’m surprised we can air this video but since we kicked it off...
2010-08-19
359 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