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 |
Can truncate be rolled back?
Explain basic SQL queries with SELECT from where Order By, Group By-Having?
What happens if you add a new index to large table?
What is data source in connection string?
How to configure odbc dsn with different port numbers?
What are the advantages of using third-party tools?
Explain unique key in sql server?
Define the term DML, DDL and DTL?
how can we know that how many users are connected in perticuler server??????
How to recover from sql injection? : sql server security
You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?
Which sql server table is used to hold the stored procedure script?