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

  • Home
  • SEARCH
  • 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 8158585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:39:06+00:00 2026-06-06T17:39:06+00:00

I have a customer table where I’m currently storing: Last Name First Name Middle

  • 0

I have a customer table where I’m currently storing:

  • Last Name
  • First Name
  • Middle Name
  • Business Name
  • Entity Type (Business or Individual)
  • Address, Phone, etc.

If the customer is a business, I’m currently storing the business name in a separate field. I’m already storing the entity type, so is it even necessary to store the business name in a separate field? In my search query, I’m using “WHERE last_name LIKE ‘%$var%’ OR business_name LIKE ‘%$var%'” which is probably overkill. Should I keep it the way I have it, or should I consolidate the business name into the last name field? Thanks!

  • 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-06T17:39:08+00:00Added an answer on June 6, 2026 at 5:39 pm

    i would suggest to put the business name into the column for the last name,
    because after you select, you recognize if its a company if it has no first name.

    further you only need one logic to put your name into a string.

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

Sidebar

Related Questions

I have a customer table in the db that stores the name, address etc,
Lets say i have a table with the following data Customer table: Name amount
I have a performance problem on a query. First table is a Customer table
I have a MySQL table that defines values for a specific customer type. |
I have a customer table: id name 1 customer1 2 customer2 3 customer3 and
Let's say I have 'Customer' table in SQL DB and I'm using Entity Framework.
I have Customers table: Customer(id, name status_id). I have Statuses table: Status(id, name, code).
I have a customer table with Cust_Id , Name , City and search is
I have two tables in SQL Server: Customer and Address Customer Table : CustomerID
Let's say I have a Customer table which has a PrimaryContactId field and a

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.