Answer:
Create table vendor(vendor_id int,due_invoice int,invoiceTotal int);
Create view v as select vendor_id,max(due_invoice) as unpaid from vendor;
Select sum(unpaid) from v;
Select vendor_id,invoiceTotal from vendor group by vendor_id;
Answer:
1
11
111
1111
11111
Explanation:
Given
The above QBasic code
Required
The output
The iteration on the third line is repeated 5 times; i.e. for values of j from 1 to 5.
In each iteration, the value of N is printed and the next value is calculated.
Initially, the value of N is 1 ---- on line 2
So, 1 is printed first. The next value of N is as follows:
--- we keep replacing N (on the right-hand side) with current N value.
So, we have:



