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 > Database Server Software > MySQL > Adding na (not application) to column...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-04, 09:58
pearl2 pearl2 is offline
Registered User
 
Join Date: Nov 2003
Location: Sinapore
Posts: 187
Adding na (not applicable) to column...

Hi,

Does it make sense to add a value such as na (for not applicable) to a column where that value doesn't apply? In my example below, 'cat' (for category) is of the primary keys of the table 'tbl_scores' so NULL values are not permitted for the column.

I do not have a value of cat for Science and I'm wondering if it's bad design to insert value like 'na' into a mysql column.

Code:
tbl_scores
member_id  subject  cat           topic_id practice_id score date 
2                English   grammar  100       1               60     2004-02-12 
2                English   vocab       100       1               80     2004-02-12 
2                English   vocab       100       2               20     2004-02-12 
2                Science  na            102       1               60     2004-02-12
Please enlighten me and thanks in anticipation

Last edited by pearl2; 02-12-04 at 19:19.
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