リレーショナル スキーマが与えられた場合、すべての正しい FD を見つけるのに問題があります。特に、ユーザーが送信したレシピと材料に関する情報を保存する次のデータベースを検討してください。
Recipe (userID, code, title, description, username, email, vegan, vegetarian, difficulty)
with (userID, code) PK
Ingredient (code, name, description, vegan, vegetarian) with (code) PK
RecipeIngredient (userID, recipeCode, ingredientCode, recipeTitle, ingredientName, quantity)
with (userID, recipeCode, ingredientCode) PK
RecipeIngredient 内のキー userID、recipeCode は Recipe を参照する外部キーであり、componentCode は Ingredient を参照する外部キーです。各ユーザーには、単一の電子メールとユーザー名があります。レシピや食材がビーガンであれば、それらもベジタリアンです。
上記のデータベースが適切に設計されているかどうか (BCNF を意味する) を判断し、そうでない場合は BCNF に再構築する必要があります。
すべての FD を見つけるにはどうすればよいですか?