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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Which one's the best----Relational or non-relational DB structure?

Which one's the best----Relational or non-relational DB structure?

Scheduled Pinned Locked Moved Database
questiondatabasedesigntoolshelp
3 Posts 3 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.
  • K Offline
    K Offline
    kamalika_kk
    wrote on last edited by
    #1

    Though I might be asking a very foolish question, but it's important for me to know what's the current trend and the reason for that. My question is----- What is better----- 1. Tables with relations (pk and fks created through script during design time) maintained at the DB. 2. Tables without relations(pk and fks) should be maintained at the DB and accessed with appropriate query as and when needed? Please some one help me with this.....I heard that the 2nd method is the current trend...if it is so then why is it?

    C 1 Reply Last reply
    0
    • K kamalika_kk

      Though I might be asking a very foolish question, but it's important for me to know what's the current trend and the reason for that. My question is----- What is better----- 1. Tables with relations (pk and fks created through script during design time) maintained at the DB. 2. Tables without relations(pk and fks) should be maintained at the DB and accessed with appropriate query as and when needed? Please some one help me with this.....I heard that the 2nd method is the current trend...if it is so then why is it?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      kamalika_kk wrote:

      1. Tables with relations (pk and fks created through script during design time) maintained at the DB. 2. Tables without relations(pk and fks) should be maintained at the DB and accessed with appropriate query as and when needed?

      All your tables should have a primary key. If you have related tables then they should have foreign keys.

      kamalika_kk wrote:

      I heard that the 2nd method is the current trend...if it is so then why is it?

      That is news to me.


      Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

      P 1 Reply Last reply
      0
      • C Colin Angus Mackay

        kamalika_kk wrote:

        1. Tables with relations (pk and fks created through script during design time) maintained at the DB. 2. Tables without relations(pk and fks) should be maintained at the DB and accessed with appropriate query as and when needed?

        All your tables should have a primary key. If you have related tables then they should have foreign keys.

        kamalika_kk wrote:

        I heard that the 2nd method is the current trend...if it is so then why is it?

        That is news to me.


        Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Colin Angus Mackay wrote:

        kamalika_kk wrote: I heard that the 2nd method is the current trend...if it is so then why is it? That is news to me.

        Same here. Haven't even considered using tables with out relations. Any data model I've worked with has some kind of relationship between entities.


        That's no moon, it's a space station. - Obi-wan Kenobi

        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