Fun with Light Bulbs
I needed an image of a “great idea”, and decided to use a light bulb. I started looking through Flickr...
2011-05-24
927 reads
I needed an image of a “great idea”, and decided to use a light bulb. I started looking through Flickr...
2011-05-24
927 reads
Prayer Cat Prays
Well not THE Bible, but rather the SQL Server Bible! I’m incredibly excited and proud to say I’ll...
2011-05-24
568 reads
It should come as no surprise that the first topic I am covering this week is communication because the first...
2011-05-24
1,448 reads
Wednesday I will be presenting for the PASS BI/DW group a session on Data Mining in Excel. This is a...
2011-05-24
1,199 reads
Another great event coming to NYC this Thursday, May 26, 2011 @ 6PM! The NYC SQL Server User Group presents a...
2011-05-24
1,251 reads
Where do you see yourself in the future? Are you working at the same company, are you working in a...
2011-05-24
1,103 reads
Thank you to everyone reading this site - Please enjoy your stay!
HelpWithSQL has hit double digits in posts! I hope everyone...
2011-05-24
619 reads
Earlier this month we had a TSQL Tuesday on the topic of CTEs. I bailed on my submission because I already posted some CTE examples and was bone dry...
2011-05-23
25 reads
Earlier this month we had a TSQL Tuesday on the topic of CTEs. I bailed on my submission because I...
2011-05-23
1,481 reads
Welcome to SQL University Troubleshooting Week. For anyone unfamiliar with SQL University, it is a project created by Jorge Segarra...
2011-05-23
891 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