I have recipes that have many products - many-to-many relationships, and in the view table I want to present recipe and products in one line like that:
create view AllRecipe as
select Recipe.RecipeName,Recipe.Picture,Recipe.Scoring,Recipe.Preparation,Product.ProductName
from Recipe join ProductsRecipe on Recipe.Id=ProductsRecipe.RecipeId
join Product on ProductsRecipe.Product=Product.Id
and the result:
___ RecipeName Picture Scoring Preparation ProductName
1 salad null 7 Cut and mix cucumber
2 salad null 7 cut and mix tomato
but I want:
___ RecipeName Picture Scoring Preparation ProductName
1 salad null 7 Cut and mix cucumber tomato
how can I do that?