Yeah. The script is Correct. It also working Correct!
"SELECT" not always expects "TABLE", It can be an expression instead!
1. '00000SY' is considering as Column/Column Value
2. '00000S_' is considering as an expression(Whild card character, "%" --> Multiple and "_" --> Single character)
So, The value '00000SY' Like '00000S_' is TRUE, so Its returning the Select expression "1"
Cheers
www.SQLServerbuddy.blogspot.com
iLink Multitech Solutions
Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator