Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: Advanced Databases for Beginners

date posted 6th September 2006 16:31

Dave,

Why is this so?

Bad example:

CREATE table book (
book_id INTEGER,
book_title VARCHAR(100),
book_author_id INTEGER
}

Good example

CREATE table book (
id INTEGER,
title VARCHAR(100),
author INTEGER
)

I agree with the title and author tables, (book_title/ book_author, bad bad
bad) but normally I use a specific id field - ie: 'book_id' or maybe 'bid'
so if a select statement requires id's from multiple tables that are easier
to distinguish between.

What's on the downside of naming an id field in this way?

Cheers
Mark





-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Dave Cross
Sent: 06 September 2006 16:31
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: Advanced Databases for Beginners



Last week, I was at a conference where I gave a three hour tutorial
called "Advanced Databases for Beginners" which talks about some of
more advanced database features that some beginner database designers
don't seem to use as much as they could. I thought that some people on
this list might find it useful and/or interesting so the slides are
online at

http://mag-sol.com/talks/yapc/2006/advdb/

I should point out that the slides are released under the Creative
Commons Attribution-NonCommercial-ShareAlike 2.0 Licence[1] so that
you're free to do what you want with the slides as long as you a)
credit me, b) use the same licence and c) don't use them commercially.
If you're interested in using them commercially, then please get in
touch. I'm sure we can work something out.

Enjoy,

Dave...

[1] See http://creativecommons.org/licenses/by-nc-sa/2.0/uk/ for details

--
Magnum Solutions Ltd
Open Source Consultancy, Development and Training
http://mag-sol.com/


--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.

To advertise here: http://www.freelancers.net/advertising.html



Messages by Day
September 30th 2006
September 29th 2006
September 28th 2006
September 27th 2006
September 26th 2006
September 25th 2006
September 24th 2006
September 23rd 2006
September 22nd 2006
September 21st 2006
September 20th 2006
September 19th 2006
September 18th 2006
September 17th 2006
September 16th 2006
September 15th 2006
September 14th 2006
September 13th 2006
September 12th 2006
September 11th 2006
September 10th 2006
September 9th 2006
September 8th 2006
September 7th 2006
September 6th 2006
September 5th 2006
September 4th 2006
September 3rd 2006
September 2nd 2006
September 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000