If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Structure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-06, 00:39
jcremoni jcremoni is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
MySQL Structure

I want to design a database that includes 2 fields that collect a dollar amount. Is it possible to have these two fields total themselves? I don't want both fields to total together, I want field 1 to total and field 2 to total seperate of each other.
Reply With Quote
  #2 (permalink)  
Old 01-03-06, 17:43
Zinguy Zinguy is offline
Registered User
 
Join Date: Dec 2005
Posts: 3
Do you want to keep running totals for each column? If so, just update that column to current_amount = current_amount + new_amount.

Rich
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On