|
I believe that what you are looking for is something like: select case When exch = 'JA' then '22' When exch = 'JB' then '24' else exch End as exchout, im >From Murali Group by exchout However that Group by is blowing me grief Rob Berendt -- Group Dekko Services, LLC Dept 01.073 PO Box 2000 Dock 108 6928N 400E Kendallville, IN 46755 http://www.dekko.com murali dhar <hydchap1@xxxxxxxxx> Sent by: midrange-l-bounces@xxxxxxxxxxxx 02/24/2004 09:31 AM Please respond to Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx> To Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx> cc Fax to Subject QUERY! Hi, I have written a query which is generating the following PF. ACCOUNT EXCH INITIAL MARGIN(IM) JJ2102201 22 57,301,710.00 JJ2102201 JA 10.00 JJ2102201 JB 20.00 JJ2102201 22 83,190,000.00 Now I need to add (22 & JA )IM's and (24 & JB) IM's to produce the report as follows: ACCOUNT EXCH INITIAL MARGIN JJ2102201 22 57,301,720.00 JJ2102201 22 83,190,020.00 Tried with same query but could not succeed ,seems my query may not help to achieve this as required , can some one post pointers? any easier solutions , do i have to call RPG to do this modification? TIA, murali. __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.