Query help?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthikmv
    New Member
    • Jun 2007
    • 1

    Query help?

    How to write a query that should not accept same number on same day but should accept the same number on next day

    or

    constraint that can be given to a column so that it should not accept same number on same day but should accept the same number on next day
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Hi
    karthikmv
    Welcome to TSDN.

    You have reached the right place for knowledge shairing.

    Here you will find a vast resource of related topics and code.

    Feel free to post more doubts/questions in the forum.

    But before that give a try from your side and if possible try to post what/how you have approached to solve the problem.

    It will help Experts in the forum in solving/underestanding your problem in a better way.

    Please follow the posting guidelines in every new post/reply.

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      since u had put a question in the article section i am movig it to the proper forum.

      Comment

      • siva538
        New Member
        • Jun 2007
        • 44

        #4
        Originally posted by karthikmv
        How to write a query that should not accept same number on same day but should accept the same number on next day

        or

        constraint that can be given to a column so that it should not accept same number on same day but should accept the same number on next day
        you can use triggers to enforce such kind of business rules. or you can check that business logic in your stored proc code before inserting into the table.

        HTH...

        Comment

        • Motoma
          Recognized Expert Specialist
          • Jan 2007
          • 3236

          #5
          Please give us a little more information so we can better help you.

          Comment

          Working...