Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9090731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:26:37+00:00 2026-06-16T22:26:37+00:00

I have this SQL statement which is working fine, but it doesn’t satisfy my

  • 0

I have this SQL statement which is working fine, but it doesn’t satisfy my needs. It is retrieving all the data from the table which should exactly be the same. I mean the First name in the table should be exactly the textbox’s text. This is the SQL statement I am using.

SELECT        
    CustomerID, FirstName, LastName, Email, Mobile
FROM
    Customers
WHERE        
    (FirstName = @FirstName)

What I need is something related to LIKE condition I guess, which it works like this: there is data in the table “Sample Text” and I write down in the textbox Samp, Sam, Sa, and any text which is the same to the data in the table the data will automatically display. btw I am using Micosoft Visual Studio to help me to build my query using query builder.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:26:39+00:00Added an answer on June 16, 2026 at 10:26 pm

    Well, at least in regards to the query, this is what you need:

    SELECT        CustomerID, FirstName, LastName, Email, Mobile
    FROM            Customers
    WHERE        FirstName LIKE '%' + @FirstName
    

    You will be sending the temporary first name from your text box to the SQL server and display the results for selection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have this statement in my SQL View (SQL Server 2008 R2) which
I currently have this sql statement that I wrote and it works but it's
we have WinForms app which stores data in SQL Server (2000, we are working
I have this mysql query using PHP and first part is working fine, but
I have looked at various example of the SQL Merge statement.. all of which
I keep getting this error but this sql statement works fine in mysql it
I have been working on an SQL Statement in which I can select a
I have this RTRIM and REGEXP function in Oracle SQL query which is working
Hi I have SQL statement in DB2 which is working. select distinct 'IN' as
I have this SQL statement: SELECT * FROM history WHERE (fk_person = 2119) AND

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.