How do I normalize this from where it is in 1 normal form to 2 normal form,
Question:
How do I normalize this from where it is in 1 normal form to 2 normal form, then from 2 normal form to 3 normal form? I am looking for explanation and code examples to better understand the reason for the conversion and to see the code needed so I can see a model of how to do it.
HERE IS THE STARTER CODE:
drop table if exists xyz_consulting
go
create table xyz_consulting
(
project_id int not null,
project_name varchar(50) not null,
employee_id int not null,
employee_name varchar(50) not null,
rate_category char(1) not null,
rate_amount money not null,
billable_hours int not null,
total_billed money not null,
constraint pk_xyz_consulting primary key(project_id, employee_id)
)
insert into xyz_consulting values
(1023, 'Madagascar travel site', 11, 'Carol Ling', 'A', 60.00, 5, 300.00 ),
(1023, 'Madagascar travel site', 12, 'Chip Atooth', 'B', 50.00, 10, 500.00 ),
(1023, 'Madagascar travel site', 16, 'Charlie Horse', 'C', 40.00, 2, 80.00),
(1056, 'Online estate agency', 11, 'Carol Ling', 'D', 90.00, 5, 450.00 ),
(1056, 'Online estate agency', 17, 'Avi Maria', 'B', 50.00, 2, 100.00 ),
(1099, 'Open travel network', 11, 'Carol Ling', 'A', 60.00, 6, 360.00 ),
(1099, 'Open travel network', 12, 'Chip Atooth', 'C', 40.00, 8, 320.00 ),
(1099, 'Open travel network', 14, 'Arnie Hurtz', 'D', 90.00, 3, 270.00 )
GO
select * from xyz_consulting order by employee_id
I think I understand that this is in 1 normal form because there are no columns with multiple values.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill