SQL Quiz: Two Mistakes
I was tagged by Gail Shaw to post two big mistakes made during my professional career. The only challenge here...
2008-12-18
845 reads
I was tagged by Gail Shaw to post two big mistakes made during my professional career. The only challenge here...
2008-12-18
845 reads
I missed the November Car update, but I was too busy with the PASS Summit to get one done.
However last...
2008-12-18
666 reads
I'm still finishing up two books that I'll mention today. Most non-technical books I read straight through, anything technical/learning based...
2008-12-17
549 reads
Magazines today instead of books, but hopefully you'll count that as close enough to my theme of the week. I...
2008-12-17
545 reads
In a previous blog post, I suggested that less than professional content, that you or others post on the Internet...
2008-12-17
1,173 reads
I have been active on the Internet for 15 years, and during that time I have left a long trail...
2008-12-17
1,080 reads
Back in October I had the opportunity to work with Andy Warren and do a series of SQL Server security...
2008-12-17
1,406 reads
Can you believe it? Microsoft has just released an iPhone application for the first time and I doubt it will...
2008-12-17
2,057 reads
You might think it's the e-ink screen. It's not.
You might think it's the ability to carry around hundreds of books...
2008-12-17
872 reads
I saw this blog from Jeffrey Yao on investing in your career, and thought it would be a great editorial....
2008-12-16
826 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