How will I get all the rows from my table where name starts with 's' and ending with 'I'?

0 votes
Hi,

I am facing a problem when I want to fetch all the data from my table where name starts with 's' and end with 'I'.

Can you please help me out with the right query?
May 28, 2019 in Database by Santanu
111 views

1 answer to this question.

0 votes

Hi Santanu,

I understand your problem,

You can try this query to fetch your data,

select * from tablename where name like 'S%I';

The query will work like,

 First, it will take all the names which will have 'S' as the First letter and then It will check for the last letter  'I' and then it will show the result.

I hope this answer will help you,

Thank you,

answered May 28, 2019 by sampriti
• 1,100 points

Related Questions In Database

0 votes
1 answer
0 votes
1 answer

How do I kill all the processes in Mysql “show processlist”?

Hello kartik, Mass killing operation saves time. Do it ...READ MORE

answered May 4 in Database by Niroj
• 32,440 points
43 views
0 votes
1 answer

What are the ways to get the count of records in a table

To count the number of records in ...READ MORE

answered Sep 26, 2018 in Database by Sahiti
• 6,290 points
212 views
0 votes
1 answer

Write a SQL query to find the names of employees that begin with ‘S’

To display the name of the employees ...READ MORE

answered Sep 26, 2018 in Database by Sahiti
• 6,290 points
146 views
0 votes
1 answer

Is it possible to access Couchbase by terminal?

What you want to accomplish isn't possible ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,850 points
77 views
0 votes
1 answer

How to connect Java program to the MySQL database?

You can connect your Java code with ...READ MORE

answered May 11, 2018 in Java by Parth
• 4,630 points
378 views
0 votes
1 answer
+1 vote
3 answers

How do I check and export sonarqube analysis reports in embedded db?

Browse to sonarqube web instance to access ...READ MORE

answered Jul 2, 2018 in DevOps Tools by DareDev
• 6,850 points
11,052 views
0 votes
1 answer

How can I check my all existing table in MySQL database?

Hi Pratik, I understand your problem regarding this ...READ MORE

answered Jul 1, 2019 in Database by sampriti
• 1,100 points
124 views
0 votes
1 answer

How can I change my existing database name?

Hey Partha, I understand your problem, I think this ...READ MORE

answered Jul 4, 2019 in Database by sampriti
• 1,100 points
67 views