Ask a Question related to Dreamweaver AppDev, Design and Development.
-
siti_nana #1
joining 3 tables?
helooo...
i have 3 tables -Recipes, Ingredients and Products.
Recipes table:
RecipeID -PK
Ingredients table:
IngredientID -PK
IngreRecipeID -Foreign key to Recipes table
IngreProductID -Foreign key to Products table
Table:
ProductID -PK
how do i join them into 1 recordset?
siti_nana Guest
-
Joining three tables
Hello all, I am having a bear of a time trying to join three tables in Sybase. Here is the query...... select DISTINCT(appl.ag_id),... -
Joining tables, Please help
<b><u>Objective: </b></u> Join two DB tables to output two queries on a webpage. <b><u>Problem:</b></u> Error Diagnostic Information ODBC Error... -
Joining Multiple Tables
I have a query that enables me to join various tables together. I managed to get all the data I need from all of the tables, aside from one, apart... -
joining 3 tables in dataset
hi my problem is that i have to load 3 different tables from different databases into one dataset and do a join on all. i loaded all tables into... -
Joining Tables Across Databases
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ... -
Singularity.co.uk #2
Re: joining 3 tables?
siti_nana
Try theSQL below:
SELECT *
FROM Recipes, Ingredients, Products
WHERE RecipeID = IngreRecipeID AND IngreProductID = ProductID
"siti_nana" <webforumsuser@macromedia.com> wrote in message
news:cvnejo$lk2$1@forums.macromedia.com...> helooo...
>
> i have 3 tables -Recipes, Ingredients and Products.
>
> Recipes table:
> RecipeID -PK
>
> Ingredients table:
> IngredientID -PK
> IngreRecipeID -Foreign key to Recipes table
> IngreProductID -Foreign key to Products table
>
> Table:
> ProductID -PK
>
> how do i join them into 1 recordset?
>
>
Singularity.co.uk Guest
-
samkry #3
Re: joining 3 tables?
select rec.*,ing.*,prod.* from recipe rec
join ingredient ing
on rec.recipeid=ing.recipeid
join product prod
on ing.productid=prod.productid
where
above sql will etract all fields from ur column u can have more specific
column by replacing the .* to ur column name
samkry Guest



Reply With Quote

