My db table looks like this
BID_Id UL_Id AUC_Id AI_Id BID_Amount BID_Status BID_Date
1 2 50 53 800 1 2015-06-24 12:26:51
2 4 50 53 860 1 2015-06-24 12:28:03
3 2 50 53 920 1 2015-06-24 12:26:51
4 4 50 53 1000 1 2015-06-24 12:28:03
Here UL_Id 2 is my value and i other person is 4. So the maximum amount i have bid is 920 and the other person bid is 1000. So i need to find out that if any person has bid greater than me get that value else retrieve my maximum value only. I hope its clear now guys.
If my record is greater, I want to retrieve that value also.