Cortana Intelligence Solutions
Cortana Intelligence Solutions is a new tool just released in public preview that enables users to rapidly discover, easily provision, quickly experiment...
2016-09-29
915 reads
Cortana Intelligence Solutions is a new tool just released in public preview that enables users to rapidly discover, easily provision, quickly experiment...
2016-09-29
915 reads
I was just asked how many times I’ve been to the PASS Summit. This year will be my 12th consecutive...
2016-09-29
763 reads
On October 10, I will come back to present in one of my favorite SQL Server conferences – SQL Server Days...
2016-09-29
613 reads
As regular readers of this blog will know I teach some data courses for Learning Tree. Recently Learning Tree has...
2016-09-29
789 reads
One of the most interesting and talked about topic in database field is Index. I am writing this Series of...
2016-09-29
868 reads
I have been eager to write this blog post for a while now. I want to share my experience of...
2016-09-29
883 reads
It’s always been my dream to speak at SQL PASS Summit. It’s a tough egg to crack. In my experience...
2016-09-29
783 reads
Welcome back to another episode of This Week In Data! If you missed our previous episodes, you can watch them...
2016-09-28
1,252 reads
Just over 2 months ago Service Pack 2 for SQL server 2014 was released. Included in this Service Pack is...
2016-09-28
1,775 reads
PASS is our community.
It may sound a little cliche in this time of election propaganda in the US, but it’s...
2016-09-28
725 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