Basic DB Logic Question

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Basic DB Logic Question

    I am trying to write what I think is a pretty basic script.
    The coding would be a bit like hot scripts; basically a review system.
    I am having problems from the get go with designing the database.
    It would look something like this

    Genre Table
    PK_Genre
    FK_URL_ID

    URL_Info Table
    PK_URL_ID
    Site_Name
    Site_Address

    Site_Description Table
    PK_Site_Description_ID
    FK_URL_ID
    Site_Description
    Tag_Line

    Site_Review Table
    PK_Site_Review_ID
    FK_URL_ID
    Reviews
    Number_Of_Votes
    Total_Of_Votes
    Rating

    Now my question is how does MySQL or any other database know how to relate
    thinks together.
    Example: I want a Genre to be assigned to a Site_Name.

    I am also thinking I have my Rating logic messed up.
    Thanks for any help.


    Kineard Guest

  2. Similar Questions and Discussions

    1. Navigation Logic Question
      >>>Newbie Alert <<< I'm building a website using Director. I have the typical nav buttons along the side that point to each "page" of the site....
    2. Question about logic related to a range of numbers
      I've been working on a script to parse IP addresses for a web reporting system and found an oddity I can't explain. This is probably somethign...
    3. Perl Project Logic Question
      Hi, I'm contemplating improving my "Name That Flick" feature, and was wondering if this is the right logic for what I should be doing. Name...
    4. Basic question b/w ASP & ASP .NET
      I would like to know what is the basic difference between ASP and ASP .NET VB AND VB .NET ADO and ADO .NET look forward to your responses
    5. Program Logic Question
      Hello All, I have written a little VB program to send packets of data to my web server every 5 seconds in the form of a small csv file. The idea...
  3. #2

    Default Re: Basic DB Logic Question

    The answer to:
    "how does MySQL or any other database know how to relate thinks together."

    is, "you tell it".

    If you are going to design databases, learn the fundamentals of data
    modelling. Understand the concept of primary and foreign keys.


    Dan Bracuk Guest

  4. #3

    Default Re: Basic DB Logic Question

    Here's a good tutorial to get you started. Once you work through it, if you have questions, feel free to post back.

    [url]http://www.geekgirls.com/menu_databases.htm[/url]
    Kronin555 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139