How I check in group by query the group change

How I check in group by query the group change
Hi master
Sir I have master detail table
This is my query
select rownum,chartofacc.accid,title,nvl(drbal,0),nvl(crbal,0),
(select case when nvl(sum(debit),0)-nvl(sum(credit),0)>0 then
nvl(sum(debit),0)-nvl(sum(credit),0)
else
0
end mfadrttt
from voudetail where voudetail.accid=chartofacc.accid) as mfadr,
(select case when nvl(sum(credit),0)-nvl(sum(debit),0)>0 then
nvl(sum(credit),0)-nvl(sum(debit),0)
else
0
end mfacrttt
from voudetail where voudetail.accid=chartofacc.accid) as mfacr
,nvl(debit,0),nvl(credit,0),voumaster.entdate,voumaster.vno from chartofacc ,accbal,voudetail,voumaster where chartofacc.accid=accbal.accid(+) and chartofacc.accid=voudetail.accid(+) and voumaster.vno=voudetail.vno order by chartofacc.accid,voumaster.entdate,voudetail.VNO;
Sir I need add opbal from master section to debit in detail section when new group start only after adding I use that column for accumulative total or running balance
If I get any method when group change system give me any key or indication then I use
Please give me idea in both field oracle sql and oracle report 6i
Thank
aamir

Hi,
Please send tables structures and sample data from that tables. And, of course what should be the output. :) Just sending your query won't help us to find a solution.
Peter D.

Similar Messages

  • How to check my job name from the database...

    I have written one job scheduler which is as follows :
    SQL> ED
    Wrote file afiedt.buf
    1 DECLARE
    2 X NUMBER;
    3 JobNumber NUMBER;
    4 BEGIN
    5 SYS.DBMS_JOB.SUBMIT
    6 (
    7 job => X
    8 ,what => 'scott.SPLITSMS;'
    9 ,next_date => SYSDATE+1/1440
    10 ,interval => 'SYSDATE+1/1440 '
    11 ,no_parse => FALSE
    12 );
    13 JobNumber := to_char(X);
    14* END;
    15 /
    PL/SQL procedure successfully completed.
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    how to check my job name from the database...
    what is the command used to check the job_name ????
    and how can i ensure that my job scheduler is running properly...???
    please help ........my dear friends.....!

    957029 wrote:
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
    how to check my job name from the database...
    what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
    and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
    if you are on 11g, you should consider using DBMS_SCHEDULER.

  • I have a .mac family account, a personal .mac account and separate iTunes id I use for my work iPhone and the associated apps.  How do I keep them separate in the iCloud change?

    I have a .mac family account, a personal .mac account and separate iTunes id I use for my work iPhone and the associated apps.  How do I keep them separate in the iCloud change?

    Welcome to the Apple community.
    Could you tell us a little more about what you want to do. Bear in mind that iTunes has nothing to do with your iCloud account.

  • HT2204 I changed my itunes email and password on my computer and now my phone says the password is wrong. How do I make my phone register the new changes?

    I changed my itunes email and password on my computer and now my phone says the password is wrong. How do I make my phone register the new changes?

    Try logging out of your account on the phone by tapping on your id in Settings > iTunes & App Store and then log back in with the updated id so as to 'refresh' the acccount on it

  • How to check for missing fields in the file?

    Hi friends,
    I have a file to file scenario in which if any of the fields have a blank value, i have to put the file back in the source folder. If none of the fields are missing, the scenario should work normally.
    Can anybody tell me <b>how can i check for the field lengths</b> and if any of the fields are blank, <b>how do i send it back to the original folder.</b>
    Waiting for your responses,
    Divija.

    Hi Divija,
    >><i>how can i check for the field lengths</i>
    Since you need to basically check if the field has a value or not, i dnt think you need to check for the length of the field. Instead, you can use any one of the booloean functions available in the graphical mapping editor to check if the field has a value or not(filed value true or false)
    >><i>how do i send it back to the original folder.</i>
    You can maintain a flag variable in the target structure such that if any of the source fields donot have values, the flag's value becomes 1 else it remains 0.
    Now, you can check if the value of flag is equal to 1/0 in the bpm and accordingly send the data.
    If in case, you donot want the flag to come in the target file that is loaded/sent from the bpm in the end, i think even tat can be taklen care of.
    You can create two receiver communication channels and define one file adapter in each such that one has the destination as the actual target directory and the other has the original source directory as the destination.
    Regards,
    Sushumna

  • How to check wwheter two files are the same?

    Hi,
    I need to check wheter two files are the same. Their names and paths may be different. How to do that? Do u have any links / examples?
    Important notice: Files used in the application will be big (ie 1, 2gb)

    Comparing a hash, if you have to calculate it each
    time, is bound to be slower than a byte by byte, or
    character by character compare.
    This kind of comparison is used mostly in things like
    content management systems, when a new file of data
    is checked to see if it's identical to a file already
    entered, hash values being stored for each file
    already in the system.
    And comparing the hashes can only prove the files are
    different, if the hashes are equal that doesn't
    absolutely guarantee that the files are the same.
    Normally you'd confirm a matching hash by actually
    comparing file content.Depends on how good your hash is..but in general...yes. I was only saying that it's faster if you're always maintaining a has of the file.

  • How can a make avi files without the length changing?

    I'm hoping someone can help me with this. I'm posting it first here, as the process also involves FinalCut. If there's a better place to get an answer, maybe someone could streer me in that direction.
    I'm doing some subtling which will then be coded onto professional tapes using FCP. I don't have the equipment (digibeta machines) to do that process at my end, so I'm sending the files to a studio and they're going to do the rest for me.
    I have software that'll let me lay down subtitles and then export files with time code, but the software previews with avi files. After messages from the studio telling me that the subtitles were falling out of sync, I finally realized that the avi files I had made from the 30 minute DVD screeners were 4 seconds shorter in length than the material on the screener. I made more and more avi files to double check, each one came out 4 seconds shorter than it should have been. So that's my problem.
    Does anyone know of a way to convert DVD (or VOB) files to avi without losing any time? Alternatively, does anyone know of a program for subtitling that works straight from DVDs? (I looked into Belle Nuit Subtitler, but it's impossible to tell how it works without paying for it and waiting three or four days for the order to manually process.)
    Thanks for any help and sorry my question is so convoluted.

    The best solution to my particular problem seemed to be putting the avi file on the timeline in FCP, selecting it, the choosing "Duration" from the "Modify" menu and resizing it to the length it should have been.
    I'm actually getting a friend to adjust most of the files in Premiere with his PC as I'm still on a G4 PowerBook and the rendering time for the avi files before I can manipulate them was half a day each. (Premiere has a similar feature.)
    Thanks again to Andy for the MPEG Streamclip tip...it looks like it'll be useful in the future, and it's free! Cinematize also looked like it could have helped, but the demo mode only let me test 10 second exports at a time and that wasn't really enough for me to tell if the length changed or not. Didn't buy it this time around.
    I also get the point that there must be a lot of people who use the term "urgent" to mean "hurry up and help me, I don't have time to read" with prolific good Samaratians no doubt tired of being bossed around in that way.
    Fair enough.
    Anyway, the "Duration" option within FCP is one way to fix DVD burns and other format conversions that come out with different time spreads from the original. Rendering can take time on slower Macs though.

  • How pricing condition be auto updated if the user changes price in PO ?

    Hi
    Is there any configuration setting on how pricing condition can be automatically updated if the user changes price in the purchase order ?
    Thanks
    Maruthi

    Hi Maruthi,
    As far as I know, POs (like many other documents in SAP) are "snapshots" of data as it was at the time of the document creation.  This snapshot has no direct link to master data, so it will not change unless you go to the document and manually change/refresh whatever data you need updated. 
    Even if there were a way to link your PO to master data to auto-update I don't see how any change on a PO could go backwards and change master data.  Pricing works the other way around - the PO takes the price from the condition records, not the records from the PO.
    Hope this helps,
    J

  • How to check which administrator had modified the AD Group properties

    Dear Sir,
    Some one had modified a Distribution group (removed email address). I checked it in group properties and last modified was on 22/09/14. How to find which administrator had modified.
    I dont have access to domain controller. Is there any way to find it?
    thanks in advance.
    Karan

    Hello,
    this will be logged on DCs and also auditing must be configured correct that this will show up in the event viewer from a DC.
    Without access to the DC contact your administrators and let them find out.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • How to check for latest Apps in the App Store

    Is there a way to check for the latest apps. I only see options to sort by name and by best-sellers. If there is no way how can i request this feature. Thanks.

    As I understand the Mac App Store, that sort is already done for you in Features. The first category on the Features page is New and Noteworthy, with the link to See All.
    Dah•veed

  • How to check whether current time satisfies the schedule?

    I am working on a task, which is opposite of cron tab. My application is in groovy but can call all Java api. Can you please provide some pointers?
    User is allowed to schedule a rule to be executed the way crontab gives the options. For example he wants the rule to be executed from Monday to Friday from 8 am to 5 pm.
    I can’s schedule in crontabe or Quartz. At run time I have to match, whether the current time satisfy the time condition entered by user.
    I may have to store this information in the database the way we put in the cron. Eg. my tables will have following
    Id|| Policy Id|| seconds|| minutes|| hours|| Day|| Date|| month|| year
    1 || 5 || 1     || 1 || 8-17 || M-F||? || * ||*
    Now while my code is getting executing, how can I match whether the current time matches the condition mentioned above.
    Thanks in advance.

    [Using Span|http://tus.svn.sourceforge.net/viewvc/tus/tjacobs/util/] would make this easy

  • How to check if a field in the table is same in all rows??

    Hi Folks,
    Is there a feature in abap where we can check if a field in a table is same in all rows.
    Thanks,
    Matt

    This can be easily self-programmed
    read itab index 1.  "get first row
    "now check if exeists any entry with different value
    read itab with key field1 ne itab-field1 transporting no fields.
    if sy-subrc = 0.
      "not all rows have the same value
    else.
      "all rows have the same value
    endif.
    Regards
    Marcin
    Right now I noticed that using NE operator is not allowed in READ TABLE statement, but you can do simple loop instead
    read itab index 1 into l_field1.  "get first row
    loop at itab where field1 ne l_field1.
       flag = 'X'.
       exit.
    endloop.
    if flag = 'X'.
      write: 'some fields are not equal'.
    endif.
    Edited by: Marcin Pciak on Oct 6, 2009 5:35 PM

  • How to find out to which query the query-elements in a transport belong?

    Hi specialists,
    the topic should already say everything.
    I've got a changeable transport-request with several query-elements in it.
    But I haven't any idea to which query this elements belong. Where do I need to look-up that information?

    The excat table is not known to me..try finding in the following tables:
    RSZCALC                       
    RSZCEL                        
    RSZCHANGES                    
    RSZCOMPDIR                   
    RSZCOMPIC                     
    RSZCONTROLTEXTS               
    RSZELTATTR                    
    RSZELTDIR                     
    RSZELTPRIO                    
    RSZELTPROP                    
    RSZELTTXT                     
    RSZELTTXT_MULTI               
    RSZELTXREF                    
    RSZGLOBV                      
    RSZIELPICMON                 
    RSZOPRATOR                    
    RSZOPRATXT
    Thanks..
    Shambhu

  • How to check total INBOX size of the user mailboxes

    Hi All,
    I issued the following command and the output as shown:
    /opt/SUNWmsgsr/sbin/mboxutil -l -p "user/*@a.com/INBOX"
    msgs Kbytes last msg partition quotaroot mailbox
    121 10731 2008/08/31 12:24 primary 51200 user/[email protected]/INBOX
    0 0 2008/09/01 09:57 primary 51200 user/[email protected]/INBOX
    88 17276 2008/08/31 12:24 primary 51200 user/[email protected]/INBOX
    2 561 2008/09/01 18:38 primary 51200 user/[email protected]/INBOX
    10 587 2008/09/01 14:30 primary 51200 user/[email protected]/INBOX
    0 0 2008/09/01 14:38 primary 51200 user/[email protected]/INBOX
    42 16649 2008/08/31 10:01 primary 51200 user/[email protected]/INBOX
    109 31564 2008/08/31 20:43 primary 51200 user/[email protected]/INBOX
    59 28990 2008/08/31 10:01 primary 51200 user/[email protected]/INBOX
    I would like to know total size of INBOX of a.com domain. Please help if you have idea.
    Following is my message server version:
    Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)
    libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006)

    Yap wrote:
    I would like to know total size of INBOX of a.com domain. Please help if you have idea.You can use the awk command to sum up the individual sizes e.g.
    /opt/SUNWmsgsr/sbin/mboxutil -l -p "user/*@a.com/INBOX" | awk '{ sum += $2; } END { print "Total Size (Kb): " sum; }'Regards,
    Shane.

  • How to perform an autocheck event when the field changes in ALV

    Hi everybody,
    how can I build an event or something which would make my 'wa_fieldcat-checkbox' set to 'X' (auto checked) everytime an editable field in the ALV is changed manually by the user?
    I want to perform this task in order to avoid asking the user to manually check the "check box" field everytime wants to make a change, since after the user's changes in the ALV I want to sort the itab with the check box column of the edited items.
    Thanks,
    Denis M

    Hi Denis,
    For ALV a FM REUSE_ALV_GRID_DISPLAY is available.
    The FM, has events as importing option.
    SLIS_T_EVENT
    EVENT - Basically this is the FM to handle Event's. When the user needs to do
    some event operation like when double clicking the a particular field we need to
    perform some operation.   These events are captured by this FM.
    slis_ev_data_changed -- To capture user command
    slis_ev_user_command -- To capture data changed.
    Also please refer the below link in scn. This shows sample code to capture ALV grid data changed.
    http://scn.sap.com/thread/261210
    Hope this will solve the problem.
    Thanks,
    Soundarya.

Maybe you are looking for

  • Maintain default cost element in controlling area Message number FI660

    Hi All, We found the Down Pay Request (doc. booked by F-47)  cannot be picked up by F110. In Job log the error shown as Maintain default cost element in controlling area. Long text error details. Maintain default cost element in controlling area Mess

  • Adobe Drive 4 install fails on Mac Lion

    Drive 4  install is failing with the following error summary on OS X 10.7.4: Exit Code: 7 Please see specific errors and warnings below for troubleshooting.For example,  ERROR: DW030, DW050 ...  -------------------------------------- Summary --------

  • Pattern matching program

    Hello, I am creating a program that does pattern matching on a video. I want the program to be able to open a template to be used for the pattern matching template and to allow the user to select a template from an image in Labview and then use this

  • Need friends for game center plzz

    anyone willing to play online. plzz add me ([email protected]) as i got no frens there and no one in my knowledge has an iPod touch 4th gen or iPhone 4. or suggest how to find friends. waiting.....

  • Sever error

    When I try to sign into iCloud, I get a message that states "you can't sign in becasue of a sever error"