SQL Quiz - Mistakes You've Made?
I'd seen Jason Massie's post on Facebook of this SQL Quiz, but when I found Brian Kelley's post, I decided...
2008-11-11
794 reads
I'd seen Jason Massie's post on Facebook of this SQL Quiz, but when I found Brian Kelley's post, I decided...
2008-11-11
794 reads
I don't typically do Internet chain mail, but Brian Kelley mentioned me in his post on his two mistakes and...
2008-11-11
745 reads
I will be attending the PASS Community Summit in Seattle, November 18-21, and will be making two presentations:
DBA 101: Best...
2008-11-10
403 reads
As most of you know, PASS (the Professional Association for SQL Server) is an independent, not-for-profit association, dedicated to supporting,...
2008-11-10
567 reads
I'm going to share what I can from the interview, but I'm going to have to be a little less...
2008-11-10
389 reads
When I first got my new laptop, I thought it was very cool. It included a fingerprint reader below the...
2008-11-10
370 reads
User groups provide so many benefits for those looking to get ahead in their career. User Groups share a common...
2008-11-10
511 reads
It's funny that many employees see moving into management as a way to stop actually doing work. In practice - if...
2008-11-09
249 reads
I have been working as a DBA for sometime now, and have been exposed to various database environments and with...
2008-11-07
1,194 reads
SQL Server Magazine Connections, which is part of the larger DevConnections conference, will be held November 10-13 in Las Vegas,...
2008-11-07
544 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...
WhatsApp CS 628218520154 Jl. Suryopranoto No.40, RT.12/RW.7, Petojo Utara, Kecamatan Gambir, Kota Jakarta Pusat,...
WhatsApp CS 628218520154 Jl. Pegangsaan Timur No.1, Cikini, Kec. Menteng, Kota Jakarta Pusat, Daerah...
WhatsApp CS 628218520154 Jl. Pintu Air Raya No.36 Q, RT.6/RW.1, Ps. Baru, Kecamatan Sawah...
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