Avatar of karthik80c
karthik80c
Flag for United States of America asked on

How to change Search query that contain particular word n Sql

Hi Experts ,

We need to search in database with the record contains particular Data in it e.g. name column could search for all words that contains  'jon' in it. Is this correct query

my code
SELECT Name FROM Person WHERE Name LIKE '%Jon%'

Open in new window

ASP.NETMicrosoft SQL ServerDatabases

Avatar of undefined
Last Comment
karthik80c

8/22/2022 - Mon
Lokesh B R

Hi,

yes it is correct.

It will look for the word where it contains "Jon" in the Name column.
karthik80c

ASKER
Hi Lokesh ,

What if i need to go for exact match
SOLUTION
Lokesh B R

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Deepak Chauhan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
MohitPandit

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
karthik80c

ASKER
Thank You Experts For Your Great Effort
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck