DECLARE x NUMBER(5);
BEGIN
SELECT count(a.sales_id) INTO x
FROM Saales.Sales_managers a JOIN Sales.Sales_master b on a.sales_id = b.Sales_id
WHERE to_date(a.add_date) > sysdate - 1;
END;
DECLARE y NUMBER(5);
BEGIN
SELECT count(a.sales_id) INTO y
FROM Saales.Sales_managers a JOIN Sales.Sales_master b on a.sales_id = b.Sales_id
WHERE to_date(a.mod_date) > sysdate - 1;
END;
|