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 > General > Database Concepts & Design > general (n00b) aggregate view question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-09, 22:35
rbfree rbfree is offline
Registered User
 
Join Date: Feb 2009
Posts: 104
general (n00b) aggregate view question

As I understand things, I'll be able to fairly simple calculate values using factors from far flung tables as long as they're related (via P/F key relationships). So, am I right in thinking calculations such as:
subcontractors.costperacre * (stands.areainsquarefeet/43,560) will be quite feasible as will more removed cases?
Attached Thumbnails
general (n00b) aggregate view question-example-calculated-view.jpg  
Reply With Quote
  #2 (permalink)  
Old 02-16-09, 22:54
rbfree rbfree is offline
Registered User
 
Join Date: Feb 2009
Posts: 104
similar view question

Would a calculation involving a value from another branch work? For instance, given this ERD, will I be able to conduct an operation like:
(subcontractors.costperacre WHERE "filter" - subsidyagents.subsidyperacre) * stands.area/43,560
Attached Thumbnails
general (n00b) aggregate view question-example-calculated-view-2.jpg  
Reply With Quote
  #3 (permalink)  
Old 02-17-09, 02:03
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
sure, in a join query
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 02-17-09, 12:05
rbfree rbfree is offline
Registered User
 
Join Date: Feb 2009
Posts: 104
great, thanks!

Thanks Rudy,

Then, I'm off and running (or more like toddling). I'll finish my field specs and view specs and move onto the next stage.
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