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 is the difference between index seek vs. Index scan?
Can coalesce return null?
What is the difference between distinct clause and group by clause?
Define a cross join?
What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tell some steps to do the performance tuning
What type of Index will get created after executing the above statement?
What is log cache in sql server?
What is the difference between count and distinct count?
What are types of storage modes? : sql server analysis services, ssas
what is an index? : Sql server database administration
What's the information that can be stored inside a bit column?
Where do you think the users names and passwords will be stored in sql server?