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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:17:33+00:00 2026-06-14T03:17:33+00:00

I hava a Customer table, which has a column to show whether the customer

  • 0

I hava a Customer table, which has a column to show whether the customer is “AllowRefund”, and must have a column By_Which_Staff to indicate which staff credits the privilege of “AllowRerfund”.

My requirement is: Before I put the staff Id into By_Which_Staff table, the DB should first check if the column AllowRefund is Yes, then the staff Id can be put in it.

  • 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-14T03:17:35+00:00Added an answer on June 14, 2026 at 3:17 am

    This is should be a constraint. Triggers should only be used when you are acting on (or at least making use of) something outside the current row.

    Constraints should be used for unacceptable values (negative ages, k1 students more than 18), and calculated values should be used for composite values (full name for instance).

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

Sidebar

Related Questions

I hava an activity which might have to load data when it's starting up.
I hava a thread in which I have an infinite loop, doing some network
I hava a problem which is described below. Do you have any good solution
I hava a column name which is a varchar I want to filter all
I hava a website with a navigation bar which consists of several tabs. Now
I hava an application that has a register frame with all relavant textboxes and
i hava two text boxs in flex.have to add two txt boxs values in
I hava very large table with 1373228 rows. I need to copy the result
i hava a placed a select statement inside a table cell. The ui was
I hava an absolute url in my stylesheet. http://localhost/images/myimage.jpg . I also have 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.