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

What are the new data types are introduced in sql 2000?

0 Answers  


How to select an exiting database using mssql_select_db()?

0 Answers  


Explain what are commit and rollback in sql?

0 Answers  


How do you read transaction logs

1 Answers  


Can you move the resources after pausing the node? : sql server database administration

0 Answers  






What is a self join in sql server?

0 Answers  


Accidentally i deleted my table. How can i get that table?

4 Answers  


What are the hotfixes and patches in sql server?

0 Answers  


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

0 Answers  


which is best institute to learn sql server in ameerpet or sr nagar or maithrivanam?please help

3 Answers  


What is the difference between for xml raw and for xml auto?

0 Answers  


Can binary strings be converted into numeric or float data types?

0 Answers  


Categories