corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Normalisation


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Normalisation
daymoon
Premium Member

Registered: 1st Aug 08
Location: Selby, North Yorkshire
User status: Offline
   13th Feb 12 at 15:04   View Garage View User's Profile U2U Member Reply With Quote

Anyone want to help me?

UNF


Employee number
Employee name
Employee phone number
Chamber description
Shift preference
Shift date
Shift hours
Holidays start
Holidays finish
Gary
Premium Member

Avatar

Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
13th Feb 12 at 15:07   View Garage View User's Profile U2U Member Reply With Quote

Sat what?
ashleh
Member

Registered: 23rd Dec 08
Location: Nottingham
User status: Offline
13th Feb 12 at 15:08   View User's Profile U2U Member Reply With Quote

Did this at uni, it's shit .
daymoon
Premium Member

Registered: 1st Aug 08
Location: Selby, North Yorkshire
User status: Offline
13th Feb 12 at 15:09   View Garage View User's Profile U2U Member Reply With Quote

quote:
Originally posted by ashleh
Did this at uni, it's shit .


Every time I attempt it get different results

When look at solution it all makes sense but can never get to the answer myself
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
13th Feb 12 at 16:16   View User's Profile U2U Member Reply With Quote

You need to provide more information.
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
13th Feb 12 at 16:17   View User's Profile U2U Member Reply With Quote

In fact, you need to actually ask a question

noshua
Member

Registered: 19th Nov 08
User status: Offline
13th Feb 12 at 16:31   View User's Profile U2U Member Reply With Quote

http://searchbusinessintelligence.techtarget.in/tutorial/Database-normalization-in-MySQL-Four-quick-and-easy-steps

Also did this at uni, proper shit!
Aaron
Member

Registered: 9th Aug 04
Location: Cottingham, East Riding
User status: Offline
13th Feb 12 at 18:26   View User's Profile U2U Member Reply With Quote

I did this as part of my degree...and I found it to be a total bastard.
daymoon
Premium Member

Registered: 1st Aug 08
Location: Selby, North Yorkshire
User status: Offline
14th Feb 12 at 16:57   View Garage View User's Profile U2U Member Reply With Quote

Well I done this again, tutor looked at it and I wasnt miles off. Looks like I learned something at uni
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
14th Feb 12 at 17:00   View Garage View User's Profile U2U Member Reply With Quote

I hate storing dates.
Dom
Member

Registered: 13th Sep 03
User status: Offline
14th Feb 12 at 17:17   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Ian
I hate storing dates.


Dates in general? Or formatted dates?
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
14th Feb 12 at 17:31   View Garage View User's Profile U2U Member Reply With Quote

Mostly making the decision what to store, like if you use a unix epoch but don't need per second resolution, and it breaks when the clocks go forward/back.

Then issues like if you were storing a period like a holiday whether you would store 7 days as 7 rows or just a start and finish date. The latter of which is more elegant, less susceptible to anomalies like missing a day out of the middle but also less elegant on the query because you need a range rather than just looking on the day.

Like if you had a hotel room and wanted to see if it was booked, you query on that day and it might appear free but there's a start and finish date which encompass it.

Once those decisions are made I'm OK but I hate having multiple approaches and not knowing which way to go, and dates do that to me the most.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Loving my uni Andrew General Chat 4 210
18th Jan 05 at 00:38
by Peugeot Nut
 
Anyone here good with MySQL? Ash_EP3 Geek Day 6 912
22nd Jun 08 at 02:20
by Ian
 
Database people (help needed) Aaron Geek Day 6 507
10th Nov 09 at 15:00
by Reedy
 
SQL Query Help (LIKE searching) Dom Geek Day 18 529
8th Jan 10 at 09:25
by Paul_J
 
Data Normalisation ashleh Geek Day 4 214
5th Mar 10 at 20:41
by Jez_B
 

Corsa Sport » Message Board » Off Day » Geek Day » Normalisation 28 database queries in 0.0109410 seconds