Ask a Question related to Coldfusion Database Access, Design and Development.
-
StylusDesigns #1
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
-
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... -
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... -
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... -
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... -
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... -
TA-Selene #2
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
-



Reply With Quote

