on 2014 Nov 04 8:31 AM
SQL Anywhere 16
Hello, I have a strange behavior with the following select:
select min(a.LS2MENGE), a.ls2pkey, b.LS1PKEY from Tabelle1 as a, Tabelle2 as b where a.ls2pkey = b.ls1pkey
Tabelle2 is a Proxy-Table. When I execute this query, all is ok.When I make a view from this query:
create view ViewTest as select min(a.LS2MENGE), a.ls2pkey, b.LS1PKEY from Tabelle1 as a, Tabelle2 as b where a.ls2pkey = b.ls1pkey
and execute the view
Select * from viewTest
I get the following error : Invalid use of an aggregate function (-150).
I do not understand, why this different behavior happens. Maybe someone can give me an hint. Thanks in advance.
Erich
Request clarification before answering.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.