i have this code to test my query to count the registered users based on the current date
sorry about my logic on code im starting to learn yet
if any good suggestion please comment below i will
really appreciate it as a part of my learning process
@Ci as long as created_at have index (i guess) this should be fine. Without index it can start make problems on higher count of records. If your code works as you showed (looks fine for me) you should not be much worried about. Its pretty fine.
Alternative solutions for this (as long as index for created_at)