Media.net Interview Question

Linked list,SQL query to duplicate records