If suppose in a table ship(name,year),find ship name having
first and last name(i.e having space in between)
ex: SAINT LOUIS,JET LAKE.
Answers were Sorted based on User's Feedback
Answer / challa yerriswamy
select name,year
from ship
where name like '% %';
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / sandeep modapathi
select name from ship where where PATINDEX ('% %',name )>0
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / suresh
select name,year
from ship
where name like '%,%';
Is This Answer Correct ? | 1 Yes | 8 No |
Answer / dhiraj
select Name
from ship
where name in ('Saint Louis','Jet Lake')
Is This Answer Correct ? | 1 Yes | 10 No |
What keyword you will use to get schema appended to the result set of a ‘for xml’ query?
What is the purpose of the tempdb database?
How you trouble shoot when any job fails
What are the advantages of using cte?
How to get a list of columns in a view using "sys.columns" in ms sql server?
How to Create Login and User through query in Sql server 2005.and also how to delete Login and User through query?
What is the difference between a fill factor of 100 and 0?
About types of indexes in SQL server ?
What is lock escalation? : sql server database administration
What is pessimistic concurrency?
How to test subquery results with the exists operator?
What is normalization of database? What are its benefits?