in emptable i want to retrive the name of employee whose
name in 'J'char.exp: arjun,jagadesh,niranjan,anju,aaaj etc.

Answers were Sorted based on User's Feedback



in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / muthu kumar

select * from emp where empname like '%j%'

Is This Answer Correct ?    12 Yes 1 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / ashok

select * from Emp where name like '%j%'

Is This Answer Correct ?    7 Yes 1 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / kalpana

select * from emp where name like '%J%'

Is This Answer Correct ?    5 Yes 1 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / deepa

For those who names starts with letter J is

select * from emp where name like 'j%'

For those who names with letter J is

select * from emp where name like '%j%'

Is This Answer Correct ?    2 Yes 3 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / faridha

select * from emp where ename like 'J%' or '%J' and
not like ('arjun','jagadesh','niranjan','anju','aaaj');

Is This Answer Correct ?    0 Yes 1 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / ashok

select * from employee where name like=%'j'%

Thanx
Ashok

Is This Answer Correct ?    1 Yes 7 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / nithya_raghu

select * from emp where empname like J%

Is This Answer Correct ?    0 Yes 7 No

in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jaga..

Answer / ashok

select * from employee where name like=%'j'%

Thanx
Ashok

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More SQL Server Interview Questions

Tell me what do we need queues in sql service broker?

0 Answers  


How do I find the default sql server instance?

0 Answers  


can we call functions from stored procedure in SQL Server 2005 ? How?

3 Answers  


What language is sql server written in?

0 Answers  


How to execute the cursor queries with "open" statements?

0 Answers  






which one will take 1st priority in case of insert statement and select statement???

2 Answers   HCL,


Do you know what are acid properties of transaction?

0 Answers  


Please differentiate between a local and a global temporary table?

0 Answers  


What is multilevel indexing?

0 Answers  


You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?

0 Answers  


How to Display, Amount of Disk Activity Generated by Transact-SQL Statements?

1 Answers  


Define DML and DCL statements?

1 Answers   Hexaware, NIIT,


Categories