Vote for The Keynote by Dr. DeWitt
You can choose from how query optimization works and why it’s so hard, or how relational engines and MapReduce can...
2010-05-19
660 reads
You can choose from how query optimization works and why it’s so hard, or how relational engines and MapReduce can...
2010-05-19
660 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-19
671 reads
This has been on my mind since last week after a conversation with a friend of mine, Bobby Dimmick (twitter)....
2010-05-19
1,200 reads
I saw this blog about a report from CITA (wireless industry group) that people tend to use their cell phones...
2010-05-19
674 reads
Last week I blogged about attending TechEd 2010 on a press pass, and since then I’ve been trying to come...
2010-05-19
562 reads
Report Builder 3.0 offers many new features to its users. One of the best features, in my opinion, is the...
2010-05-18
1,849 reads
Getting Started With PowerShell Variables
Yesterday we laid the ground work for PowerShell Week. Today we will learn about Variables in PowerShell. You will...
2010-05-18
1,001 reads
The top things YOU need to know about managing SQL Server – in one place, on one day – presented by two...
2010-05-18
734 reads
I also just discovered that Microsoft releasedSQL Server 2008 R2 RTM CU1 yesterday. It is Build 1702, and it contains...
2010-05-18
3,092 reads
The cost of making a trip differently in the US, in terms of time, effort, and driving habits, is small....
2010-05-18
923 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