我有一个用于users和collected_guitars之间多对多关系的数据透视表。正如您所看到的,"collected_guitar“是引用外部表(guitar_models、finish)中的一些数据的项。如果我在"collected_guitar_user"中查找特定的model_id,我希望获得一个列出数据的派生表
假设"Fender Stratocaster“的模型id = 200,其中make是Fender (id =1 of make table)。同一把吉他可以有不同
我在Prolog里有这个数据库。I'm trying to write a query that will return the names of all the people who own a honda。任何帮助都将是非常感谢的,我已经在这个问题上坚持了一段时间。owns(sue, car(pontiac, gto, 1967)).
owns(george, car(honda,