+ Reply to Thread
Results 1 to 2 of 2

Thread: question in wrkqry

  1. #1
    Analyst mksamy_99 How long am I stuck at *ZEROS? mksamy_99's Avatar
    Join Date
    Jul 2005
    Location
    India
    Posts
    127
    Rep Power
    503

    question in wrkqry

    hi all.
    Is it possible to do calculation of percentage of a given field through wrkqry?

    muthu

  2. #2
    Analyst DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks If you were taller I'd think you were YODA. DeadManWalks's Avatar
    Join Date
    Mar 2006
    Location
    Springwater
    Posts
    933
    Rep Power
    2208

    Re: question in wrkqry

    I think this is what you mean.

    PHP Code:
                                  Define Result Fields  
                                                        
     Type definitions using field names 
    or constants and
       
    Operators:  +, -, *, /, SUBSTR, ||, DATE...      
                                                        
     
    Field       Expression                         Colu
     PERCENT     
    (cbhboy/cbhand) * 100 
    When you run it you get this;
    PHP Code:
     Sku Number  On hand B.O.Y.  On hand            PERCENT  
         13607            3           3             100.00  
         13615            0           0   
    +++++++++++++++++ 
         
    13623       299086-     305007-             98.06  
         13631            0           0   
    +++++++++++++++++ 
         
    13649            0           0   +++++++++++++++++ 
    The '++++' if for the devide by zero.

+ Reply to Thread

Similar Threads

  1. Replies: 8
    Last Post: May 6th, 2008, 03:05 AM
  2. sql question - declare cursor
    By sever in forum SQL
    Replies: 4
    Last Post: January 18th, 2007, 10:21 AM
  3. Replies: 1
    Last Post: September 1st, 2006, 05:25 AM
  4. Wrkqry
    By mksamy_99 in forum RPG/RPGLE
    Replies: 1
    Last Post: March 23rd, 2006, 07:35 AM
  5. in wrkqry translate -1 to '負' .....
    By pl421 in forum RPG/RPGLE
    Replies: 4
    Last Post: February 23rd, 2006, 10:23 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts