SQL Developer (MOSC)

MOSC Banner

how to add a select statement to group by

edited Jan 3, 2024 1:53PM in SQL Developer (MOSC) 4 commentsAnswered ✓

Hi all, how can I rewrite sql query so that I can use group by, the select statements are causing a problem.


Select id, sum(cost) cost, count(units) units, owner_name, Period, (select sysdate from dual) now_date from employee

group by period, owner_name, (select sysdate from dual)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center