MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 22nd, 2004, 08:59 AM
sim085 sim085 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 368 sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level)sim085 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 9 h 45 m
Reputation Power: 71
Formula!

Hi,
I am trying to build a database and I need to use the Formula field when creating a new coloumn!

I have built a table (tlbOrdersProducts)that contains te following fields:

orOrderId (int) FK
orProductId (varchar(50)) FK
orQuantity (int)
orPrice (float)

and another table (tlbProducts) that has the following fields:

prProductId (varchar(50))
prProductName (varchar(50))
prPrice (float)

Now I wanted to make a formula for the coloum tlbOrdersProducts.orPrice that automatically multiplies the tlbOrdersProducts.orQuantity * tlbProducts.prPrice

does anyone know how this can be done!!??

thanks for any sugestions and help!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Formula!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT