Ask a Question related to Coldfusion Database Access, Design and Development.
-
phamtum #1
Joing 2 table multiple times
Any Advise is greatly appreciated!!!
Access Database tables:
? Admins
1. id (PK)
2. name
? Book_05
1. id(PK)
2. mem_id
3. book_date
4. booked_by
5. call_by
6. confirmed_by
? Members
1. id(PK)
2. fnname
3. lname
My Query:
select b.*, m.fname, m.lname, a.name
from book_05 b, members m, admins a
where b.mem_id = m.id
and b.admin = a.id
order by lname
Problem:
The Admins table is joined 4 times to the Book_05 table.
? Admins.id = book_04.mem_id
? Admins.id = book_04.book_by
? Admins.id = book_04.call_by
? Admins.id = book_04.confirmed_by
For each record in the book_05 there can be 4 different admins.id. I?m having
problem display the admins.name in the output. I need to some how join the
table 4 time or something.
Want:
To display admin name if there were 4 different admin that update each item
then the output should show accordingly. I hope this is clear, thank you for
you help.
:beer;
phamtum Guest
-
same video multiple times
does anybody know how to make the same video show up nine times across the page(same size) and possibly make a button to to have all of the same ... -
CFExecute Multiple Times Not Working?
I am also executing a particular EXE more than once. Will using CFLOCK exclusive prevent more than one copy of the program from executing if the... -
Still cannot undo multiple times?
What is going on down there at Macromedia HQ? How difficult is it to add a multiple undo feature to Director? I understand there is a lot going... -
problem matching multiple times
Hi All, I have a content management system that I'm building and I'm having issues matching a variable that needs to be replaced with rows from a... -
COM dll being called multiple times
> This issue I am seeing is the same information being How are you using the DLL from the asp code? -
mxstu #2
Re: Joing 2 table multiple times
You will need to JOIN with the [Admins] table multiple times. Once for each
admin ID column.
....
? Admins.id = book_04.mem_id
But first, is this a typo, or is the Admins.id value a member ID (i.e.
Members.ID)?
mxstu Guest



Reply With Quote

