Click here to Skip to main content
16,012,759 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
----------------------------
+ Date. + No booking +
----------------------------
+ 29/08/2017 + AN29081701 +
+ 29/08/2017 + AN29081702 +
+ 29/08/2017 + AN29081703 +
+ 30/08/2017 + AN30081701 +
+ 30/08/2017 + AN30081702 +
+ 01/09/2017 + AN01091701 +
----------------------------

I'm using access database n oledb conn..
how to find nearest date where count < 3..
I want show date 30/08/2017 and no booking AN30081702..

What I have tried:

Sql="select nobooking,date from booking group by nobooking,date having count (date) < 3 "
Posted
Updated 1-Sep-17 19:55pm
Comments
[no name] 6-Jul-18 11:46am    
Your question is completely incoherent.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900