Database Fundamentals #2: SQL Server Management Studio
The best way to learn any software is to start using it. There are a bunch of software tools in...
2017-06-12
1,126 reads
The best way to learn any software is to start using it. There are a bunch of software tools in...
2017-06-12
1,126 reads
I wrote recently about the Release agent using the hosted queue as the default, which is sometimes a problem. The...
2017-06-12
549 reads
In our previous post we discussed how to implement OpenSSH (the plumbing) as the transport layer for PowerShell remoting. In this post, we’re going to leverage that configuration and...
2017-06-12
4 reads
In our previous post we discussed how to implement OpenSSH (the plumbing) as the transport layer for PowerShell remoting. In...
2017-06-12
757 reads
This test is an extension of the Chi Square test I blogged of earlier. This is applied when we have...
2017-06-12
572 reads
VS Code is my coding tool of choice. I love that one lightweight editor can do so much and as...
2017-06-12
581 reads
Below is the script to create the table and dataset I used. This is just test data and not copied...
2017-06-12
454 reads
What is an Index?
We often hear indexes explained using the analogy of an index in the back of a book....
2017-06-12
1,600 reads
Morning all, busy week last week as I was lucky enough to have my session on SQL Server & Containers in...
2017-06-12
288 reads
1. What are IaaS, PaaS and SaaS?
Basically these are cloud service models for cloud offerings. These are categorized on the...
2017-06-12
799 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