UserMaster
ID
UserName
CreatedBy
Flag
1
Ashok
Admin
2
Amit
3
Amita
4
Amrita
5
Sandhya
UserTransactions
SerialNumber
CertifiedStatus
Certifiedon
A1
1-JAN-2016
A2
1-FEB-2016
A3
0
3-MAR-2016
A4
1-APR-2016
A5
6
A6
7
A7
8
A8
9
A9
10
A10
Output –
There are total 5 users, out of which 3 users have entered details.
Total Transactions
Certified Status
Date
True
3-MAR-2016 (Max date of transaction)
False
Null
true
UserName –
Total Transactions – total transactions made by user
Certified stauts – if number of transactions is more than 0, then true, if zero then false
Date – Max Date of transaction
Also, how to get min and max date in output variable from stored procedure in asp.net c#??
My stored procedure –
@MinDateOut varchar(max) output
Select @MinDateOut = min(t.CreatedOn) from UserTransactions t