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 123»»»

^ : T-SQL Expand / Collapse
Author
Message
Posted Thursday, November 19, 2009 10:07 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Saturday, April 06, 2013 12:20 AM
Points: 649, Visits: 263
Comments posted to this topic are about the item ^ : T-SQL
Post #822095
Posted Thursday, November 19, 2009 10:14 PM


SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Friday, January 11, 2013 12:41 PM
Points: 621, Visits: 297

This was easy one. You can find more about wildcard use with LIKE search condition at below mentioned link:

http://bhaveshgpatel.wordpress.com/2009/10/03/sql-server-select-statement-with-where-like-clause/




Bhavesh Patel

http://bhaveshgpatel.wordpress.com/
Post #822099
Posted Friday, November 20, 2009 4:27 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, January 10, 2011 2:10 AM
Points: 293, Visits: 15
There are no start and end for that regular expression na... so the answer should be three..???
Post #822242
Posted Friday, November 20, 2009 4:48 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 6:41 AM
Points: 2,440, Visits: 713
I took the approach that the answer was easy. Not a wise approach. Good subject.

Jamie
Post #822257
Posted Friday, November 20, 2009 5:23 AM


SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Today @ 5:12 AM
Points: 649, Visits: 686
I got tripped up on the fact that the string didn't end with %. So I answered the question for 'Jo[^n]%' instead of 'Jo[^n]'. Oops.

-----
a haiku...

NULL is not zero
NULL is not an empty string
NULL is the unknown
Post #822274
Posted Friday, November 20, 2009 6:10 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, May 29, 2012 12:58 PM
Points: 283, Visits: 286
I answered correctly but didn't get the point, the answer page tells me that the correct selection is '1' because 'Joe' is the only match (which is the fourth selection when I look at the list)
Post #822310
Posted Friday, November 20, 2009 6:15 AM


SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Today @ 5:12 AM
Points: 649, Visits: 686
daniel.gardiner (11/20/2009)
I answered correctly but didn't get the point, the answer page tells me that the correct selection is '1' because 'Joe' is the only match (which is the fourth selection when I look at the list)


The query is pulling a count of matches, not the id value.


-----
a haiku...

NULL is not zero
NULL is not an empty string
NULL is the unknown
Post #822312
Posted Friday, November 20, 2009 6:26 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, May 29, 2012 12:58 PM
Points: 283, Visits: 286
ronmoses (11/20/2009)
daniel.gardiner (11/20/2009)
I answered correctly but didn't get the point, the answer page tells me that the correct selection is '1' because 'Joe' is the only match (which is the fourth selection when I look at the list)


The query is pulling a count of matches, not the id value.


D'oh! Focused on the regex and not enough on the sql.
Post #822323
Posted Friday, November 20, 2009 6:29 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 12:09 PM
Points: 2,550, Visits: 18,882
ronmoses (11/20/2009)
I got tripped up on the fact that the string didn't end with %. So I answered the question for 'Jo[^n]%' instead of 'Jo[^n]'. Oops.
Thank you ron, I did the same thing, but got confused for a second and thought that I had been using this incorrectly the entire time, and that the brackets were somehow referring to any character, not just the third. Your response clarified it for me.

Good simple question, keeping us in the details.


---------------------------------------------------------
How best to post your question
How to post performance problems
Tally Table:What it is and how it replaces a loop

"stewsterl 80804 (10/16/2009)I guess when you stop and try to understand the solution provided you not only learn, but save yourself some headaches when you need to make any slight changes."
Post #822326
Posted Friday, November 20, 2009 7:24 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 3:43 AM
Points: 1,257, Visits: 4,255
ronmoses (11/20/2009)
I got tripped up on the fact that the string didn't end with %. So I answered the question for 'Jo[^n]%' instead of 'Jo[^n]'. Oops.


Same mistake here...
Post #822386
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse