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.
Oct 17th, 2018, 11:27pm
News: If you would like to register contact the forum admin
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 2618 times)
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
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

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
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