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 |
Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?
Can you explain what is indexed view? How to create it?
How to delete duplicate records based on single column from a table?
0 Answers Petranics Solutions,
Write a query for primary key constraint with identity key word?
What is difference between delete & truncate commands?
What is the difference between ddl and dml?
What are the different types of collation sensitivity in sql server?
What is difference between table aliases and column aliases? Do they affect performance?
Define inner join? Explain with an example?
How to select an exiting database using mssql_select_db()?
What is the purpose of grouping data in a report?
How to check table values in sql server?