以下のクエリでは、異なるテーブルから 2 つの属性をリストする必要があります。上記のクエリを書く簡単な方法はありますか?
Tables:
Patient (PatientID, FamilyName, GivenName,Address)
Item (ItemNo, Info, Fee)
Account (AccountNo, PatientID, Date)
AccountLine (AccountNo, ItemNo)
ジョン・ウェインという名前の患者のアイテム情報とすべての治療の日付をリストします。
Select FamilyName =” Wayne” and GivenName=”John” (Patient)> Temp1
Temp1*Temp1.PatientID = Account.PatientID (Account) > Temp2
- Updated
Temp2*Temp2.AccountNo = AccountLine.AccountNo (Temp2 X Account) >Temp3
Temp3*Temp3.ItemNo = Item.ItemNo (Temp3x Item) > Temp4
Select Description, Date(Temp4)
Join Answer
Select Description, Date (Restrict FamilyName =” Wayne” and GivenName=”John” (Patient) Join Account Join Item Join AccountLine)