Netenrich Inc. Interview Question

SQL query to fetch last record from table