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.

Answer Posted / sandeep modapathi

select name from ship where where PATINDEX ('% %',name )>0

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is datawarehouse?

644


How can we use ConnectorJ JDBC Driver with MS SQL?

564


How to list all login names on the ms sql server?

533


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

538


What is nolock?

549






Mention the differences between having and where clause.

549


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

617


What is the difference between varchar and varchar types?

557


You want to implement the one-to-one relationship while designing tables. How would you do it?

523


What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

543


What is check constraint in sql server?

515


What is the difference between count and distinct count?

461


What is a full text index?

490


Define Joins?

605


What happens if null values are involved in arithmetic operations?

578