If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Int and join versus char (2)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-03, 12:58
sunrise sunrise is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Int and join versus char (2)

We're setting up a new e-commerce site using SQL 7. We want to normalize using 3rd normal form, but wonder if we're getting a little "too fancy." Example: For the state field, in our shoppers table, we have StateID int; but, we would then have to use a (inner/left) join when reporting on this table and outputting the state to the user. In the past we used char(2) and the abbreviation for the state.

So my question is this: From a performance/maintenance standpoint, should we use char(2) and no join or int and join on the state table? (Same question applie to country and credit card type.)

Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On