A Welcome Break
I’m not working, though I have checked some email and kept an eye on a few things while I’m in...
2011-06-06
507 reads
I’m not working, though I have checked some email and kept an eye on a few things while I’m in...
2011-06-06
507 reads
If you are looking to become more familiar with extended events, take a gander at this month’s DBA Virtual Chapter...
2011-06-06
902 reads
This is my contribution to UnSQL Friday #004: Speaker Lessons Learned.
I got my SQLRally session evaluation back last week. I’d...
2011-06-06
591 reads
Well, ok. I'll jump on the bandwagon again.
Power has been restored to Mr. LaRock's Residence, just in time for meme Monday.
(And really,...
2011-06-06
1,169 reads
Ordinarily, column order of a SQL statement does not matter.
Select a,b,c
from table
will produce the same execution plan as Select c,b,a
from...
2011-06-06
2,190 reads
Recently I was in one of those chain restaurants (the middle-priced, sit-down types) and shortly after we got there, we...
2011-06-06
1,902 reads
I can think of no other simple phrase that has the same pent up potential to ignite the most colourful...
2011-06-05
595 reads
At the Kent user group we have two upcoming events. Both are to be held at F-Keys Training suite http://f-keys.co.uk/...
2011-06-05
650 reads
A discussion about nightly populated tables and how they have reduced SQL Server load.
What’s more important – speed or data accuracy/quality...
2011-06-05
1,301 reads
I faced problem that I had many lookup tables like ProductType, ClientType etc. and wanted to refer to their values...
2011-06-05
1,786 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