Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Trying to count on 2 columns

Hi,

Under APEX 24.2 I try to create a stacked bar chart. I want a chart counting NOMBRE_ADULTES and a chart counting NOMBRE_ENFANTS. But the selects of the two series give me the same count !

First serie :

select TO_CHAR(trunc(date_reservation,'mm'), 'DD/MM/YYYY') month       , count(VE_RESERVATION.NOMBRE_ADULTES)
     from VE_RESERVATION
    group by trunc(DATE_RESERVATION,'mm') order by 1

Second serie :

select TO_CHAR(trunc(date_reservation,'mm'), 'DD/MM/YYYY') month       , count(VE_RESERVATION.NOMBRE_ENFANTS)
     from VE_RESERVATION
    group by trunc(DATE_RESERVATION,'mm') order by 1

Why does it give me that same results, because in the table they are different ?

Best regards.

This post has been answered by Solomon Yakobson on Mar 31 2025
Jump to Answer

Comments

Post Details

Added 4 days ago
9 comments
111 views