SQL设置01.01作为财政年度的开始

时间:2016-02-04 12:11:47

标签: mysql sql report

我的2 joins sql reportcurrent year中的每位与会者提供了关于工作日的信息。我们在one column carhire 中获取数据,因此我必须合并结果。 第一次加入是uscarhiringeuropecarhiring。现在,我可以显示每个用户的结果,但仅显示not(开始current year)中所有年份的所有结果01.01。以下是我如何合并two joins

'CASE WHEN ISNULL(uscarhire.uscarhire) THEN
                            CASE WHEN ISNULL(europe.europecarhiring) THEN
                              0
                            ELSE
                              europe.europecarhiring
                            END
                          ELSE
                            CASE WHEN ISNULL(europe.europecarhiring) THEN
                              uscarhire.uscarhire
                            ELSE
                              uscarhire.uscarhire + europe.europecarhiring
                            END
                          END',

非常感谢任何帮助。

0 个答案:

没有答案