Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Nathon Jones #1
one-to-many - how to display data from two tables?
Hi,
I'm working with Access/VBScript/ASP.
I have an events table that has:
eventID
venueID
eventname
....I also have a venues table that has
venueID
venuename
How do I create a recordset on a page, that will display the events, but
will also display the venue name, by matching the venueID in the events
table, with the venueID in the venues table?
Got me stumped.
Thanks.
Nath.
Nathon Jones Guest
-
display data points but not data tips
does anyone know how to display the data point, but not the data tip? i just want to display the circular node that shows where the data point is,... -
How to display a set of data in a data grid when drivenby a combo box?
I am trying to build a page where the user can select a syle of food (i.e. chinese, italian etc) from a combo. I would then want the relevent... -
find values in two tables, display results in one
Is there a good way to do a search for date ranges in two different tables and have the results appear on the same screen/printout? Our Filemaker... -
Display data from database in a scrollable data grid on an ASP Page
Hi All, I want to display data from database in a scrollable data grid on an ASP Page. I want to use it for entering data also. Should i have to... -
Inserting into one table data from 2 tables and some input data.
Alrighty, I pull records from a database table onto a page based on vendor #. On this page I have an input box after each row of data that is just... -
greekchild #2
Re: one-to-many - how to display data from two tables?
select events.eventid, events.venueid, events, eventname, venue.venueid, venue.venuename
from events, venues
where events.venueid=venues.venueid
greekchild Guest
-
greekchild #3
Re: one-to-many - how to display data from two tables?
select events.eventid, events.venueid, events, eventname, venue.venueid, venue.venuename
from events, venues
where events.venueid=venues.venueid
greekchild Guest
-
Julian Roberts #4
Re: one-to-many - how to display data from two tables?
Create a query in Access, it's got some wonderful wizards and tools for
building queries.
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Nathon Jones #5
Re: one-to-many - how to display data from two tables?
Hi,
Yup, I decided that I would do the query in Access rather than server side.
Thanks for the advice though. One other thing...
I have an events table which has the following
eventID
eventname
....I have an artists table that has the following:
artistID
artistname
Some of the events have more than one artist appearing. Similarly, some of
the artists appear at more than one event.
So how do I create a query/relationship that will reflect this?
Do I need to create an artistID field in my events table? If so, then how
do I make multiple selections in that field (considering that more than one
artist might appear at any one event).
My problem is the same the other way around....if I create an eventID in the
artists table, then how do I do the multiple selection?
Thanks again,
Nath.
"Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
news:cvhuf2$52u$1@forums.macromedia.com...> Hi,
> I'm working with Access/VBScript/ASP.
>
> I have an events table that has:
>
> eventID
> venueID
> eventname
>
> ...I also have a venues table that has
>
> venueID
> venuename
>
> How do I create a recordset on a page, that will display the events, but
> will also display the venue name, by matching the venueID in the events
> table, with the venueID in the venues table?
>
> Got me stumped.
>
> Thanks.
> Nath.
>
Nathon Jones Guest
-
Michael Fesser #6
Re: one-to-many - how to display data from two tables?
.oO(Nathon Jones)
So you have a m:n (many-to-many) relationship.>I have an events table which has the following
>
>eventID
>eventname
>
>...I have an artists table that has the following:
>
>artistID
>artistname
>
>Some of the events have more than one artist appearing. Similarly, some of
>the artists appear at more than one event.
You need a third table to connect both others. Assuming eventID and>So how do I create a query/relationship that will reflect this?
artistID are the primary keys, the third table would simply contain
these both fields:
eventID
artistID
For every combination of artist/event you simply insert a record into
that table. Querying the three tables can be easily done with two
(INNER) JOIN clauses.
Micha
Michael Fesser Guest



Reply With Quote

