I have some App using Visual studio 2008 and C#. some small App that im working on during my college study. (still student) I need to show in datagridview all the results (the App deals with cars rent) for Available cars between 2 dates. In the DB i have table call "orders" in this table there is rows with order for cars and the dates the car is rented. ineed to show in the results all the cars that dont hold this dates or between them..... i know what to write to select the dates ("SELECT * FROM orders WHERE (fromDate != @p1) AND (toDate != @p2)) but what to write if not between the dates?
elidotnet 0 Junior Poster in Training
kvprajapati 1,826 Posting Genius Team Colleague
sknake commented: That is what I would do +14
elidotnet 0 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
elidotnet 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.