This document contains code for querying a database table to retrieve fee payment details between two dates. It selects data from the VWFeeDetails table, fills a dataset, and binds the results to a GridView if rows are returned. It also contains code for a Repeater control that displays the fee payment records in a table with labels bound to the column values.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
32 views
String SQL
This document contains code for querying a database table to retrieve fee payment details between two dates. It selects data from the VWFeeDetails table, fills a dataset, and binds the results to a GridView if rows are returned. It also contains code for a Repeater control that displays the fee payment records in a table with labels bound to the column values.
select CName,ClassCode,Section, sum( case when gender = 'male' then 1 else 0 end ) as Boys , sum( case when gender = 'female' then 1 else 0 end ) as Girls ,count() as total from vwStudentFullDetails group By CName,ClassCode,Section