i have three tables file, expense and payment. I want fetch data from 3 table based on foreign key.
我有以下三个表
文件表
FileId
FileNo
付款表
Id
Amount
FK_FileID
费用表
Id
Amount
FK_FileID
我想要像这样的输出
FileNo Amount IsPayment
10001 220 True
10001 120 False
10001 150 True
IsPayment 是逻辑字段,如果金额来自付款表 IsPayment 应该为真,如果它来自费用表,则应该为假。