.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

HOW TO SOLVE this query

Posted By: parthiban     Posted Date: April 15, 2013    Points:5   Category :ASP.Net
developing online car booking application.. i have a scenario for restricting only 10 bookings dail

Author: Narayanan             
Posted Date: April 15, 2013     Points: 20   


Check the Counting of the Record in Date wise .

Try this code:
SELECT [BookNo], COUNT(BookNo)  FROM tbl_Book_Details WHERE date = @date_provided

Read the Count Column and give the Condition Not exceed 10 Record.

Regards, Lakshmi Naraayanan.S
Author: Sivaraman             
Posted Date: April 15, 2013     Points: 20   

Select BookNo, count(bookno) from tbl_book_details
group by <column_to_group>
having count(bookno) < 10

God is great!

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend