문제

I have the a function and I want to see its return value using different parameters side by side. For example the output should be:

div04 div05 ...
 10    13   ...

Here is what my code looks like:

Select 
    Top10_fn_getMeasure006('04', '2012-01-01', '2012-12-31') as Div04
    Top10_fn_getMeasure006('05', '2012-01-01', '2012-12-31') as Div05

I am getting a syntax error and cannot for the life of me figure out why.

Thanks in advance!

도움이 되었습니까?

해결책

You need to separate the items on your "select" list by a comma:

Select 
    Top10_fn_getMeasure006('04', '2012-01-01', '2012-12-31') as Div04
,   Top10_fn_getMeasure006('05', '2012-01-01', '2012-12-31') as Div05
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top