troubleshooting Question

Permutation of Zeros

Avatar of allanau20
allanau20 asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
4 Comments1 Solution208 ViewsLast Modified:
Hi Experts !

How do you select a string field for those only
with a permutation of Zeros?
You want to ignore (not select) if there are other values:

For example:

1.  0000
2.  00100
3.  0000000
4.  0
5.  00012s0
7.  000
8.  00
9.  10
10. 00000e1
11. 4c00000

select  * from tbl01
where ???

so the return values should be:

1.  0000
3.  0000000
4.  0
7.  000
8.  00

Thanks in advance for your help.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros