I’m Attending the South Florida Code Camp on February 27, 2010
I’m driving down tomorrow for the sixth annual South Florida Code Camp. This will be my third time attending and...
2010-02-25
527 reads
I’m driving down tomorrow for the sixth annual South Florida Code Camp. This will be my third time attending and...
2010-02-25
527 reads
Hey gang !
I’m presenting today at 1pm on Zero to Cube in 60 minutes. We’re going to build an analysis...
2010-02-25
420 reads
“It’s easier to be smart than good.”
I heard that quote in a recent sermon at church and it is one...
2010-02-25
764 reads
SQL Server Training is out there in all sorts of formats, price points and quality. It's time to look at...
2010-02-25
933 reads
About a week ago I wrote Part 1, and got some interesting feedback (which I appreciate). Today I want to...
2010-02-25
868 reads
I used to subscribe to Bruce’s monthly Cryp-o-gram and enjoyed it. He’s moved to a blog format, and I think...
2010-02-25
745 reads
I just had the opportunity to spend some time with my four year old son at the doctor’s office. It...
2010-02-25
621 reads
I recently had a SQL Server DBA write to me that they were going to be laid off, and they...
2010-02-24
687 reads
I have a fairly busy schedule of upcoming speaking events (especially for someone with a full-time day job).
I will be...
2010-02-24
929 reads
Mr. Exceptional DBA is coming to our SQL Lunch. Patrick and I are excited to welcome Brad MCGehee to SQLLunch.com....
2010-02-24
429 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