Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2003, 04:51 AM
Authorized User
 
Join Date: Jun 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default many to many problem

Hi all,
I have a list of centres which have many employees and some employees work in more than 1 centre. I need to get the data (opening times, available facilities) for the individual centre and a list of the employees that work at the particular centre.

I have 3 tables for this:
centre: for the centre info
emp: for the employee info
join: a table that has the foreign keys (employee id, centre id) and a primary key (just cos u never know :)

now for the difficult bit:
so somebody loads up centre (AA) so Im getting the centre id (AA) and searching JOIN for all occurrences in the centre id field. now that I have the ID of each member of staff how do i retrieve the emploee data from the EMP table , Ive been banging my head for a while and im starting to make a dent in my forehead. I just keep on getting NO DATA, DOH!
 
Old June 5th, 2003, 05:44 AM
Authorized User
 
Join Date: Jun 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

whoops, i think ive found the answer already in the other threads, guess the moral of the story is to read the other threads properly









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.