Click here to Skip to main content
15,899,825 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Statement Problem Pin
Colin Angus Mackay7-Jan-05 10:42
Colin Angus Mackay7-Jan-05 10:42 
GeneralRe: SQL Statement Problem Pin
David Salter7-Jan-05 5:36
David Salter7-Jan-05 5:36 
GeneralRe: SQL Statement Problem Pin
Anonymous7-Jan-05 6:46
Anonymous7-Jan-05 6:46 
GeneralRe: SQL Statement Problem Pin
tecnovate_vivek8-Jan-05 1:37
tecnovate_vivek8-Jan-05 1:37 
Generalinsert record into mysql table Pin
kd83417-Jan-05 3:25
kd83417-Jan-05 3:25 
GeneralRe: insert record into mysql table Pin
David Salter7-Jan-05 5:42
David Salter7-Jan-05 5:42 
QuestionOnly last 50 rows??? Pin
Anonymous7-Jan-05 2:43
Anonymous7-Jan-05 2:43 
AnswerRe: Only last 50 rows??? Pin
Ritesh12347-Jan-05 3:09
Ritesh12347-Jan-05 3:09 
GeneralRe: putting strings into sqlcommand Pin
Colin Angus Mackay6-Jan-05 22:26
Colin Angus Mackay6-Jan-05 22:26 
GeneralExcel text field not taking big CString using VC++ Pin
Anshul Mehra6-Jan-05 20:20
professionalAnshul Mehra6-Jan-05 20:20 
Generalputting strings into sqlcommand Pin
sianatia6-Jan-05 18:34
sianatia6-Jan-05 18:34 
GeneralAngry DBA Pin
Anonymous6-Jan-05 14:24
Anonymous6-Jan-05 14:24 
GeneralODP.NET : How to access function with VARCHAR2 as ReturnValue Pin
arnab19745-Jan-05 16:49
arnab19745-Jan-05 16:49 
QuestionHow to use insert command in Access database? Pin
DuyNguyen5-Jan-05 7:43
DuyNguyen5-Jan-05 7:43 
AnswerRe: How to use insert command in Access database? Pin
Mike Ellison7-Jan-05 5:55
Mike Ellison7-Jan-05 5:55 
GeneralRe: How to use insert command in Access database? Pin
DuyNguyen8-Jan-05 8:08
DuyNguyen8-Jan-05 8:08 
GeneralSQL Merge Replication Pin
Purple Monk4-Jan-05 23:41
Purple Monk4-Jan-05 23:41 
GeneralAccess db @@indentity how to get new record Pin
xsoftdev24-Jan-05 14:33
xsoftdev24-Jan-05 14:33 
GeneralRe: Access db @@indentity how to get new record Pin
Mike Ellison7-Jan-05 5:48
Mike Ellison7-Jan-05 5:48 
GeneralRe: Access db @@indentity how to get new record Pin
xsoftdev28-Jan-05 18:36
xsoftdev28-Jan-05 18:36 
QuestionHow can I .... Pin
KORCARI4-Jan-05 14:03
KORCARI4-Jan-05 14:03 
AnswerRe: How can I .... Pin
Colin Angus Mackay4-Jan-05 23:01
Colin Angus Mackay4-Jan-05 23:01 
KORCARI wrote:
Can anyone show me any tricks about this ?

There are no tricks to normalisation.

IIRC, 1st normal form is to ensure that each column represents one distinct piece of data. e.g. If you currently have a Name column which contains, for example, Colin Mackay, that should be split into a Forename and Surname - "Colin" and "Mackay" (you may also want a middle name, and perhaps an additional surname (e.g. Spanish people have two surnames), title, and suffixes - it depends on what you want to do).

2nd Normal form is to ensure that each table has a primary key. This is normally a single column, but you can have compound primary keys with more than one column. A primary key must be unique. So, a person's name is not valid, but their National Insurance number is (or SSN, or a UserID, or whatever). Often you will have to create some sort of scheme to generate a unique value - most databases offer this facility.

3rd Normal form is to ensure that only data directly related to the primary key is stored in the table. So, for instance, if you were designing an application that held an electoral role that had each registered voter and their address in the database. You would split off the address into a separate table because it isn't directly related to the person (there may be more than one person living at the address). Now you have two tables, the person table will also have a foreign key (which is a copy of the primary key value for the address in the Address table).

Does this help? If you are still having problems perhaps you can post some details about your data and we can point you in the right direction using something you are familiar with. I know that when I first learned about normalisation I didn't get it the first time because the examples were all arbitrary. It was only when I had a real problem to solve that I started to understand what it was all about.


Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


GeneralNormalisation Pin
Edbert P5-Jan-05 17:35
Edbert P5-Jan-05 17:35 
GeneralRe: Normalisation Pin
Colin Angus Mackay5-Jan-05 22:35
Colin Angus Mackay5-Jan-05 22:35 
AnswerRe: How can I .... Pin
Edbert P5-Jan-05 17:34
Edbert P5-Jan-05 17:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.