I have a table which looks like this:
Current Table: 'original_table'
col_1 col_2 col_3
0 Non-Saved www.google.com 10
1 Non-Saved www.facebook.com 20
2 Non-Saved www.linkedin.com 20
3 Saved www.Quora.com 30
4 Saved www.gmail.com 40
Can I derive a table such as the following using SQL query?
col_1 col_2 col_3
0 Non-Saved www.google.com 50
www.facebook.com
www.linkedin.com
1 Saved www.Quora.com 70
www.gmail.com
Basically I am expecting a table to have DISTINCT values from col_1, all corresponding values from col_2 and SUM(col_3) for corresponding values from col_3 in one row.
Additional context: I am running the SQL query in iPython notebook.