Data Warehousing Community Forum
February 09, 2012, 01:37:02 pm

Pages: [1]   Go Down
  Print  
Author Topic: Foreign key based on View ?  (Read 1184 times)
unknown
DW Apprentice
**

Reputation: +8/-0
Offline Offline

Posts: 44



View Profile
« on: January 19, 2008, 11:48:59 pm »

A foreign key can be created based on a view ?

If so.., Please explain how it can be done ??
Logged

Thanks
Unknown Smiley
Sipra
Founder
*****

Reputation: +59/-0
Offline Offline

Posts: 323


Am the King...


View Profile WWW
« Reply #1 on: July 21, 2010, 10:27:00 pm »

No, foreign keys have to be created against user tables.

But guru's say that it can be done with some constraints..!  Lips sealed
Logged

Druid_Elf
DW Fresher
*

Reputation: +2/-0
Offline Offline

Posts: 2


View Profile
« Reply #2 on: July 22, 2010, 12:08:17 pm »

Hi,
As stated it can not be done on the view itself, but I found an article which might allow you to solve your problem

Quote

It comes down to creating to FK on the base table of the view. Hope it helps.
« Last Edit: July 23, 2010, 12:18:57 am by Sipra » Logged
Pages: [1]   Go Up
  Print  
 
Jump to: