A query where two tables are linked to the same another table
From: Marc (pasdespam_at_free.fr)
Date: 01/14/05
- Next message: Chris Michael: "Re: Grabbing characters from a string"
- Previous message: Francois: "DB design basic question"
- Next in thread: Ibrahim Shameeque: "RE: A query where two tables are linked to the same another table"
- Reply: Ibrahim Shameeque: "RE: A query where two tables are linked to the same another table"
- Reply: Simon Hayes: "Re: A query where two tables are linked to the same another table"
- Reply: Hugo Kornelis: "Re: A query where two tables are linked to the same another table"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 Jan 2005 10:26:16 +0100
Hello,
I'm not an expert in SQL, if you could help me for that little
problem:
I had tree simple tables with their fields:
[Client] IdClient, Param
[Sale] IdSale, IdClient, Param
[Param] IdParam, Value
How can I retrieve a recordset with this columns ?
IdClient, IdSale, ValueOfParamClient, ValueOfParamSale
The problem is that I can retrieve a Param for one table (Client or
Sale) like this request :
SELECT Client.IdClient, Sale.IdSale, Param.Value
FROM
(Client
INNER JOIN Sale
ON Sale.IdClient = Client.IdClient)
LEFT JOIN Param
ON Param.IdParam = Sale.Param
But how can I retrieve the Param of the another table in a simple
query ? (because I would also like that it works for access)
Thank for your help,
Marc
- Next message: Chris Michael: "Re: Grabbing characters from a string"
- Previous message: Francois: "DB design basic question"
- Next in thread: Ibrahim Shameeque: "RE: A query where two tables are linked to the same another table"
- Reply: Ibrahim Shameeque: "RE: A query where two tables are linked to the same another table"
- Reply: Simon Hayes: "Re: A query where two tables are linked to the same another table"
- Reply: Hugo Kornelis: "Re: A query where two tables are linked to the same another table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|