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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:55:44+00:00 2026-05-30T05:55:44+00:00

i’m Creating an application that will be working off a User table, the user

  • 0

i’m Creating an application that will be working off a User table, the user table has many other columns like Email,Name,Address,etc. There is a verification stage for the User that needs to be verified when they enter an email address. The page would display all the users that are not verified and that entered an email address.

I’ve prepared three examples/approaches and wondering what would be the most productive way if there would be a need for also Logging all the verifications in case one is verified by mistake, therefore, delete a verification. Also, lets say there is more than one type of verification, so there is one for email address and another one for street address.

A few things to consider is that if the user adds an email address at a later date, then it should automatically go into the verification queue because it would recognize it either directly, or it would have to create a pre-set value (like example 2).

I prefer making the application more light-weight (like example 1), but i don’t want to compromise on performance, and need some help or some re-affirmation with how to approach this..

FIRST EXAMPLE

Verification Queue Page would display the data:

SELECT * WHERE EMAIL <> '' AND User.IsVerified = 0
The fields would look more like this:

//for handling verified
User.IsVerified bit = 0,
User.VerifiedDate datetime,
User.VerifiedNotes varchar(250),
User.VerifiedBy varchar(20)

SECOND EXAMPLE

First we define if it needs verification:

UPDATE User SET User.NeedsVerification = 1 WHERE User.Email <> ''

Second, the page would display the data:

SELECT * WHERE User.NeedsVerification = 1 AND User.IsVerified = 0

The fields would look more like this:

//for handling verified
User.NeedsVerification bit,
User.IsVerified bit,
User.VerifiedDate datetime,
User.VerifiedNotes varchar(250),
User.VerifiedBy varchar(20)

THIRD EXAMPLE

Verification Queue Page would display the data:

SELECT * FROM User INNER JOIN Verification ON User.ID Verification.UserID WHERE User.EMAIL <> '' AND Verification.ID Is Not Null

The fields would be in another table, only considering this option because there may be more types of Verifications and instead of a NeedsVerification field, it can be more like If it even exists sort of deal:

Verification.UserID int,
Verification.Type int,
Verification.IsVerified,
Verification.VerifiedDate datetime,
Verification.VerifiedNotes varchar(250),
Verification.VerifiedBy varchar(20)
  • 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-30T05:55:46+00:00Added an answer on May 30, 2026 at 5:55 am

    I’d lean toward a collection of tables to record the various verifications, one for each type. Thus you would have EmailVerifications, BillToAddressVerifications, ShipToAddressVerifications, CreditVerifications, …, e.g.:

    EmailVerificationId int identity,
    UserId int,
    EmailAddress varchar(256),
    ChangeDate datetime, -- When the user updated the EmailAddress.
    VerifiedDate datetime null, -- IsVerified if this is not NULL.
    VerifiedNotes varchar(250),
    VerifiedBy varchar(20) -- Or AdminId?
    

    This allows you to accomodate:

    1. Multiple changes per user, e.g. several email addresses over the years.
    2. Adding additional types of verifications, e.g. telephone number, as time goes on.
    3. You can also use the history for things like sending notifications to both old and new addresses when a change is made.
    4. Adding verifications that are applied according to business rules, e.g. someone signing up for a newsletter doesn’t need a verified email address. A supplier does.
    5. You could extend it to support “validated” and “verified” data. A validated email address doesn’t cause bounces and is good enough for a newsletter, a verified email address has been confirmed to be correct.

    For performance you could denormalize the data and keep an IsVerified summary bit in the user record and use triggers to maintain the value based on updates to the other tables.

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

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I need a function that will clean a strings' special characters. I do NOT
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text

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.