OpeningBalance
TrnsNo CustomerName 1 Kiran 2 Nagappa 3 prasanth 4 kiran
Select max(TrnsNo) from OpeningBalance where CustomerName='Kiran'
SELECT * FROM OpeningsBalance WHERE TrnsNo in(select TrnsNo from OpeningsBalance where Customername='TESTT');
SELECT * FROM OpeningsBalance Where Customername = 'TESTT'
SELECT TOP 1 * FROM OpeningsBalance Where Customername = 'kiran' ORDER BY TrnsNo
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)