cancel
Showing results for 
Search instead for 
Did you mean: 

strange behavior with views and proxy-tables

Former Member
2,372

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

Accepted Solutions (0)

Answers (0)