Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. The next big paradigm shift in database design

The next big paradigm shift in database design

Scheduled Pinned Locked Moved The Weird and The Wonderful
databasemysqlcomdesign
18 Posts 12 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jeroen De Dauw

    This is the structure for a MySQL table some anonymous guys from 6ib at the Koninklijk Atheneum Sint-Niklaas[^] created. It's in Dutch, but I'm guessing you'll get the point anyway. The table is supposed to store answers from an enquite.

    CREATE TABLE IF NOT EXISTS `antwoorden` (
    `id` int(11) NOT NULL auto_increment,
    `geslacht` text NOT NULL,
    `studeren` text NOT NULL,
    `geboorteJaar` int(4) NOT NULL default '0',
    `gsm` text NOT NULL,
    `prijsGsmToestel` text,
    `herlaadmanier` text,
    `provider` text,
    `bedragPerMaan` text,
    `smsPerDag` text,
    `belPerDag` text,
    `mp3` text NOT NULL,
    `prijsMp3` text,
    `gebruikMp3` text,
    `pc` text NOT NULL,
    `aantalPc1` text,
    `aantalPc2` text,
    `aantalPc3` text,
    `aantalPc4` text,
    `aantalPc5` text,
    `aantalPc6` text,
    `aantalPc7` text,
    `aantalPc8` text,
    `aantalPc9` text,
    `aantalPc10` text,
    `prijsPc` text,
    `pcWerk` text,
    `pcSchool` text,
    `pcGamen` text,
    `pcFilm` text,
    `pcComm` text,
    `pcSociaal` text,
    `pcMuziek` text,
    `pcAndere` text,
    `pcGebruik` text,
    `pcProvider` text,
    `pc2000` text,
    `pcXp` text,
    `pcVista` text,
    `pc7` text,
    `pcLeo` text,
    `pcSnowLeo` text,
    `pcLinux` text,
    `pcUnix` text,
    `pcAndereBest` text,
    `pda` text NOT NULL,
    `prijsPda` text,
    `pdaWerk` text,
    `pdaSchool` text,
    `pdaGamen` text,
    `pdaAndere` text,
    `pdaGebruik` text,
    `pdaProvider` text,
    `tv` text NOT NULL,
    `tvGebruik` text,
    `tvProvider` text,
    `gamen` text NOT NULL,
    `play1` text,
    `play2` text,
    `play3` text,
    `xbox` text,
    `xbox360` text,
    `psp` text,
    `pspGo` text,
    `gameCube` text,
    `wii` text,
    `ds` text,
    `gameAndere` text,
    `consoleAantal` text,
    `prijsGames` text,
    `digiFoto` text,
    `filmCamera` text,
    `extHD` text,
    `memStick` text,
    `videoRec` text,
    `dvdSpelRec` text,
    `bluRay` text,
    `dlToetsMuis` text,
    `gameToeb` text,
    `surround` text,
    `printer` text,
    `webcam` text,
    `scanner` text,
    `enqueteLeuk` text NOT NULL,
    PRIMARY KEY (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

    I think this is just brilliant and the authors should be nominated form the Nobel prize. EDIT: Check out my blog post[

    C Offline
    C Offline
    Chris Meech
    wrote on last edited by
    #9

    Not speaking Dutch, I can't be sure, but I think the author has forgotten a column for right-hand or left-hand use. :)

    Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

    1 Reply Last reply
    0
    • J Jeroen De Dauw

      This is the structure for a MySQL table some anonymous guys from 6ib at the Koninklijk Atheneum Sint-Niklaas[^] created. It's in Dutch, but I'm guessing you'll get the point anyway. The table is supposed to store answers from an enquite.

      CREATE TABLE IF NOT EXISTS `antwoorden` (
      `id` int(11) NOT NULL auto_increment,
      `geslacht` text NOT NULL,
      `studeren` text NOT NULL,
      `geboorteJaar` int(4) NOT NULL default '0',
      `gsm` text NOT NULL,
      `prijsGsmToestel` text,
      `herlaadmanier` text,
      `provider` text,
      `bedragPerMaan` text,
      `smsPerDag` text,
      `belPerDag` text,
      `mp3` text NOT NULL,
      `prijsMp3` text,
      `gebruikMp3` text,
      `pc` text NOT NULL,
      `aantalPc1` text,
      `aantalPc2` text,
      `aantalPc3` text,
      `aantalPc4` text,
      `aantalPc5` text,
      `aantalPc6` text,
      `aantalPc7` text,
      `aantalPc8` text,
      `aantalPc9` text,
      `aantalPc10` text,
      `prijsPc` text,
      `pcWerk` text,
      `pcSchool` text,
      `pcGamen` text,
      `pcFilm` text,
      `pcComm` text,
      `pcSociaal` text,
      `pcMuziek` text,
      `pcAndere` text,
      `pcGebruik` text,
      `pcProvider` text,
      `pc2000` text,
      `pcXp` text,
      `pcVista` text,
      `pc7` text,
      `pcLeo` text,
      `pcSnowLeo` text,
      `pcLinux` text,
      `pcUnix` text,
      `pcAndereBest` text,
      `pda` text NOT NULL,
      `prijsPda` text,
      `pdaWerk` text,
      `pdaSchool` text,
      `pdaGamen` text,
      `pdaAndere` text,
      `pdaGebruik` text,
      `pdaProvider` text,
      `tv` text NOT NULL,
      `tvGebruik` text,
      `tvProvider` text,
      `gamen` text NOT NULL,
      `play1` text,
      `play2` text,
      `play3` text,
      `xbox` text,
      `xbox360` text,
      `psp` text,
      `pspGo` text,
      `gameCube` text,
      `wii` text,
      `ds` text,
      `gameAndere` text,
      `consoleAantal` text,
      `prijsGames` text,
      `digiFoto` text,
      `filmCamera` text,
      `extHD` text,
      `memStick` text,
      `videoRec` text,
      `dvdSpelRec` text,
      `bluRay` text,
      `dlToetsMuis` text,
      `gameToeb` text,
      `surround` text,
      `printer` text,
      `webcam` text,
      `scanner` text,
      `enqueteLeuk` text NOT NULL,
      PRIMARY KEY (`id`)
      ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

      I think this is just brilliant and the authors should be nominated form the Nobel prize. EDIT: Check out my blog post[

      M Offline
      M Offline
      Michael J Eber
      wrote on last edited by
      #10

      O M G !!!! Aside from the fact that it is a massive table of text.....WHY WHY WHY WHY WHY do people design G.D. databases with an incremental ID as the mother fracking key!!!!! AHHHHHH I want to shoot that designer. [deep breath...pause... nope I still want to shoot the designer] [Buddhist chants...meditation...an hour of tai chi....hmmm nope I still want to shoot the designer] Oh well.

      D K 2 Replies Last reply
      0
      • M Michael J Eber

        O M G !!!! Aside from the fact that it is a massive table of text.....WHY WHY WHY WHY WHY do people design G.D. databases with an incremental ID as the mother fracking key!!!!! AHHHHHH I want to shoot that designer. [deep breath...pause... nope I still want to shoot the designer] [Buddhist chants...meditation...an hour of tai chi....hmmm nope I still want to shoot the designer] Oh well.

        D Offline
        D Offline
        David Skelly
        wrote on last edited by
        #11

        LongRangeShooter wrote:

        WHY do people design G.D. databases with an incremental ID as the mother fracking key

        I'm not sure what you mean by "incremental ID" here. Do you mean auto-incrementing?

        1 Reply Last reply
        0
        • M Michael J Eber

          O M G !!!! Aside from the fact that it is a massive table of text.....WHY WHY WHY WHY WHY do people design G.D. databases with an incremental ID as the mother fracking key!!!!! AHHHHHH I want to shoot that designer. [deep breath...pause... nope I still want to shoot the designer] [Buddhist chants...meditation...an hour of tai chi....hmmm nope I still want to shoot the designer] Oh well.

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #12

          LongRangeShooter wrote:

          WHY WHY WHY WHY WHY do people design G.D. databases with an incremental ID as the mother fracking key

          This bugs me too, sometime you find that such people grew writing VBA apps on Accees, which natually makes them database designers :-). Occaisionally technology "forces" it see: http://en.wikipedia.org/wiki/Surrogate_key#Compatibility[^] Genuinely, I blame lack of training as people often grow up hacking databases together, istead of understanding the theory behind them. To me, surrogate keys are a sign of bad normalisation, can lead to duplicates more easily, and increases the likelyhood of bad join conditions. I'm fascinated by the internicene warfare around relational database design, as these directly correlate to set theory and therefore we should largely agree about the principles at least. I mooted this point in the C# forum and got an immediate long rant informing me how a properly normalised database is too hard to use, I didn't even argue back as the guy was obviously too stupid to bother with. I worked in a company that collapsed because they bought a 3rd party software. The vendor pitched it "We handle all the information checking in code [i.e. referential integrity, duplication protection, orphaning protection etc], so our system is more flexible. Net result: Orphaned records, lost records, duplicate jobs, all because it is "too difficult" to normalize.

          Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

          1 Reply Last reply
          0
          • J Jeroen De Dauw

            This is the structure for a MySQL table some anonymous guys from 6ib at the Koninklijk Atheneum Sint-Niklaas[^] created. It's in Dutch, but I'm guessing you'll get the point anyway. The table is supposed to store answers from an enquite.

            CREATE TABLE IF NOT EXISTS `antwoorden` (
            `id` int(11) NOT NULL auto_increment,
            `geslacht` text NOT NULL,
            `studeren` text NOT NULL,
            `geboorteJaar` int(4) NOT NULL default '0',
            `gsm` text NOT NULL,
            `prijsGsmToestel` text,
            `herlaadmanier` text,
            `provider` text,
            `bedragPerMaan` text,
            `smsPerDag` text,
            `belPerDag` text,
            `mp3` text NOT NULL,
            `prijsMp3` text,
            `gebruikMp3` text,
            `pc` text NOT NULL,
            `aantalPc1` text,
            `aantalPc2` text,
            `aantalPc3` text,
            `aantalPc4` text,
            `aantalPc5` text,
            `aantalPc6` text,
            `aantalPc7` text,
            `aantalPc8` text,
            `aantalPc9` text,
            `aantalPc10` text,
            `prijsPc` text,
            `pcWerk` text,
            `pcSchool` text,
            `pcGamen` text,
            `pcFilm` text,
            `pcComm` text,
            `pcSociaal` text,
            `pcMuziek` text,
            `pcAndere` text,
            `pcGebruik` text,
            `pcProvider` text,
            `pc2000` text,
            `pcXp` text,
            `pcVista` text,
            `pc7` text,
            `pcLeo` text,
            `pcSnowLeo` text,
            `pcLinux` text,
            `pcUnix` text,
            `pcAndereBest` text,
            `pda` text NOT NULL,
            `prijsPda` text,
            `pdaWerk` text,
            `pdaSchool` text,
            `pdaGamen` text,
            `pdaAndere` text,
            `pdaGebruik` text,
            `pdaProvider` text,
            `tv` text NOT NULL,
            `tvGebruik` text,
            `tvProvider` text,
            `gamen` text NOT NULL,
            `play1` text,
            `play2` text,
            `play3` text,
            `xbox` text,
            `xbox360` text,
            `psp` text,
            `pspGo` text,
            `gameCube` text,
            `wii` text,
            `ds` text,
            `gameAndere` text,
            `consoleAantal` text,
            `prijsGames` text,
            `digiFoto` text,
            `filmCamera` text,
            `extHD` text,
            `memStick` text,
            `videoRec` text,
            `dvdSpelRec` text,
            `bluRay` text,
            `dlToetsMuis` text,
            `gameToeb` text,
            `surround` text,
            `printer` text,
            `webcam` text,
            `scanner` text,
            `enqueteLeuk` text NOT NULL,
            PRIMARY KEY (`id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

            I think this is just brilliant and the authors should be nominated form the Nobel prize. EDIT: Check out my blog post[

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #13

            jeroen de dauw wrote:

            EDIT: Check out my blog post[^] about this

            Dude. Who told you that black text on a dark grey background made for a good, READABLE, website?

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            J P 2 Replies Last reply
            0
            • D Dave Kreskowiak

              jeroen de dauw wrote:

              EDIT: Check out my blog post[^] about this

              Dude. Who told you that black text on a dark grey background made for a good, READABLE, website?

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              J Offline
              J Offline
              Jeroen De Dauw
              wrote on last edited by
              #14

              Dark Gray background? What browser are you using?!!

              Jeroen De Dauw ---Forums ; Blog ; Wiki--- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

              D L 2 Replies Last reply
              0
              • J Jeroen De Dauw

                Dark Gray background? What browser are you using?!!

                Jeroen De Dauw ---Forums ; Blog ; Wiki--- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #15

                Wow. IE7 at work. I fired up IE7 at home and it looks OK now. Back at work, it was all dark gray, except for the code snippets.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                D 1 Reply Last reply
                0
                • J Jeroen De Dauw

                  Dark Gray background? What browser are you using?!!

                  Jeroen De Dauw ---Forums ; Blog ; Wiki--- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #16

                  FF3.0: OK IE7: bad :)

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                  Getting an article published on CodeProject now is hard and not sufficiently rewarded.


                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    jeroen de dauw wrote:

                    EDIT: Check out my blog post[^] about this

                    Dude. Who told you that black text on a dark grey background made for a good, READABLE, website?

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008
                    But no longer in 2009...

                    P Offline
                    P Offline
                    peterchen
                    wrote on last edited by
                    #17

                    CSS Fail! :D

                    Agh! Reality! My Archnemesis![^]
                    | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                    1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      Wow. IE7 at work. I fired up IE7 at home and it looks OK now. Back at work, it was all dark gray, except for the code snippets.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007, 2008
                      But no longer in 2009...

                      D Offline
                      D Offline
                      David Skelly
                      wrote on last edited by
                      #18

                      I can second that. I am using IE7 and it's a grey background, black text. Very hard to read. The code snippets show up OK, with a white background. EDIT: Just tried it in FF3 and it's a white background. In IE7 there is a background image showing which is sort of a dark greyish colour. In FF3 that image is not displayed, so you only see the default browser back colour (i.e. a plain white background). It looks like some problem with the CSS file that defines the class for the box where you are showing your text. IE likes it, FF doesn't. Welcome to the world of cross-browser support.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups