On 18.4.2014 11:10, Thomas Beckmann wrote:
> Hi Josef,
> 
> what I figured out to be quite handy, is to write something like:
> 
> select
>   MASTER.*,
>   cast(left(S, 10) as bigint),
>   cast(substring(S from 10 for 10) as bigint),
>   cast(right(S, 10) as bigint),
> from (SELECT MASTER.ID,
>     (SELECT
>       lpad(SUM(VALUE1), 10) ||
>       lpad(MAX(VALUE2), 10) ||
>       lpad(MIN(VALUE1), 10)
>      FROM DETAIL
>      WHERE DETAIL_ID=MASTER.ID) as S
>   FROM MASTER
>   WHERE NAME STARTING WITH 'A') s
> join MASTER m on m.ID = s.ID
> 
> Thomas

Interesting approach. I will consider it, maybe it would be sufficient
for my needs.

Thanks!

Josef



------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    firebird-support-dig...@yahoogroups.com 
    firebird-support-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    firebird-support-unsubscr...@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Reply via email to