Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #13166 > unrolled thread
| Started by | richard <noreply@example.com> |
|---|---|
| First post | 2014-03-16 16:22 -0400 |
| Last post | 2014-03-17 13:56 +0000 |
| Articles | 20 on this page of 22 — 11 participants |
Back to article view | Back to comp.lang.php
Mr. Stuckle and Mr. Miller - explain normalisation with an example richard <noreply@example.com> - 2014-03-16 16:22 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Luuk <luuk@invalid.lan> - 2014-03-16 21:54 +0100
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example richard <noreply@example.com> - 2014-03-16 19:20 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Scott Johnson <noonehome@chalupasworld.com> - 2014-03-16 17:05 -0700
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example richard <noreply@example.com> - 2014-03-16 21:43 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Denis McMahon <denismfmcmahon@gmail.com> - 2014-03-17 04:17 +0000
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Luuk <luuk@invalid.lan> - 2014-03-16 21:56 +0100
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2014-03-16 17:29 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Scott Johnson <noonehome@chalupasworld.com> - 2014-03-16 17:12 -0700
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2014-03-16 21:14 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Scott Johnson <noonehome@chalupasworld.com> - 2014-03-16 19:47 -0700
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Jerry Stuckle <jstucklex@attglobal.net> - 2014-03-16 22:54 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-03-25 15:28 +0100
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Derek Turner <frderek@cesmail.net> - 2014-03-17 09:37 +0000
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-03-16 21:34 +0000
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Jerry Stuckle <jstucklex@attglobal.net> - 2014-03-16 18:02 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example richard <noreply@example.com> - 2014-03-16 19:09 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Jerry Stuckle <jstucklex@attglobal.net> - 2014-03-16 21:13 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2014-03-17 10:55 +1100
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example richard <noreply@example.com> - 2014-03-16 20:13 -0400
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2014-03-17 14:54 +1100
Re: Mr. Stuckle and Mr. Miller - explain normalisation with an example Gabe <usenet@moojuice.net> - 2014-03-17 13:56 +0000
Page 1 of 2 [1] 2 Next page →
| From | richard <noreply@example.com> |
|---|---|
| Date | 2014-03-16 16:22 -0400 |
| Subject | Mr. Stuckle and Mr. Miller - explain normalisation with an example |
| Message-ID | <1i4cmixzjivy7.fgb9linsyq7u$.dlg@40tude.net> |
I'll bet you won't. The table I have now consists of the following columns. songid,hits, title, author, license. Please explain how this data should be normalised. And why. Thank you.
[toc] | [next] | [standalone]
| From | Luuk <luuk@invalid.lan> |
|---|---|
| Date | 2014-03-16 21:54 +0100 |
| Message-ID | <qkfhva-sj1.ln1@luuk.invalid.lan> |
| In reply to | #13166 |
On 16-3-2014 21:22, richard wrote:
> I'll bet you won't.
>
> The table I have now consists of the following columns.
> songid,hits, title, author, license.
> Please explain how this data should be normalised.
> And why.
> Thank you.
>
The column 'author' should be an 'authorId'.
why?
- Because 1 author can write more than 1 song
- An author has properties to, like i.e.:
- birtdate
- date of death (if applicable)
- city of birth
- etc
- etc
Another advantage of this is that, when you found out that you
misspelled the name of this author, you only need to change 1 record to
correct the songs of this author.
Another example of this might be 'license'
If i ask questions like:
When became this license valid?
And 'until when was this a valid license'?
Did the author have more than 1 license?
You might say "this is not applicable to my application"
But, in real life, one should be prepared that this will become
applicable for your application. (Because users only start to think
after they see the portential of your application)
[toc] | [prev] | [next] | [standalone]
| From | richard <noreply@example.com> |
|---|---|
| Date | 2014-03-16 19:20 -0400 |
| Message-ID | <113z4fy5ugo8n.1912qnf9bulu8.dlg@40tude.net> |
| In reply to | #13167 |
On Sun, 16 Mar 2014 21:54:18 +0100, Luuk wrote: > On 16-3-2014 21:22, richard wrote: >> I'll bet you won't. >> >> The table I have now consists of the following columns. >> songid,hits, title, author, license. >> Please explain how this data should be normalised. >> And why. >> Thank you. >> > > The column 'author' should be an 'authorId'. > > why? > - Because 1 author can write more than 1 song > - An author has properties to, like i.e.: > - birtdate > - date of death (if applicable) > - city of birth > - etc > - etc > Another advantage of this is that, when you found out that you > misspelled the name of this author, you only need to change 1 record to > correct the songs of this author. > > Another example of this might be 'license' > If i ask questions like: > When became this license valid? > And 'until when was this a valid license'? > Did the author have more than 1 license? > > You might say "this is not applicable to my application" > But, in real life, one should be prepared that this will become > applicable for your application. (Because users only start to think > after they see the portential of your application) Actually, that should have been artist, not author. for my purposes, personal information on either the artist, or author is not necessary. As one particular song could have been performed by any number of artists, that is why the artist column is included. To distinguish the songs. As for the author, that is actually optional. Most people don't even care to know who the author is. But it's there for helping to identify the song. And that particular table I will use to generate quarterly reports to the licensing agents, BMI and ASCAP.
[toc] | [prev] | [next] | [standalone]
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Date | 2014-03-16 17:05 -0700 |
| Message-ID | <lg5e9j$leh$1@dont-email.me> |
| In reply to | #13176 |
On 3/16/14, 4:20 PM, richard wrote: > On Sun, 16 Mar 2014 21:54:18 +0100, Luuk wrote: > >> On 16-3-2014 21:22, richard wrote: >>> I'll bet you won't. >>> >>> The table I have now consists of the following columns. >>> songid,hits, title, author, license. >>> Please explain how this data should be normalised. >>> And why. >>> Thank you. >>> >> >> The column 'author' should be an 'authorId'. >> >> why? >> - Because 1 author can write more than 1 song >> - An author has properties to, like i.e.: >> - birtdate >> - date of death (if applicable) >> - city of birth >> - etc >> - etc >> Another advantage of this is that, when you found out that you >> misspelled the name of this author, you only need to change 1 record to >> correct the songs of this author. >> >> Another example of this might be 'license' >> If i ask questions like: >> When became this license valid? >> And 'until when was this a valid license'? >> Did the author have more than 1 license? >> >> You might say "this is not applicable to my application" >> But, in real life, one should be prepared that this will become >> applicable for your application. (Because users only start to think >> after they see the portential of your application) > > > Actually, that should have been artist, not author. > for my purposes, personal information on either the artist, or author is > not necessary. > As one particular song could have been performed by any number of artists, You see Luuk gave you a great but very simplistic example why your author (artist) should be kept in the different table that only you would defend against. How do YOU account for several artists for a song in your schema? You may not 'need' the extra data for each artist, but wow would it not be good to be update-able down the road, it shows foresight and a 'Big Picture' mentality. > that is why the artist column is included. To distinguish the songs. > As for the author, that is actually optional. > Most people don't even care to know who the author is. > But it's there for helping to identify the song. A DB is, for as far as I can tell, NOT normalized with the 'people' in mind but rather your data polling and parsing. Display is second thought. Scotty
[toc] | [prev] | [next] | [standalone]
| From | richard <noreply@example.com> |
|---|---|
| Date | 2014-03-16 21:43 -0400 |
| Message-ID | <134yixjv0fwlg$.oih9l1ex1lnh$.dlg@40tude.net> |
| In reply to | #13179 |
On Sun, 16 Mar 2014 17:05:44 -0700, Scott Johnson wrote: > On 3/16/14, 4:20 PM, richard wrote: >> On Sun, 16 Mar 2014 21:54:18 +0100, Luuk wrote: >> >>> On 16-3-2014 21:22, richard wrote: >>>> I'll bet you won't. >>>> >>>> The table I have now consists of the following columns. >>>> songid,hits, title, author, license. >>>> Please explain how this data should be normalised. >>>> And why. >>>> Thank you. >>>> >>> >>> The column 'author' should be an 'authorId'. >>> >>> why? >>> - Because 1 author can write more than 1 song >>> - An author has properties to, like i.e.: >>> - birtdate >>> - date of death (if applicable) >>> - city of birth >>> - etc >>> - etc >>> Another advantage of this is that, when you found out that you >>> misspelled the name of this author, you only need to change 1 record to >>> correct the songs of this author. >>> >>> Another example of this might be 'license' >>> If i ask questions like: >>> When became this license valid? >>> And 'until when was this a valid license'? >>> Did the author have more than 1 license? >>> >>> You might say "this is not applicable to my application" >>> But, in real life, one should be prepared that this will become >>> applicable for your application. (Because users only start to think >>> after they see the portential of your application) >> >> >> Actually, that should have been artist, not author. >> for my purposes, personal information on either the artist, or author is >> not necessary. >> As one particular song could have been performed by any number of artists, > > You see Luuk gave you a great but very simplistic example why your > author (artist) should be kept in the different table that only you > would defend against. > > How do YOU account for several artists for a song in your schema? > > You may not 'need' the extra data for each artist, but wow would it not > be good to be update-able down the road, it shows foresight and a 'Big > Picture' mentality. > >> that is why the artist column is included. To distinguish the songs. >> As for the author, that is actually optional. >> Most people don't even care to know who the author is. >> But it's there for helping to identify the song. > > A DB is, for as far as I can tell, NOT normalized with the 'people' in > mind but rather your data polling and parsing. Display is second thought. > > Scotty I defend my use of this table by the fact that it is merely for recordkeeping reasons. The only data that is changed is the hits. The licensing agents want to see my playlist and how many plays each song had. So the information is for when I create the printout and sned it to them. Ad the fact that I can't remember what the hell song number 64-444 is.
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2014-03-17 04:17 +0000 |
| Message-ID | <lg5t14$743$2@dont-email.me> |
| In reply to | #13184 |
On Sun, 16 Mar 2014 21:43:35 -0400, richard wrote: > I defend my use of this table by the fact that it is merely for > recordkeeping reasons. This is part of the fundamental problem. You're duplicating data that is held elsewhere in the database in the new table. You shouldn't be creating tables based on the functions for which they're being used, you should be designing tables according to data which is being held in the whole database, normalised in such a way that the attributes of an object are all stored in one place associated with that object, and the links between objects are defined by the relationships. In this case, you describe a table that contains: songid, hits, title, author, license However I'm sure you already have at least one (and possibly ten) table (s) that link songid / title / author, because I suspect that you have those columns in each of the 1960, 1961, 1962 .... 1969 tables. So why are you duplicating that data in yet another table, and how are you going to ensure data consistency is maintained between the 10 year tables and the hits table (and by hits I assume you mean the number of plays that is recorded)? -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Luuk <luuk@invalid.lan> |
|---|---|
| Date | 2014-03-16 21:56 +0100 |
| Message-ID | <lpfhva-sj1.ln1@luuk.invalid.lan> |
| In reply to | #13166 |
On 16-3-2014 21:22, richard wrote: > I'll bet you won't. And Richard, please....... Be a smart man, and do not respond to the stupid reactions of others. But do not give them the reason to do so
[toc] | [prev] | [next] | [standalone]
| From | Lew Pitcher <lew.pitcher@digitalfreehold.ca> |
|---|---|
| Date | 2014-03-16 17:29 -0400 |
| Message-ID | <PIoVu.57818$KZ7.34880@fx32.iad> |
| In reply to | #13166 |
On Sunday 16 March 2014 16:22, in comp.lang.php, "richard" <noreply@example.com> wrote: [snipe snipped] > The table I have now consists of the following columns. > songid,hits, title, author, license. > Please explain how this data should be normalised. > And why. > Thank you. For what it's worth, I don't think that you have to normalize your tables. Your table design seems to work for you. Normalization won't "fix" anything, because nothing is "broken". What normalization (and, a proper database design, for that matter) /will/ do is make data maintenance and manipulation easier and possibly more efficient. For big datasets, normalization reduces storage costs, improves data reliability, and makes data manipulation (and the program development that goes with it) more consistant. You seem to need none of these benefits. So, normalization is not for you. Perhaps, when your application and database grow larger, you will see the need for the improvements that database normalization and proper database design bring. -- Lew Pitcher "In Skills, We Trust" PGP public key available upon request
[toc] | [prev] | [next] | [standalone]
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Date | 2014-03-16 17:12 -0700 |
| Message-ID | <lg5ema$o58$1@dont-email.me> |
| In reply to | #13171 |
On 3/16/14, 2:29 PM, Lew Pitcher wrote: > On Sunday 16 March 2014 16:22, in comp.lang.php, "richard" > <noreply@example.com> wrote: > > [snipe snipped] > >> The table I have now consists of the following columns. >> songid,hits, title, author, license. >> Please explain how this data should be normalised. >> And why. >> Thank you. > > For what it's worth, I don't think that you have to normalize your tables. > Your table design seems to work for you. Normalization won't "fix" > anything, because nothing is "broken". Nobody said his DB was broken rather an effort to....(read next section) > > What normalization (and, a proper database design, for that matter) /will/ > do is make data maintenance and manipulation easier and possibly more > efficient. For big datasets, normalization reduces storage costs, improves > data reliability, and makes data manipulation (and the program development > that goes with it) more consistant. > What for the most part most have been trying to explain. And yes at time it gets in the weeds out of frustration but the foundation has been solid all along. > You seem to need none of these benefits. So, normalization is not for you. > Perhaps, when your application and database grow larger, you will see the > need for the improvements that database normalization and proper database > design bring. It is when your DB is small that you want to incorporate a normalized design so you can work out exactly what you need before you start having to code and run DB routines to normalize it. Nightmare scenario. Kind of like saying, don't get health insurance until you are sick....wait. Never mind Scotty
[toc] | [prev] | [next] | [standalone]
| From | Lew Pitcher <lew.pitcher@digitalfreehold.ca> |
|---|---|
| Date | 2014-03-16 21:14 -0400 |
| Message-ID | <j0sVu.57942$KZ7.9056@fx32.iad> |
| In reply to | #13180 |
On Sunday 16 March 2014 20:12, in comp.lang.php, "Scott Johnson" <noonehome@chalupasworld.com> wrote: > On 3/16/14, 2:29 PM, Lew Pitcher wrote: >> On Sunday 16 March 2014 16:22, in comp.lang.php, "richard" >> <noreply@example.com> wrote: >> >> [snipe snipped] >> >>> The table I have now consists of the following columns. >>> songid,hits, title, author, license. >>> Please explain how this data should be normalised. >>> And why. >>> Thank you. >> >> For what it's worth, I don't think that you have to normalize your >> tables. Your table design seems to work for you. Normalization won't >> "fix" anything, because nothing is "broken". > > Nobody said his DB was broken Perhaps. I haven't been following every post. The point is that richard's current design will not, of itself, cause a problem. It will, however (as I implied later) be less than optimal. But, if richard isn't concerned about optimal performance or design, then there's nothing that normalization will bring to him. > rather an effort to....(read next section) Yes, I'm familiar with the effort. I've "assisted" richard a couple of times, and find his design and implementation less than... what I would do. But, I'm not him. >> What normalization (and, a proper database design, for that matter) >> /will/ do is make data maintenance and manipulation easier and possibly >> more efficient. For big datasets, normalization reduces storage costs, >> improves data reliability, and makes data manipulation (and the program >> development that goes with it) more consistant. >> > > What for the most part most have been trying to explain. And yes at > time it gets in the weeds out of frustration but the foundation has been > solid all along. > >> You seem to need none of these benefits. So, normalization is not for >> you. Perhaps, when your application and database grow larger, you will >> see the need for the improvements that database normalization and proper >> database design bring. > > It is when your DB is small that you want to incorporate a normalized > design so you can work out exactly what you need before you start having > to code and run DB routines to normalize it. > > Nightmare scenario. Very true. And, most of the "you need normalization" and "you need to redesign your data table structure" comments have been well-meant attempts to address that scenario. > Kind of like saying, don't get health insurance until you are > sick....wait. Never mind Yup. Richard has passed on the health insurance. Nothing that we say will change his mind. All we are doing is cluttering up an unrelated newsgroup with unrequested advice that won't be listened to. Bottom line: richard's app works to his satisfaction, without a proper database design and without database normalization. I think that the subject is closed, and it is time to move on. --30-- -- Lew Pitcher "In Skills, We Trust" PGP public key available upon request
[toc] | [prev] | [next] | [standalone]
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Date | 2014-03-16 19:47 -0700 |
| Message-ID | <lg5npr$bph$1@dont-email.me> |
| In reply to | #13183 |
On 3/16/14, 6:14 PM, Lew Pitcher wrote: > On Sunday 16 March 2014 20:12, in comp.lang.php, "Scott Johnson" > <noonehome@chalupasworld.com> wrote: > >> On 3/16/14, 2:29 PM, Lew Pitcher wrote: >>> On Sunday 16 March 2014 16:22, in comp.lang.php, "richard" >>> <noreply@example.com> wrote: >>> >>> [snipe snipped] >>> >>>> The table I have now consists of the following columns. >>>> songid,hits, title, author, license. >>>> Please explain how this data should be normalised. >>>> And why. >>>> Thank you. >>> >>> For what it's worth, I don't think that you have to normalize your >>> tables. Your table design seems to work for you. Normalization won't >>> "fix" anything, because nothing is "broken". >> >> Nobody said his DB was broken > > Perhaps. I haven't been following every post. > > The point is that richard's current design will not, of itself, cause a > problem. It will, however (as I implied later) be less than optimal. > > But, if richard isn't concerned about optimal performance or design, then > there's nothing that normalization will bring to him. > >> rather an effort to....(read next section) > > Yes, I'm familiar with the effort. I've "assisted" richard a couple of > times, and find his design and implementation less than... what I would do. > > But, I'm not him. > >>> What normalization (and, a proper database design, for that matter) >>> /will/ do is make data maintenance and manipulation easier and possibly >>> more efficient. For big datasets, normalization reduces storage costs, >>> improves data reliability, and makes data manipulation (and the program >>> development that goes with it) more consistant. >>> >> >> What for the most part most have been trying to explain. And yes at >> time it gets in the weeds out of frustration but the foundation has been >> solid all along. >> >>> You seem to need none of these benefits. So, normalization is not for >>> you. Perhaps, when your application and database grow larger, you will >>> see the need for the improvements that database normalization and proper >>> database design bring. >> >> It is when your DB is small that you want to incorporate a normalized >> design so you can work out exactly what you need before you start having >> to code and run DB routines to normalize it. >> >> Nightmare scenario. > > Very true. And, most of the "you need normalization" and "you need to > redesign your data table structure" comments have been well-meant attempts > to address that scenario. > >> Kind of like saying, don't get health insurance until you are >> sick....wait. Never mind > > Yup. > > Richard has passed on the health insurance. Nothing that we say will change > his mind. All we are doing is cluttering up an unrelated newsgroup with > unrequested advice that won't be listened to. > > Bottom line: richard's app works to his satisfaction, without a proper > database design and without database normalization. I think that the > subject is closed, and it is time to move on. > > --30-- > All Points valid and taken. Scotty
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-03-16 22:54 -0400 |
| Message-ID | <lg5o58$dns$1@dont-email.me> |
| In reply to | #13183 |
On 3/16/2014 9:14 PM, Lew Pitcher wrote: > On Sunday 16 March 2014 20:12, in comp.lang.php, "Scott Johnson" > <noonehome@chalupasworld.com> wrote: > >> On 3/16/14, 2:29 PM, Lew Pitcher wrote: >>> On Sunday 16 March 2014 16:22, in comp.lang.php, "richard" >>> <noreply@example.com> wrote: >>> >>> [snipe snipped] >>> >>>> The table I have now consists of the following columns. >>>> songid,hits, title, author, license. >>>> Please explain how this data should be normalised. >>>> And why. >>>> Thank you. >>> >>> For what it's worth, I don't think that you have to normalize your >>> tables. Your table design seems to work for you. Normalization won't >>> "fix" anything, because nothing is "broken". >> >> Nobody said his DB was broken > > Perhaps. I haven't been following every post. > > The point is that richard's current design will not, of itself, cause a > problem. It will, however (as I implied later) be less than optimal. > > But, if richard isn't concerned about optimal performance or design, then > there's nothing that normalization will bring to him. > >> rather an effort to....(read next section) > > Yes, I'm familiar with the effort. I've "assisted" richard a couple of > times, and find his design and implementation less than... what I would do. > > But, I'm not him. > >>> What normalization (and, a proper database design, for that matter) >>> /will/ do is make data maintenance and manipulation easier and possibly >>> more efficient. For big datasets, normalization reduces storage costs, >>> improves data reliability, and makes data manipulation (and the program >>> development that goes with it) more consistant. >>> >> >> What for the most part most have been trying to explain. And yes at >> time it gets in the weeds out of frustration but the foundation has been >> solid all along. >> >>> You seem to need none of these benefits. So, normalization is not for >>> you. Perhaps, when your application and database grow larger, you will >>> see the need for the improvements that database normalization and proper >>> database design bring. >> >> It is when your DB is small that you want to incorporate a normalized >> design so you can work out exactly what you need before you start having >> to code and run DB routines to normalize it. >> >> Nightmare scenario. > > Very true. And, most of the "you need normalization" and "you need to > redesign your data table structure" comments have been well-meant attempts > to address that scenario. > >> Kind of like saying, don't get health insurance until you are >> sick....wait. Never mind > > Yup. > > Richard has passed on the health insurance. Nothing that we say will change > his mind. All we are doing is cluttering up an unrelated newsgroup with > unrequested advice that won't be listened to. > > Bottom line: richard's app works to his satisfaction, without a proper > database design and without database normalization. I think that the > subject is closed, and it is time to move on. > > --30-- > The problem here is in a couple of months Richard will want something else which can't be done with his current design - at least not without rewriting his entire site again. Then he'll come crying back here again... -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-03-25 15:28 +0100 |
| Message-ID | <1548845.6KCXAFz9P9@PointedEars.de> |
| In reply to | #13183 |
Lew Pitcher wrote: > "Scott Johnson" wrote: >> Kind of like saying, don't get health insurance until you are >> sick....wait. Never mind > > Yup. > > Richard has passed on the health insurance. Nothing that we say will > change his mind. All we are doing is cluttering up an unrelated newsgroup You are confusing cause and effect. It was “richard” who started this off- topic discussion. The appropriate reaction is either to ignore the thread, or to crosspost to a database newsgroup and set Followup-To (F'up2) to it. It is _not_ to continue posting off-topic here and feeding the troll. > with unrequested advice that won't be listened to. Probably not by them. But this is not a newsgroup just for “richard”. In fact, it might be better for everyone if this was not a newsgroup for “richard” and people with a similar attitude. F'up2 poster -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Derek Turner <frderek@cesmail.net> |
|---|---|
| Date | 2014-03-17 09:37 +0000 |
| Message-ID | <bonu2eFbrgvU2@mid.individual.net> |
| In reply to | #13180 |
On Sun, 16 Mar 2014 21:14:54 -0400, Lew Pitcher wrote: > Bottom line: richard's app works to his satisfaction, without a proper > database design and without database normalization. I think that the > subject is closed, and it is time to move on. But where's the fun in that?
[toc] | [prev] | [next] | [standalone]
| From | Doug Miller <doug_at_milmac_dot_com@example.com> |
|---|---|
| Date | 2014-03-16 21:34 +0000 |
| Message-ID | <XnsA2F2B29E92C25dougmilmaccom@78.46.70.116> |
| In reply to | #13166 |
richard <noreply@example.com> wrote in news:1i4cmixzjivy7.fgb9linsyq7u$.dlg@ 40tude.net: > I'll bet you won't. There are numerous explanations of normalization all over the net. Not my job to teach you, especially not what you've already demonstrated you're unwilling and unable to learn. > The table I have now consists of the following columns. > songid,hits, title, author, license. > Please explain how this data should be normalised. > And why. The chief advantage of normalization is making it much easier to ensure database consistency during updates. If every piece of information is stored in one place, and one place only, there is no possibility of two copies of it getting out of synch. In the specific case of your database, there probably is no benefit to be gained from normalization -- because once you've loaded the data, it's unlikely to ever change. > Thank you. You're welcome.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-03-16 18:02 -0400 |
| Message-ID | <lg570t$rrt$2@dont-email.me> |
| In reply to | #13166 |
On 3/16/2014 4:22 PM, richard wrote: > I'll bet you won't. > > The table I have now consists of the following columns. > songid,hits, title, author, license. > Please explain how this data should be normalised. > And why. > Thank you. > In addition, this is a PHP newsgroup. Database normalization is not function of PHP. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | richard <noreply@example.com> |
|---|---|
| Date | 2014-03-16 19:09 -0400 |
| Message-ID | <owuxvsb0o82w.13gsfzw2vdbw.dlg@40tude.net> |
| In reply to | #13174 |
On Sun, 16 Mar 2014 18:02:07 -0400, Jerry Stuckle wrote: > On 3/16/2014 4:22 PM, richard wrote: >> I'll bet you won't. >> >> The table I have now consists of the following columns. >> songid,hits, title, author, license. >> Please explain how this data should be normalised. >> And why. >> Thank you. >> > > In addition, this is a PHP newsgroup. Database normalization is not > function of PHP. Oh? yet you're the one who keeps demanding normalisation is the only way to do a databse in this very group. Not just with me, with others as well. You're attitude is, if the table has more tnan 3 columns, you need another table.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-03-16 21:13 -0400 |
| Message-ID | <lg5i8m$d3g$1@dont-email.me> |
| In reply to | #13175 |
On 3/16/2014 7:09 PM, richard wrote: > On Sun, 16 Mar 2014 18:02:07 -0400, Jerry Stuckle wrote: > >> On 3/16/2014 4:22 PM, richard wrote: >>> I'll bet you won't. >>> >>> The table I have now consists of the following columns. >>> songid,hits, title, author, license. >>> Please explain how this data should be normalised. >>> And why. >>> Thank you. >>> >> >> In addition, this is a PHP newsgroup. Database normalization is not >> function of PHP. > > Oh? yet you're the one who keeps demanding normalisation is the only way to > do a databse in this very group. > Not just with me, with others as well. > You're attitude is, if the table has more tnan 3 columns, you need another > table. > No. My attitude is, if the database is not properly normalized, normalize it! You seem to equate this to "a table having more than 3 columns". Nothing is further from the truth! But not only do you not understand that, you are unwilling to learn. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Geoff Muldoon <geoff.muldoon@trap.gmail.com> |
|---|---|
| Date | 2014-03-17 10:55 +1100 |
| Message-ID | <MPG.2d90e51c44428a29bf@news.albasani.net> |
| In reply to | #13166 |
noreply@example.com says... > > I'll bet you won't. > > The table I have now consists of the following columns. > songid,hits, title, author, license. > Please explain how this data should be normalised. Why do you have BOTH the songid and the (presumably song) title, when it would be prefereable to have a "Songs" table separate to the one recording the (presumably web-click) "hits"? Is it feasible for a song (for a particular author/artist) to be the subject of more than one "license", e.g. released on different compilation ablums through different companies? GM
[toc] | [prev] | [next] | [standalone]
| From | richard <noreply@example.com> |
|---|---|
| Date | 2014-03-16 20:13 -0400 |
| Message-ID | <1hsynrxc563j4.1rcusen67z2im.dlg@40tude.net> |
| In reply to | #13178 |
On Mon, 17 Mar 2014 10:55:57 +1100, Geoff Muldoon wrote: > noreply@example.com says... >> >> I'll bet you won't. >> >> The table I have now consists of the following columns. >> songid,hits, title, author, license. >> Please explain how this data should be normalised. > > Why do you have BOTH the songid and the (presumably song) title, when it > would be prefereable to have a "Songs" table separate to the one > recording the (presumably web-click) "hits"? > > Is it feasible for a song (for a particular author/artist) to be the > subject of more than one "license", e.g. released on different > compilation ablums through different companies? > > GM Yes it can be. There have been a few cases of same titles by different authors. One that cames to mind is "Little Sister" sung by Elvis and another totally different as sung by Connie Stevens. It is the author who signs with a licensing agent, not the artist. www.45cat.com has a collection of most songs of the sixties. And other years.Most labels show the licensing agents, but many do not.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.php
csiph-web