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 224589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:19:51+00:00 2026-05-11T19:19:51+00:00

Say you have a ServiceCall database table that records down all the service calls

  • 0

Say you have a ServiceCall database table that records down all the service calls made to you. Each of this record contains a many to one relationship to Customer record, where it stores which customer made the Service Call.

Ok, suppose the Customer has stop doing business with you and you do not need the Customer’s record in your database. No longer need the Customer’s name to appear in the dropdown list when you create a new ServiceCall record.

What do you do?
Do you allow the user to delete the Customer’s record from the database?

Do you set a special column IsDeleted to true for that Customer’s record, then make sure all dropdown list will not load all records that has IsDeleted set to true? Although this keeps the old records from breaking at innerjoins, it also prevents user from adding a new record with the same name as the old Customer, won’t it?

Do you disallow deletion at all? Just allow to ‘disable’ it?

Any other strategies you used? I am guessing everyone have their way, I just need to see your opinions.

Of course the above is quite simplified, usually a ServiceCall record will link to many other entity tables. All of which will face the same problem when they are required to be deleted.

  • 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-05-11T19:19:52+00:00Added an answer on May 11, 2026 at 7:19 pm

    I prefer to set an IsDeleted flag, one of the benefits is you can still report on historical information (all teh data is still there).

    As to the issue of not being able to insert another customer with the same name, this isn’t a problem if you use an ID column (eg CustomerId) which is generally auto populated.

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

Sidebar

Related Questions

Say you have 2 database servers, one database is the 'master' database where all
Say I have a table products and I would like to check if this
Say I have an ASMX web service, MyService. The service has a method, MyMethod.
Say I have a Student table, it's got an int ID. I have a
Let's say you have a business logic method that can perform some operation across
I have an ASP.NET web service which does some heavy lifting, like say,some file
I have a class WebServiceCaller that uses NSURLConnection to make asynchronous calls to a
Say I have a class Code defined like this, with a user specified type
Say I have a method like this: public void SaveData() { try { foreach
Say have a linear model LM that I want a qq plot of the

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.