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

  1. #1

    Default Linked Table

    I am building a site to sell cd's and cassettes. There are currently over 600
    albums from over 250 artists broke in to 20 categories. The thing that throws
    me is that an artist can have albums in more then one category, so its not
    straight forward one to many relationships. I need to be able to show all
    artists that have albums in a particular category. I pass the cat_id that I
    want, but then an artist doesn't have the a cat_id associated to it because it
    could be one of many categories they fall into. I have the cat_id associated
    to a album because an album can only fall in to one category. here is a
    picture of my table relationships in MS Access
    [url]http://www.ecsmaine.com/klaritymusic/relationships.jpg[/url] Can I search all albums
    that have x cat_id then print it out. listed by
    artist, then loop all albums that the artist
    has only in that cat? I want it to look like Category: Rock. Artist 1
    album 1 album 2 album 3 Artist 2 album 1
    album 2 Artist 3 album 1 album 2 Also Later I will want
    to click artist name, list all avalable albums, grouped by category by this
    artist.

    StylusDesigns Guest

  2. Similar Questions and Discussions

    1. Updating multiple records in a linked table simultaneously
      I am working on an e-commerce application and I need help with updating the product details for a single product with multiple formats. --DB...
    2. Connecting to a Linked Table in Access
      I am using Dreamweaver MX 2004. I am trying to connect, via Dreamweaver, to a linked file in Access. The linked file is connected to a text file...
    3. MSACCESS hangs when retrieving LIST type field (linked informix table)
      I have fields like: ,field LIST(VARCHAR(255) NOT NULL) NOT NULL MSACCESS hangs when i retrieve this via a linked table. I also have fields...
    4. statically linked tcl conflict with dynamically linked tcl error
      My solaris 8 computer have a dynamically linked tclsh as the default. After another statically linked tclsh is executed, the computer environment...
    5. Open an MS Access Linked Table via ASP
      I have a MS Access database. Within this database, I have several linked tables that connect to a mainframe's database. The linked tables use a...
  3. #2

    Default Re: Linked Table

    Sure. To get all the atists/albums for a category: SELECT A.Artist_Name,
    AL.Album FROM Artist A, Album AL WHERE A.ID = AL.Artist_ID AND AL.Cat_ID =
    #Cat_ID# <cfoutput query='xxx' group='Artist_Name'> <b>#Artist_Name#</b><br />
    <cfoutput>#Album#<br /></cfoutput><br /> </cfoutput> To get all the albums for
    an artist by category, just switch the fields and output around.

    TA-Selene Guest

  4. #3

    Default Re: Linked Table

    Thanks.
    StylusDesigns 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