I have a parent table A that have 2 foreign keys (from tables B and C), but it can have just one foreign key at a time. Example:
SELECT a.evi, a.time, a.date,
a.number, a.descr, a.x,
a.y, a.z, a.FK_tableB, a.FK_tableC,
b.brand, b.type,
b.color, b.model, c.name, c.lastname,
FROM tableA a,
tableB b,
tableC c
WHERE (PK_tableA = 100 AND PK_tableB = FK_tableB)
OR (PK_tableA = 100 AND PK_tableC = FK_tableC)
(This is not working, obviusly)
How do I return data when just one of the where clauses is true.