At the end of trade, ONGC commanded a market value of Rs 2,89,047 crore (Rs 2,890.47 billion).
This is about Rs 4,428 crore (Rs 44.28 billion) more than TCS's m-cap of Rs 2,84,619 crore (Rs 2,846.19 billion).
ONGC scrip ended 0.82 per cent higher, while TCS lost 1.02 per cent on the BSE.
Reliance Industries with a market capitalisation of Rs 2,71,904 crore (Rs 2,719.04 billion) was at third place, followed by ITC (Rs 2,66,133 crore or Rs 2,661.33 billion) and Coal India (Rs 1,88,543 crore or Rs 1,885.43 billion).
Market
Markets end tad higher amid range-bound trades
Oil Min proposal on gas prices rejected
Shale gas policy: Big companies stand to lose
Markets ends at highest level since Jan 2011
Markets end tad higher amid volatility