Computers and Technology

Use ap;
declare @date1 smalldatetime;
declare @date2 smalldatetime;
select @date1 = min(invoiceduedate), @date2 = max(invoiceduedate)
from invoices
where invoicetotal - paymenttotal - credittotal > 0;
if @date1 < getdate()
if @date2 < getdate()
begin
print 'earliest past due date: ' + convert(varchar, @date1, 1);
print 'latest past due date: ' + convert(varchar, @date2, 1);
end;
else
print 'earliest past due date: ' + convert(varchar, @date1, 1);
else
print 'no invoices past due';

if the current date is 04/04/16, the earliest invoice due date for invoices with unpaid balances is 02/09/16, and the latest invoice due date for invoices with unpaid balances is 03/20/16, what will be printed by this script?

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, Melissamv2052
Selective incapacitation is a strategy to reduce prison population
Answers: 3
image
Computers and Technology, 22.06.2019 13:30, ReaLily
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
image
Computers and Technology, 23.06.2019 20:00, shadow6728g
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
image
Computers and Technology, 25.06.2019 01:30, parislover2000
What controls can be found on the file tab of microsoft word
Answers: 1
Do you know the correct answer?
Use ap;
declare @date1 smalldatetime;
declare @date2 smalldatetime;
select @dat...

Questions in other subjects:

Konu
Biology, 19.07.2019 10:50