Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,487 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,851 people online right now. Registration is fast and FREE... Join Now!




ORA-00936

 
Reply to this topicStart new topic

ORA-00936, missing expression

straygrey
post 9 Oct, 2008 - 04:32 AM
Post #1


New D.I.C Head

*
Joined: 4 Oct, 2008
Posts: 7


My Contributions


The following SQL gives an ORA-00936: missing expression error when run
CODE

select     MemNumber,
        Turnover
from
(
        select mem_number MemNumber,
        sum(trans_turnover) Turnover
from members
join transact
on mem_number = trans_code
where Trans_date between '&Start' and '&End'
and mem_barred = 0
group by     mem_number
        order by turnover desc
)
where rownum <=200
/


Please tell me how I fix it.
User is offlineProfile CardPM

Go to the top of the page


Hary
post 10 Oct, 2008 - 01:52 AM
Post #2


D.I.C Head

**
Joined: 23 Sep, 2008
Posts: 170



Thanked 12 times
My Contributions


Change the selections to:
CODE

        select mem_number AS MemNumber,
        sum(trans_turnover) AS Turnover
User is offlineProfile CardPM

Go to the top of the page

straygrey
post 10 Oct, 2008 - 03:06 AM
Post #3


New D.I.C Head

*
Joined: 4 Oct, 2008
Posts: 7


My Contributions


Thanks for the suggestion but that did not fix the problem. I still get the ORA-00936 error.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 12:03AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month