Unique dishes with a several diets assigned

I have a table that has different names of dishes that are assigned to different diets, many times a single name of the dish has several diets. How can I get a list of dishes with the unique name and their related diets.

The fist table is a child table of the another table wich is a parent table.

frankikoch_0-1653907021985.pngfrankikoch_1-1653907119640.png

 

0 3 96
3 REPLIES 3

For example I want to group the dish "Macarrones en blanco con
calabacin" to list the four diets asociated:

"PROTECCIร“N GรSTRICA"

"ASTRINGENTE"

"INSUFICIENCIA RENAL (NO HUEVO)"

"DIรLISIS (NO HUEVO)"

I have also this table

frankikoch_0-1653907544690.png

Thank you so much for the collaboration

You should have two separate tables:

  1. Diets table, listing the different diets each in its own row.
  2. Dishes table, with an EnumList column with base type Ref pointing towards the Dietes table.

In this case using a simple dereference expression like: [dishID].[dietList], you'll be able to retrieve the diets related to each dish. 

Top Labels in this Space