dbTalk Databases Forums  

Sub-query on Calculated Field Problem

comp.databases.theory comp.databases.theory


Discuss Sub-query on Calculated Field Problem in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DannyDarko
 
Posts: n/a

Default Sub-query on Calculated Field Problem - 04-23-2009 , 12:04 PM






I am working with a database that tracks sector scores for economic
data. There are five sectors that are scored for geography entities. A
scoring record is entered for each geo entity for every month. I need
to find the highest Total Score (=Sect1Score + Sect2Score ... +
Sect5Score) for the last 10 years for each geo entity. The problem is
the Total Score is calculated and I can't seem to join this value back
into the table to retrieve the records that would include the sector
scores. If the Total Score was a field in the db then getting the
results would be very easy, but alas not. TIA, DD

Reply With Quote
  #2  
Old   
Bob Badour
 
Posts: n/a

Default Re: Sub-query on Calculated Field Problem - 04-23-2009 , 12:40 PM






DannyDarko wrote:

Quote:
I am working with a database that tracks sector scores for economic
data. There are five sectors that are scored for geography entities. A
scoring record is entered for each geo entity for every month. I need
to find the highest Total Score (=Sect1Score + Sect2Score ... +
Sect5Score) for the last 10 years for each geo entity. The problem is
the Total Score is calculated and I can't seem to join this value back
into the table to retrieve the records that would include the sector
scores. If the Total Score was a field in the db then getting the
results would be very easy, but alas not. TIA, DD
There is no theoretical reason I can see to prevent you from doing your
join. If you are dealing with a limitation of your dbms, I suggest you
might find better answers in a product-specific group.


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.