on 11-22-2011 3:35 PM
Hi
It is possible insert select statement in where clause? I'm using universe design end I want to insert select statement in where clause (a nested subquery).
For example:
select basic.field1
from basic
where basic.employee in{select employee from table_distinct where user='x'}
Yes you can, try this
select basic.field1 from basic where basic.employee in (select employee from table_distinct where user='x')
user is a field in table_distinct right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,It is right.But the problem is: If I go in Query Panel, sql generated doesn't use the previous syntax,but universe designer uses a inner join...What do I make to generate: {select basic.field1 from basic where basic.employee in (select employee from table_distinct where user='x')} in automatic way???
Sorry for my english
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.