Home » SQL & PL/SQL » SQL & PL/SQL » Missing Select Keyword
Missing Select Keyword [message #6985] Wed, 14 May 2003 13:28 Go to next message
Sarah
Messages: 15
Registered: June 1999
Junior Member
Hi,

I am trying to run a select statement in Toad (Oracle) that I previously ran in MS Access. I am getting stuck with the syntax conversion between the two.

In Access part of my select statement included the creation of a new column:

[[TotalReleased]]/[[TotalEffort]] as CPUE

In Toad I get a missing expression error. When I change the [[]] to () I get a missing select keyword error.

Is there a division operator that I am missing?

Any help is appreciated!

S
Re: Missing Select Keyword [message #6986 is a reply to message #6985] Wed, 14 May 2003 13:33 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Any of the following are valid:

(TotalReleased) / (TotalEffort) as CPUE
((TotalReleased) / (TotalEffort)) as CPUE
TotalReleased / TotalEffort as CPUE
(TotalReleased / TotalEffort) as CPUE


If you still get an error, please post the complete SQL.
Previous Topic: Sequence Value Retrieval
Next Topic: ALTER TABLE table_name MODIFY column_name VARCHAR(200)
Goto Forum:
  


Current Time: Tue May 07 07:51:10 CDT 2024