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. Database & SysAdmin
  3. Database
  4. Database for Bridge Asset Management

Database for Bridge Asset Management

Scheduled Pinned Locked Moved Database
databasedesignhelptutorialquestion
5 Posts 4 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.
  • N Offline
    N Offline
    Nebilo
    wrote on last edited by
    #1

    Hi everyone, I wanted to ask a question that was confusing me how to design the db.This bridge database that i was going to design has 3 different districts(Locations) say A,B and C.These districts have different road segments,sections.I temporarily designed the db using separate tables but having the same fields.As i said these tables only differ by the thing i mentioned. I know I'm not following the design rules,so i need you to help me on that. Thanks

    B L 2 Replies Last reply
    0
    • N Nebilo

      Hi everyone, I wanted to ask a question that was confusing me how to design the db.This bridge database that i was going to design has 3 different districts(Locations) say A,B and C.These districts have different road segments,sections.I temporarily designed the db using separate tables but having the same fields.As i said these tables only differ by the thing i mentioned. I know I'm not following the design rules,so i need you to help me on that. Thanks

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      And when the next district is added, you add another table? No! Create a table for the districts, and then use "foreign keys" to connect to the sections table.

      M N 2 Replies Last reply
      0
      • N Nebilo

        Hi everyone, I wanted to ask a question that was confusing me how to design the db.This bridge database that i was going to design has 3 different districts(Locations) say A,B and C.These districts have different road segments,sections.I temporarily designed the db using separate tables but having the same fields.As i said these tables only differ by the thing i mentioned. I know I'm not following the design rules,so i need you to help me on that. Thanks

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Nebilo wrote:

        I know I'm not following the design rules,so i need you to help me on that.

        How? Yes, I could sum up some widely used constructs, but that's not a decent alternative for a good design. There's explanation on database-normalization in the wikipedia, and various articles on CodeProject. Alternatively, you could fake a design[^]. I'll gladly help with the normalization rules if you get stuck :)

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        1 Reply Last reply
        0
        • B Bernhard Hiller

          And when the next district is added, you add another table? No! Create a table for the districts, and then use "foreign keys" to connect to the sections table.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Bernhard Hiller wrote:

          foreign keys

          What be these foreign keys you speak of!

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • B Bernhard Hiller

            And when the next district is added, you add another table? No! Create a table for the districts, and then use "foreign keys" to connect to the sections table.

            N Offline
            N Offline
            Nebilo
            wrote on last edited by
            #5

            BTW there are fields that provide the bridge information,it's bridge number(p.k),name,design year,asset value and other fields. Now there are 3 different districts A,B and C.Under District A,there are different sections and road segments that correspond to A only.Same thing goes to B and C.These districts are not related in any way in other words. That's why i created 3 separate tables based on these districts.

            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