Create selectChangeLog.sql

select query with pivot functionality