Hello,
I've been working with databases like Oracle, Sybase, SQL Server, Teradata, Db2 for the last 20 years. Will be able to write SQLs as per your requirements, if given an opportunity. The duration is not mentioned since, the quantum of work is not known.
Regards,
Chidambar