Calculations in Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hopechirume
    New Member
    • Jun 2007
    • 4

    Calculations in Database

    I have a procedure that is performing a calculation and returning a amount, how do I store or save that amount and use it in different procedure to perform another calculation
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    You can simply store the value in a temporatry table.

    Comment

    • Mbaka
      New Member
      • Jun 2007
      • 1

      #3
      Originally posted by debasisdas
      You can simply store the value in a temporatry table.
      how does one create a temporary table

      Comment

      • Purple
        Recognized Expert Contributor
        • May 2007
        • 404

        #4
        Hi,

        maybe I am not understanding this but I would ask why you want to save a derived value - why not just call the first calculation procedure from the second then your data is guaranteed to be an acurate reflection of what is on the database at the time of the query..

        Just my thoughts..

        Regards Purple

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Yes that will be a better option.

          Comment

          • hopechirume
            New Member
            • Jun 2007
            • 4

            #6
            Thank you all, it worked out perfectly. I tried Purples advice and it was exactly what was needed. Thanks again

            Comment

            • Purple
              Recognized Expert Contributor
              • May 2007
              • 404

              #7
              Hi hopechirume,

              I am pleased we were able to assist - look forward to seeing you around again soon.

              Regards Purple

              Comment

              Working...