Changes between Version 6 and Version 7 of Stored Functions and Procedures
- Timestamp:
- 05/13/26 20:36:50 (13 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Stored Functions and Procedures
v6 v7 10 10 11 11 Calculates the total confirmed cost of a wedding using venue, photographer, and band bookings. 12 13 The function calculates venue costs directly from booking prices and additionally computes photographer and band costs based on booked duration and hourly pricing. 12 14 13 15 === SQL Code === … … 59 61 Checks whether a venue is available for a selected date and time interval. 60 62 63 This implementation uses complete timestamp interval comparison instead of simple date equality checks in order to correctly detect all possible overlap scenarios. 64 61 65 This function compares complete timestamp intervals by combining the booking date with start and end time. It does not only compare equal dates. 62 66 … … 112 116 Checks whether a photographer is available for a selected date and time interval. 113 117 118 This implementation uses complete timestamp interval comparison instead of simple date equality checks in order to correctly detect all possible overlap scenarios. 119 120 The function combines booking dates and times into complete timestamp intervals in order to correctly validate overlapping reservations. 121 114 122 === SQL Code === 115 123 … … 148 156 Checks whether a band is available for a selected date and time interval. 149 157 158 This implementation uses complete timestamp interval comparison instead of simple date equality checks in order to correctly detect all possible overlap scenarios. 159 160 The function validates overlapping booking intervals using complete timestamp comparison between requested and existing reservations. 161 150 162 === SQL Code === 151 163 … … 184 196 Returns RSVP statistics for a selected event. 185 197 198 The procedure generates summarized RSVP information including accepted, declined, and pending responses for analytical and reporting purposes. 199 186 200 === SQL Code === 187 201
