SQL in the City Summit
This fall, in October, Redgate Software will be hosting three, live, in-person events. These events will take place in New...
2018-09-03 (first published: 2018-08-21)
1,478 reads
This fall, in October, Redgate Software will be hosting three, live, in-person events. These events will take place in New...
2018-09-03 (first published: 2018-08-21)
1,478 reads
yeah, MemSQL for me its a combination of RDBMS and NOSQL and more of flexibility of both per our choice,...
2018-09-03
953 reads
Its been introduced by CISCO On November 19, 2015, system which helps cloud computing to reduce the response time from...
2018-09-02
283 reads
This month i will try to write whats new going on in the market, as i could see many new...
2018-09-02
237 reads
As data professionals, we should always strive to keep our systems updated and patched to ensure proper security of our...
2018-08-31
966 reads
Speaking at SQLSaturday Cambridge!
I’m proud to announce that I will be speaking at SQL Saturday Cambridge on September 8th 2018! And wow, 748 SQL Saturdays! This one won’t let you...
2018-08-31
16 reads
Speaking at SQLSaturday Cambridge!
I’m proud to announce that I will be speaking at SQL Saturday Cambridge on September 8th 2018! And wow,...
2018-08-31
322 reads
(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan - you get a weekly email packed with all the...
2018-08-31 (first published: 2018-08-14)
1,907 reads
As much as I liked the ability to quickly and easily build development and test databases with SQL Provision, I...
2018-08-31 (first published: 2018-08-13)
2,635 reads
This post is a response to this month’s T-SQL Tuesday #105 prompt by Wayne Sheffield. T-SQL Tuesday is a way...
2018-08-30 (first published: 2018-08-14)
3,840 reads
By Steve Jones
I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...
By Hemantgiri
I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...
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