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 / dhiraj

select Name
from ship
where name in ('Saint Louis','Jet Lake')

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax for encrypting a column in SQL Server?

551


What is the difference between having clause and where clause in sql server?

566


what are the Prerequisites for Replication?

10557


how will add additional conditions in sql?

572


What functions can a view be used to performed?

613






How to populate a table in sql server?

494


What is application role in sql server database security? : sql server security

549


What is the most common type of join?

524


What are different backups available in sql server?

599


What is the osql utility?

534


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

574


How to create dbo table in sql server?

507


Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

560


What are the types of sql server?

514


How to find out what is the default collation in a database?

617