Final answer:
Andy Bernard quits on his first day at the Scranton branch in S3E8 of 'The Office', but Michael Scott fires him before his resignation takes effect.
Step-by-step explanation:
In S3E8 "The Merger" of The Office, the character from Stamford who quits on their first day in Scranton and is subsequently fired a minute later is Andy Bernard. During this episode, Andy becomes frustrated with his new environment and decides to quit.
However, before he can leave, Regional Manager Michael Scott fires him, rendering his quit ineffective.