webForumDet fria alternativet

Access med två join

1 svar · 359 visningar · startad av cok

cokMedlem sedan dec. 2005664 inlägg
#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 ?

LarsGMedlem 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
131 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
128 ms — hämta tråd, inlägg och bilagor (db)