|
-
Nov 14th, 2006, 01:14 PM
#1
Thread Starter
Hyperactive Member
why's my SQL statement invalid?
I'm using this statement on the wonderful DB2 (on an AS400 ) and it says that the calculated expression is invalid so what's the correct way to write this:
select order_num, SUM(num_ordered) * quoted_price as order_total
from order_line order by order_num
I tried it with parenthesis around the whole thing and without the as statement and neither way worked either
I tried to end process on Visual Studio 2005
but PETA stopped me saying it's smart enough
to be a living creature 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|