Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dsa09
Starting Member
1 Post |
Posted - 2008-02-24 : 22:53:16
|
| SQL> select diner,odate,sum(serves.price) from ordera3, serves where diner='JANUSZ' and odate='14-jan-2007';select diner,odate,sum(serves.price) from ordera3, serves where diner='JANUSZ' and odate='14-jan-2007' *ERROR at line 1:ORA-00937: not a single-group group function |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-02-24 : 22:59:52
|
| Looks like oracle code. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-02-25 : 04:04:26
|
quote: Originally posted by dsa09 SQL> select diner,odate,sum(serves.price) from ordera3, serves where diner='JANUSZ' and odate='14-jan-2007';select diner,odate,sum(serves.price) from ordera3, serves where diner='JANUSZ' and odate='14-jan-2007' *ERROR at line 1:ORA-00937: not a single-group group function
You need to use group by diner,odatePost oracle questions at www.orafaq.comMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|