同じ列名を持つ 2 つのビュー A と B がありますStudentID, FeeToBePaid, AmountPaid
。どちらのビューStudentID
でも同じです。しかし、列FeeToBePaid
とAmountPaid
は異なります。
B の行を A の行if A.FeeToBePaid <= A.AmountPaid
と同じstudentID
.
ビューA
SchoolStudentID sFeeToBePaid amountpaid
12-S-3003 1000.00 1000.00
ビューB
SchoolStudentID sFeeToBePaid amountpaid
12-S-3003 1000.00 0.00
11-F-2019 NULL 1000.00
12-S-3009 NULL 1000.00
私は答えが必要です
SchoolStudentID
sFeeToBePaid
amountpaid
12-S-3003 1000.00 1000.00
11-F-2019 NULL 1000.00
12-S-3009 NULL 1000.00