|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
looking at the textbook i have the correct syntax i think but it's just not coming out right.
here it is: select room.r_type, COUNT(*) from room, hotel where hotel.h_name='Windsor' and hotel.hotel_no=room.hotel_no order by room.r_type; i get the error message ORA-00937:not a single -group group function so i would greatly appreciate any help ![]() |
|
#2
|
|||
|
|||
|
Code:
select room.r_type, COUNT(*) from room, hotel where hotel.h_name='Windsor' and hotel.hotel_no=room.hotel_no group by room.r_type order by room.r_type; |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > whats wrong with my sql ?? (BASIC) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|