Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««23456

Simple LIKE with wildcard Expand / Collapse
Author
Message
Posted Thursday, May 27, 2010 12:41 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, April 23, 2013 8:00 AM
Points: 1,065, Visits: 698
First thought: How can values like 'AA' be found with LIKE '_' ?

Zero rows. Click. Zero points.

Next time I will wait for the caffeine to do its work. I learned something, hope I remember it when I need it.




Dutch Anti-RBAR League
Post #928763
Posted Thursday, May 27, 2010 1:01 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 6:14 AM
Points: 1,102, Visits: 1,197
gserdijn (5/27/2010)
First thought: How can values like 'AA' be found with LIKE '_' ?

Zero rows. Click. Zero points.

Next time I will wait for the caffeine to do its work. I learned something, hope I remember it when I need it.

I was surprised too. I watched it after one of my coworkers came with a question: "How it is possible, this query returned this data?" His pattern was little bit more complicated, something like '__[_]_[_][[]%'.
And the best point: I could write a question with "It depends" option




See, understand, learn, try, use efficient
© Dr.Plch
Post #928767
Posted Tuesday, June 01, 2010 8:37 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, May 13, 2013 11:21 AM
Points: 2,163, Visits: 2,148
I almost picked "It Depends" because, but I thought no, it couldn't be possible with a standard VARCHAR. Learned another thing today, at the cost of a point.
Post #931069
Posted Wednesday, September 22, 2010 6:57 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:29 AM
Points: 7,089, Visits: 7,144
A beautiful question, which may have made some of the backwoodsmen notice that there are collations other than the one which fits US ASCII perfectly and fits nothing else. But I'm not holding my breath while waiting for the average US (or should that be "U/S"?) DBA or DB designer to notice our weird "foreign" collation stuff.

Tom
Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
Post #991665
Posted Thursday, September 23, 2010 12:12 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 6:14 AM
Points: 1,102, Visits: 1,197
Tom.Thomson (9/22/2010)
A beautiful question, which may have made some of the backwoodsmen notice that there are collations other than the one which fits US ASCII perfectly and fits nothing else. But I'm not holding my breath while waiting for the average US (or should that be "U/S"?) DBA or DB designer to notice our weird "foreign" collation stuff.


Thank you.




See, understand, learn, try, use efficient
© Dr.Plch
Post #991750
Posted Wednesday, March 30, 2011 9:42 PM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, June 13, 2012 3:26 PM
Points: 566, Visits: 341
Great question, thanks!
I lost a point here, but it was well worth it as I hadn't even considered collation when I answered.
Post #1086602
« Prev Topic | Next Topic »

Add to briefcase «««23456

Permissions Expand / Collapse