Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE PROCEDURE SPObtenerLibroReservasRangoFechas(
- @NombreLibro NVARCHAR(128),
- @FechaInicio DATETIME,
- @FechaFin DATETIME
- )
- AS
- SELECT [FechaReserva]
- ,[FechaMaxReserva]
- ,[FechaMaxDevolucion]
- FROM [ProyectoInventario].[dbo].[ReservaLibro]
- WHERE [IdLibro] IN (SELECT TOP 1 IdLibro FROM Libro AS L WHERE LOWER(L.Descripcion) = LOWER(@NombreLibro))
- AND [FechaReserva] BETWEEN @FechaInicio AND @FechaFin;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement