Wipro interview question

Swap between two numbers without using third variable. Fetch 2 last record from database