sql - Calling the same function multiple times in select -


i have function , want see return value using different parameters side side. example output should be:

div04 div05 ...  10    13   ... 

here code looks like:

select      top10_fn_getmeasure006('04', '2012-01-01', '2012-12-31') div04     top10_fn_getmeasure006('05', '2012-01-01', '2012-12-31') div05 

i getting syntax error , cannot life of me figure out why.

thanks in advance!

you need separate items on "select" list comma:

select      top10_fn_getmeasure006('04', '2012-01-01', '2012-12-31') div04 ,   top10_fn_getmeasure006('05', '2012-01-01', '2012-12-31') div05 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -