I do have table with the fields- BranchCode VARCHAR, TransactionDate DATE, TransactionId BIGINT And in PHP I have written sql query as
$sqllastTransId="select * from transactiontable where BranchCode ={$BranchCode} and DATE(TransactionDate) ={$TransDate} order by TransactionId desc limit 1";
I was trying to get last or maximum TransactionId on the particular date of the particular BranchCode But the result is NULL