[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] Subselect
- Subject: Re: [sqr-users] Subselect
- From: "George Jansen" <GJANSEN@aflcio.org>
- Date: Thu, 08 Jul 2004 08:22:14 -0400
- Delivery-date: Thu, 08 Jul 2004 07:24:19 -0500
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
You could turn your scalar subquery into an in-line view and avoid the
problem. The following uses standard Oracle data-dictionary views to
query from and runs nicely.
Begin-Program
Begin-Select
T.table_name &tn
B.id &id
let $id = to_char(&id)
let $line = &tn || ' ' || $id
show $line
>From user_tables t,
(SELECT Sum(column_id) AS id
FROM user_tab_columns) b
End-Select
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users