While Tandon secured over 2.04 lakh votes, Joshi polled 1.63 lakh votes, the district election office department officials said.
BSP nominee Akhilesh Das Gupta was placed at the third spot with 1.33 lakh votes, whereas SP nominee and former Miss India Nafisa Ali got only 61,457 votes.
In Lucknow, the prestige of the BJP was at stake as the party stalwart and former Prime Minister Atal Bihari Vajpayee never lost any election from here since 1991.
Last time Vajpayee won this seat by a huge margin of 2.18 lakh votes which was 56 per cent of the total votes polled.
This time after Vajapyee opted out of electoral politics, there was a mad scramble among political parties and candidates to claim his legacy.
As many as 41 candidates including 25 independents were in the fray from the seat.
The SP, which initially decided to field actor Sanjay Dutt from here, later roped in Nafisa Ali, after he was denied permission to contest election by the Supreme Court.