|
|
|
SSChasing 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
|
|
|
|
|
SSChasing 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/
|
|
|
|
|
SSC 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..???
|
|
|
|
|
SSCrazy
      
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
|
|
|
|
|
SSChasing 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
|
|
|
|
|
SSC 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)
|
|
|
|
|
SSChasing 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
|
|
|
|
|
SSC 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.
|
|
|
|
|
SSCrazy
      
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."
|
|
|
|
|
Ten 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...
|
|
|
|