howtoeasilycreatedbuserfunctionbydbqueryanalyzer