Re: SQL command help
- From: "RoyVidar" <roy_vidarNOSPAM@xxxxxxxx>
- Date: Thu, 09 Mar 2006 09:28:02 +0100
John wrote in message <120uuh07brbea89@xxxxxxxxxxxxxxxxxx> :
Anybody
I have two tables like so:
Employee:
Employee_ID Name
------------------------------------------
01 Hansen, Ola
02 Svendson, Tove
03 Svendson, Stephen
04 Pettersen, Kari
Orders:
Prod_ID Product Employee_ID
-----------------------------------------------------
234 Printer 01
657 Table 03
865 Chair 03
I want to create an SQL statement that will return the following result
Name ProductList
-----------------------------------------------------
Hansen, Ola Printer
Svendson, Tove
Svendson, Stephen Table, Chair
Pettersen, Kari
Basically, I want to return a new column with a list of all the orders. How
would I achieve this?
John
I think you'll need more than just SQL, I think you'll need to call a
VBA function, too.
Check out Duane Hookoms "Generic Function To Concatenate Child Records"
http://www.rogersaccesslibrary.com/OtherLibraries.asp
--
Roy-Vidar
.
- References:
- SQL command help
- From: John
- SQL command help
- Prev by Date: Re: Corrupt Encrypted Back-end. Any suggestions?
- Next by Date: Re: Wireless connections, trace them in a LAN?
- Previous by thread: Re: SQL command help
- Next by thread: Parameter Query, Link Oracle Table
- Index(es):
Relevant Pages
|
Loading