1. SQL like operator
ID Name Age Address Salary
1 Ramesh 32 Ahmedabad 2000.00
2 Khilan 25 Delhi 1500.00
3 Kaushik 23 Kota 2000.00
4 Chaitali 25 Mumbai 6500.00
5 Hardik 27 Bhopal 8500.00
6 Komal 22 MP 4500.00
7 Muffy 24 Indore 10000.00
1. name start from ‘r’ Like ‘r%’
2. name start with ‘ka’ Like ‘ka’
3. name ends with ‘h’ Like ‘%h’
4. name ends with ‘Li’ Like ‘%Li’
5. name’s second character is ‘u’ Like ‘_u%’
6. name’s third character is ‘i’ Like ‘__i%’
7. name’s second Last
character is ‘i’
Like ‘%i_’
8. name’s third Last character
is ‘m’
Like ‘%m__’
9. name start from ‘c’ and ends
with ‘i’
Like ‘c%i’
10. name has five
characters
Like ‘_____’
11. name has ‘t’ character in
any position
Like ‘%t%’
12. name has ‘hi’ as second
and third character
Like ‘_hi%’
13. name has six characters
and first is ‘h’
Like ‘h__’
14. name has six characters
and first is ‘h’ and Last is ‘k’
Like ‘h____k’
15. name has at least five Like ‘_____%’
2. characters
16. name has six characters
and second character is ‘a’
and second Last is ‘i’
Like ‘_a__i_’