Changes between Version 28 and Version 29 of AdvancedReports


Ignore:
Timestamp:
03/10/22 21:33:42 (2 years ago)
Author:
191215
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v28 v29  
    103103        *,
    104104        (
    105                 select to_char(
    106                         (
    107                                 select
    108                                         count(*)
    109                                 from artists a
    110                                 where
    111                                         a.admin_verified_at is not null and
    112                                         a.artist_type_id = at1.id
     105        select to_char(
     106                (
     107                        select
     108                                count(*)
     109                        from artists a
     110                        where
     111                                a.admin_verified_at is not null and
     112                                a.artist_type_id = at1.id
    113113                        )
    114114                        /
    115115                        (
    116                                 select count(*) from artists a
    117                                 where
    118                                         a.admin_verified_at is not null
     116                        select
     117                                count(*)
     118                        from artists a
     119                        where
     120                                a.admin_verified_at is not null
    119121                        )::numeric ,
    120122                        'fm00D00%'
     
    124126                select to_char(
    125127                        (
    126                                 select
    127                                         count(*)
    128                                 from artists a
    129                                 where
    130                                         a.admin_verified_at is not null and
    131                                         a.artist_type_id = at1.id and
    132                                         a.manager_id is not null
     128                        select
     129                                count(*)
     130                        from artists a
     131                        where
     132                                a.admin_verified_at is not null and
     133                                a.artist_type_id = at1.id and
     134                                a.manager_id is not null
    133135                        )
    134136                        /
    135137                        (
    136                                 select count(*) from artists a
    137                                 where
    138                                         a.admin_verified_at is not null
     138                        select
     139                                count(*)
     140                        from artists a
     141                        where
     142                                a.admin_verified_at is not null
    139143                        )::numeric * 100,
    140144                        'fm00D00%'
     
    155159                        (
    156160                        case when (
    157                                                         select
    158                                                                 count(*)
    159                                                         from artists a
    160                                                         join offers o on o.artist_id = a.user_id
    161                                                         where
    162                                                                 a.admin_verified_at is not null and
    163                                                                 a.artist_type_id = at1.id
    164                                                 ) != 0 then
     161                                        select
     162                                                count(*)
     163                                        from artists a
     164                                        join offers o on o.artist_id = a.user_id
     165                                        where
     166                                                a.admin_verified_at is not null and
     167                                                a.artist_type_id = at1.id
     168                                  ) != 0 then
    165169                                (
    166170                                        select
     
    195199                        (
    196200                        case when (
    197                                                         select
    198                                                                 count(*)
    199                                                         from artists a
    200                                                         join offers o on o.artist_id = a.user_id
    201                                                         where
    202                                                                 a.admin_verified_at is not null and
    203                                                                 a.artist_type_id = at1.id
    204                                                 ) != 0 then
     201                                        select
     202                                                count(*)
     203                                        from artists a
     204                                        join offers o on o.artist_id = a.user_id
     205                                        where
     206                                                a.admin_verified_at is not null and
     207                                                a.artist_type_id = at1.id
     208                                ) != 0 then
    205209                                (
    206210                                        select
     
    235239                        (
    236240                        case when (
    237                                                         select
    238                                                                 count(*)
    239                                                         from artists a
    240                                                         join offers o on o.artist_id = a.user_id
    241                                                         where
    242                                                                 a.admin_verified_at is not null and
    243                                                                 a.artist_type_id = at1.id
    244                                                 ) != 0 then
     241                                        select
     242                                                count(*)
     243                                        from artists a
     244                                        join offers o on o.artist_id = a.user_id
     245                                        where
     246                                                a.admin_verified_at is not null and
     247                                                a.artist_type_id = at1.id
     248                                  ) != 0 then
    245249                                (
    246250                                        select
     
    275279                        (
    276280                        case when (
    277                                                         select
    278                                                                 count(*)
    279                                                         from artists a
    280                                                         join offers o on o.artist_id = a.user_id
    281                                                         where
    282                                                                 a.admin_verified_at is not null and
    283                                                                 a.artist_type_id = at1.id
    284                                                 ) != 0 then
     281                                        select
     282                                                count(*)
     283                                        from artists a
     284                                        join offers o on o.artist_id = a.user_id
     285                                        where
     286                                                a.admin_verified_at is not null and
     287                                                a.artist_type_id = at1.id
     288                                ) != 0 then
    285289                                (
    286290                                        select