| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Thoughts on List items - foreign key vs. storing codes
I apologize if this topic was already covered, but I was unable to
find the right keywords.
Anyway, I'm working with a database that has a generic table for list items which links an id value to a display item. For example reporting periods are: A for annual which has an id value of 143, D for daily which has a value of 149, etc. Whenever I retrieve data I need to join to this table which complicates my query but ensures no invalid choices will be used.
To simplify my work I'm thinking of 2 approaches:
Another part of this equation is that I'm using SQL 2000. Is there an advantage of indexing an integer over a character field?
Any opinions / thoughts?
Thanks,
Rob
Received on Wed May 07 2003 - 10:44:56 CDT
![]() |
![]() |