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. General Programming
  3. C#
  4. help

help

Scheduled Pinned Locked Moved C#
helpquestionlearning
4 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.
  • A Offline
    A Offline
    amaankhan
    wrote on last edited by
    #1

    Sir i have created 4 tables in which 1 is the master table Case table 1 : Author_id (P.K) Author_name Table 2 : Pub_id (p.k) Pub_name table 3 : Book_id (p.K) Book_name Table 4 ( master Table) MBD (p.k) Book Name ( drop down box) Author Name ( drop down Box) Pub name ( drop down box ) Qty Price ==================================== as you seen in the 4th table i have to add the book name( from table 1), pub name(from table 2) and author name(from table 3). in the table 4 i don't want to store their names i want to store their ID ..... book_id, pub_name, author_name.... any suggestion friends ? Thanks

    M A 2 Replies Last reply
    0
    • A amaankhan

      Sir i have created 4 tables in which 1 is the master table Case table 1 : Author_id (P.K) Author_name Table 2 : Pub_id (p.k) Pub_name table 3 : Book_id (p.K) Book_name Table 4 ( master Table) MBD (p.k) Book Name ( drop down box) Author Name ( drop down Box) Pub name ( drop down box ) Qty Price ==================================== as you seen in the 4th table i have to add the book name( from table 1), pub name(from table 2) and author name(from table 3). in the table 4 i don't want to store their names i want to store their ID ..... book_id, pub_name, author_name.... any suggestion friends ? Thanks

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

      Redesign your data, lesson 101 of normalised data is that you only store information 1 time table 4 should have BookID, AuthorID and PubID not the information. BTW I hope that is not the name of your table. If you want to learn about this try and get hold of microsoft Pub demo database, it deals with this exact industry. Also please read the guidelines for posting.

      Never underestimate the power of human stupidity RAH

      A 1 Reply Last reply
      0
      • A amaankhan

        Sir i have created 4 tables in which 1 is the master table Case table 1 : Author_id (P.K) Author_name Table 2 : Pub_id (p.k) Pub_name table 3 : Book_id (p.K) Book_name Table 4 ( master Table) MBD (p.k) Book Name ( drop down box) Author Name ( drop down Box) Pub name ( drop down box ) Qty Price ==================================== as you seen in the 4th table i have to add the book name( from table 1), pub name(from table 2) and author name(from table 3). in the table 4 i don't want to store their names i want to store their ID ..... book_id, pub_name, author_name.... any suggestion friends ? Thanks

        A Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #3

        This is the wrong forum. Remove this message from here and post it in the "General database" forum - this will help you in getting a better response.

        My signature "sucks" today

        1 Reply Last reply
        0
        • M Mycroft Holmes

          Redesign your data, lesson 101 of normalised data is that you only store information 1 time table 4 should have BookID, AuthorID and PubID not the information. BTW I hope that is not the name of your table. If you want to learn about this try and get hold of microsoft Pub demo database, it deals with this exact industry. Also please read the guidelines for posting.

          Never underestimate the power of human stupidity RAH

          A Offline
          A Offline
          amaankhan
          wrote on last edited by
          #4

          oops i am sorry........thanks for the reply

          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