TADIS Posted June 22, 2006 Share Posted June 22, 2006 Hey,I am using the following code:SELECT v_Catalogue.Date_Borrowed, v_Catalogue.Title, v_Catalogue.AuthorFROM v_CatalogueWHERE (((Not Exists (SELECT Date_Borrowed FROM v_Catalogue WHERE Date_Borrowed BETWEEN ? and ?))));to try and find a list of books that have not been borrowed between a certain period (dates entered by a user: 'date from' and 'date to').The sql statement does not work properly and I am having trouble trying to get it to work.Any suggestions please??Thanks Link to comment Share on other sites More sharing options...
pulpfiction Posted June 22, 2006 Share Posted June 22, 2006 Try this...SELECT a.Date_Borrowed, a.Title, a.Author FROM v_Catalogue aWHERE (NOT (a.Date_Borrowed BETWEEN 'startdate' AND 'enddate')) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now