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
StarNamer workS

StarNamer work

@StarNamer work
About
Posts
1.0k
Topics
382
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Which would be the best way to do this?
    StarNamer workS StarNamer work

    I use T-SQL so it may not be quite the same, but I'd implement this with a link table.

    Table tPart would have field idPart plus other part info; table tGroup would have field idGroup and other group info. Then table tPartGroup has fields idPart and idGroup, each as foreign keys to their respective tables. No NULL entries needed.

    Adding or removing parts in groups only updates the tPartGroup table. The foreign keys prevent deleting a non-empty group or deleting a grouped part. If a part can only be in one group, then this just adds a UNIQUE constraint on the idPart field (I assume MySQL has this). Counting parts in a group is a simple query.

    Of course, if the parts are ordered in the group, then an additional field is needed on tPartGroup.

    As to what's the best way...?

    Database

  • Deleting old records from a password manager...
    StarNamer workS StarNamer work

    ... when I came across CodeProject.com, and, in a moment of nostalgia, thought I'd see if there was anything still there.

    Pleased to see it's being revived and people are finding it again.

    The Lounge
  • Login

  • Don't have an account? Register

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