Auditing an Oracle database for security issues is very important. PeteFinnigan.com provides all of the information and tools that you will need Click here for details of PeteFinnigan.com Limited's detailed Oracle database security audit service Click here for details of PeteFinnigan.com Limited's Oracle Security Training Courses
Cookie Policy:We only use essential cookies on small sections of this website. For details see here.

Welcome, Guest. Please Login.
Nov 20th, 2017, 1:39am
News: Welcome to Pete Finnigan's Oracle security forum
Home | Help | Search | Members | Login
   Pete Finnigan's Oracle Security Forum
   Oracle General
   General Oracle questions
(Moderator: Pete Finnigan)
   it keeps coming up missing expression in line 1
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Send Topic | Print
   Author  Topic: it keeps coming up missing expression in line 1  (Read 2401 times)
butterflyTee
PeteFinnigan.com Newbie
*



I love YaBB 1G - SP1!

   
View Profile |

Posts: 1
it keeps coming up missing expression in line 1
« on: Oct 28th, 2006, 12:50am »
Quote | Modify

Here is the question: Provide a SQL statement that displays each SHIPSTATE along with the number of orders shipped to each state.  Include only those states that more than 3 orders were shipped to.
 
here is my answer:
SELECT <shipstate>, <order_to_state>  
FROM <tablename>  
GROUP BY <state>  
HAVING COUNT(<order_to_state>)>3
 
 Huh
IP Logged
Pages: 1  Reply | Notify of replies | Send Topic | Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright 2000-2004 Yet another Bulletin Board