You can have foreign keys between temp tables, just not between temp and permanent tables. The latter case is either fairly silly, or technically hard, depending on which direction you have in mind.
A temp table referencing a permanent table wouldn't be very silly IMHO... Sander.