webForumDet fria alternativet

Access med två join

Databaser & SQL

1 svar · 359 visningar · startad av cok

Medlem sedan dec. 2005664 inlägg
Frågan#1

Hallå, jag har följande select som jag inte får att fungera. Har väldigt dålig koll på hur syntaxen är i Access..

select tRecipe.Name, Calories, RecipeDescription, tRecipeGroup.Name as RecipeGroup,tRecipeType.Name as RecipeType 
from tRecipe
join tRecipeGroup on tRecipeGroup.ID = tRecipe.RecipeGroup 
join tRecipeType on tRecipeType.ID = tRecipe.RecipeType

Tips ?

Medlem sedan dec. 200012 464 inlägg
#2
select tRecipe.Name, Calories, RecipeDescription, tRecipeGroup.Name as RecipeGroup,tRecipeType.Name as RecipeType 
from (tRecipe
join tRecipeGroup on tRecipeGroup.ID = tRecipe.RecipeGroup) 
join tRecipeType on tRecipeType.ID = tRecipe.RecipeType
251 ms totalt · 4 externa anrop · v20260731065814-full.6fe65c25
123 ms — deklarationer (db)
0 ms — hämta statistik (cache)
123 ms — hämta tråd, inlägg och bilagor (db)
125 ms — ändringar (db)