SHARE
TWEET

Untitled

a guest Jun 24th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DELIMITER //
  2. CREATE PROCEDURE ledigabilar(startpoint DATE, endpoint DATE)
  3.   BEGIN
  4.  
  5.     SELECT DISTINCT CarNumber FROM Bookings WHERE NOT ((Bookings.StartDate BETWEEN startpoint AND endpoint)
  6.     OR (Bookings.EndDate BETWEEN startpoint AND endpoint)
  7.    OR (Bookings.StartDate<=startpoint AND Bookings.EndDate>=endpoint));
  8.  
  9. END //
  10.  
  11.  
  12. CALL ledigabilar ('2018-01-05', '2018-01-30');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top