2 Replies Last post: Jun 17, 2008 6:29 AM by Chris Callan  
Chris Callan   95 posts since
Oct 16, 2007
Currently Being Moderated

Jun 13, 2008 1:47 PM

Foreign key missing between project and releasetype?

 

I was wrestling with creating a query for a report and came to the realization that there's an unsaid relationship between the project and releasetype tables.  I was using a view of the database generated by SchemaSpy and these two tables appeared to be totally unrelated.  Is there a foreign key relationship missing there? 

 

 

Thanks!

 

 

Stephano   167 posts since
Jan 14, 2008
Currently Being Moderated
1. Jun 16, 2008 9:34 AM in response to: Chris Callan
Re: Foreign key missing between project and releasetype?

In the release type table, there is a column called "refId".  That is your project ID, but it is not a foreign key.  Releases used to be at the organization level.  We gave them the refId rather than introduce a new foreign key.

More Like This

  • Retrieving data ...