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 is rolap and its advantage? : sql server analysis services, ssas

0 Answers  


How to define output parameters in stored procedures?

0 Answers  


How will u test the stroded procedures and functions? difference between SP and Triggers

2 Answers   TCS,


define and explain the differences between clustered and non-clustered indexes.

0 Answers   Microsoft,


How to see the event list of an existing trigger using sys.trigger_events?

0 Answers  






What is the difference between indexing and hashing?

0 Answers  


What is a print index?

0 Answers  


What is a unique index?

0 Answers  


Which joins are sql server default?

0 Answers  


How to download and install microsoft sql server management studio express?

0 Answers  


here id col have primary key and identity id name 1 a 2 b 3 c 4 d delete 2nd row then o/p will be id name 1 a 3 c 4 d next inssert 2nd row and i want o/p will be id name 1 a 2 e 3 c 4 d

7 Answers   IBM, TCS,


How to convert a table data in XML format in sql server?

0 Answers  


Categories