✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the procedure:
CREATE PROCEDURE GetOrders
@StartDate DATE = '2025-01-01',
@EndDate DATE = NULL
AS
SELECT * FROM Orders
WHERE OrderDate >= @StartDate
AND (@EndDate IS NULL OR OrderDate <= @EndDate);
If we run:
EXEC GetOrders;
What happens?