Changes between Version 7 and Version 8 of Complex DB Reports


Ignore:
Timestamp:
02/07/26 17:07:05 (21 hours ago)
Author:
231035
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Complex DB Reports

    v7 v8  
    122122  Period p
    123123)
     124
    124125ReviewsByUser <-
    125126γ
     
    132133  Period p
    133134)
     135
    134136AppointmentsByUser <-
    135137γ
     
    162164 ⟕ (u.user_id = f.user_id) FavoritesByUser f
    163165)
     166
    164167ActivityWithDefaults <-
    165168π
     
    186189  favorites_saved_all_time > 0
    187190(ActivityWithDefaults)
     191
    188192ScoredUsers <-
    189193π
    190   *,
     194  user_id,
     195  username,
     196  email,
     197  name,
     198  surname,
     199  listings_created,
     200  reviews_left,
     201  avg_rating_left,
     202  appointments_total,
     203  appointments_done,
     204  appointments_no_show,
     205  appointments_cancelled,
     206  favorites_saved_all_time,
    191207  activity_score :=
    192208    listings_created * 5 +
     
    205221      reviews_left DESC
    206222(ScoredUsers)
     223
    207224Result <-
    208225topK_{K := 10}
     
    229246  )
    230247)
    231 
    232248
    233249}}}