Hi all,
I'm fairly new at postgres sql so bare with me,
I have been tasked to query a database to get the totals of entries for something, divide it by 50,000, round up the result and then output to csv.
I've managed to get this far, which is showing the totals I need:
SELECT context_trial_name, COUNT(*) FROM status.page GROUP BY context_name;
I just need to do the rest and I'm getting confused as to how?
Thanks in advance....
I'm fairly new at postgres sql so bare with me,
I have been tasked to query a database to get the totals of entries for something, divide it by 50,000, round up the result and then output to csv.
I've managed to get this far, which is showing the totals I need:
SELECT context_trial_name, COUNT(*) FROM status.page GROUP BY context_name;
I just need to do the rest and I'm getting confused as to how?
Thanks in advance....