Bank Transaction

Hi All,
I want to show 2 records from one record.
eg.
in a bank ,one is a CR(credit) and the same record is DR (debit ) for someone.
hence
select
col1,
'CR',
col3
from tableA
where clause
union all
select
col1,
'DR',
col3
from tableA
where clause remains same
I do not want to use the above query as the query runs twice for the same information except 'CR' and 'DR' which are hard coded .
Also the where clause remains SAME in both the above queries.
Please suggest.
ta
sunny

Hence ,the where clause of my query for both the records remain same but only a CR or DR is displayed.I don't think this is right. Or, may be you can explain it better. I think this will only applicable when one customer make a transaction with the bank. So, this won't be for all the customer of the bank.
But, it will be better - if you explain it.
But, you can check the following solution - if it satisfy your requirement.
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:04.75
satyaki>
satyaki>
satyaki>--Data Table---
satyaki>with bank_tran
  2  as
  3    (
  4      select 'ABC' cust_nm, 5000 Amt from dual
  5      union all
  6      select 'UVC', 6000 from dual
  7    ),
  8  --End Of Data Table--
  9  --tran_type table you need--
10  tran_type
11  as
12    (
13      select 'CR' ty_pe from dual
14      union all
15      select 'DB' from dual
16    )
17  select bt.cust_nm,
18         bt.Amt,
19         tt.ty_pe
20  from bank_tran bt,
21       tran_type tt;
CUS        AMT TY
ABC       5000 CR
ABC       5000 DB
UVC       6000 CR
UVC       6000 DB
Elapsed: 00:00:00.48
satyaki>
satyaki>Regards.
Satyaki De.

Similar Messages

  • A better way to auto set category to bank transactions

    I have a table with bank transactions, the third cell have "Memo", some kind of description, I want to classify the transaction based on words found in the "Memo" based in another table with first column with classification and the second column with words (can be more than one word) to find.
    Example:
    Table Transaction:
    Value
    Balance
    Memo
    Category
    -100,00
    1900,00
    Company Phone - electronic bill
    Communication
    -200,00
    1700,00
    School payment
    Education
    1000,00
    2700,00
    Deposit trough machine
    -20,00
    2680,00
    Bob's Diner
    Food
    -40,00
    2640,00
    Star Gas Station
    Fuel
    Table Category:
    Category
    Key
    Communication
    Phone, Cell
    Education
    School
    Fuel
    Gas, Ethanol
    Food
    Diner, Restaurant
    So far I found 3 possible solutions but I'm looking for a elegant and easy way to do it, it need be easy to manage and add words as criterions.
    Found Solutions:
    1 - nested "IF" (Complicated to manager and to add new keys for new categories)
    2 - Add columns to the first table, one column for each key to test, then use "Lookup" to get Category in the column header (Not elegant)
    3 - Trough AppleScript (very slow).
    I make a research to find a way to make some like a "Loop" or a "Repeat until" with only Numbers formulas but I don't found nothing.
    Any help will be appreciated.
    Thanks.
    Ps: this is my AppleScript (my real table is a little different than that in this message, my table have a subcategory too).
    on know_category from array to memo
              set found to {"?", "?"}
              repeat with description in array
                        repeat with |key| in item 3 of description
                                  if |key| is in memo then
                                            set found to description
                                            exit repeat
                                  end if
                        end repeat
                        if not found is {"?", "?"} then
                                  exit repeat
                        end if
              end repeat
              return found
    end know_category
    on categories_as_array from table
              set |result| to {}
              tell application "Numbers"
                        repeat with |row| in rows of |table|
                                  set values to value of cells of |row|
                                  set AppleScript's text item delimiters to ", "
                                  set Category to first item of values
                                  set subcategory to second item of values
                                  set keys to text items of (third item of values)
                                  set AppleScript's text item delimiters to " "
                                  set end of |result| to {Category, subcategory, keys}
                        end repeat
              end tell
              return |result|
    end categories_as_array
    tell application "Numbers"
              set categories to categories_as_array of me from table "Category" of sheet "Config" of first document
              set names to {}
              repeat with |sheet| in sheets of first document
                        set end of names to name of |sheet|
              end repeat
              set |name| to {choose from list names} as text
              repeat with |row| in rows of table "Transactions" of sheet |name| of first document
                        if not (value of item 7 of cells of |row|) is "Category" then
                                  set memo to value of item 5 of cells of |row|
                                  set found to know_category of me from categories to memo
                                  set value of item 7 of cells of |row| to first item of found
                                  set value of item 8 of cells of |row| to second item of found
                        end if
              end repeat
    end tell

    I apologizes but your handler categories_as_array seems to be wrong.
    When I run the script it fails because it doesn't find a third item in values
    I edited it this way :
    on categories_as_array from table
              set |result| to {}
              tell application "Numbers"
                        repeat with |row| in rows of |table|
                                  set values to value of cells of |row|
                                  set AppleScript's text item delimiters to ", "
                                  set Category to first item of values
                                  set subcategory to second item of values
                                  try
                                            set keys to text items of (third item of values)
                                  on error
                                            set keys to ""
                                  end try
                                  set AppleScript's text item delimiters to " "
                                  set end of |result| to {Category, subcategory, keys}
                        end repeat
              end tell
              return |result|
    end categories_as_array
    but the returned list which is :
    {{"Category", "Key", ""}, {"Communication", "Phone, Cell", ""}, {"Education", "School", ""}, {"Fuel", "Gas, Ethanol", ""}, {"Food", "Diner, Restaurant", ""}}
    is not the expected one.
    My proposal would be :
    on categories_as_array from table
              set |result| to {}
              tell application "Numbers"
                        repeat with |row| in rows of |table|
                                  set {Category, values} to value of cells of |row|
                                  set AppleScript's text item delimiters to ", "
                                  set subcategory to first text item of values
                                  try
                                            set keys to text items 2 thru -1 of values
                                  on error
                                            set keys to {}
                                  end try
                                  set AppleScript's text item delimiters to " "
                                  set end of |result| to {Category, subcategory, keys}
                        end repeat
              end tell
              return |result|
    end categories_as_array
    which returns :
    {{"Category", "Key", {}}, {"Communication", "Phone", {"Cell"}}, {"Education", "School", {}}, {"Fuel", "Gas", {"Ethanol"}}, {"Food", "Diner", {"Restaurant"}}, {"fake", "sub1", {"key1", "key2", "key3"}}}
    As you see, for tests I added a row to your table.
    It contains :
    fake
    sub1, key1, key2, key3
    Yvan KOENIG (VALLAURIS, France) mercredi 27 avril 2011 11:38:31

  • New document Type for bank Transaction

    Hello Gurus
    My client place , If I post any Bank Transactions the system accepting for only  BP/BR Document type
    Now I am define new Document type , in this new document type itu2019s not accepting ( bank receipt )
    System shows some error message:
    Document Type should be BP / BR for Bank Transactions
    Message no. Z_FI005
    So  I Want to post bank transaction in new Document type also , what type of configuration shall I do
    Can Any one give me the solution
    Regards
    SRI

    Dear Sri,
    It seems that Validation has been defined in your system to prevent another document type to be used for the banking transaction....
    You can check validation defined in transaction GGB0...
    Check the validation assigned to your company code in transaction OB28..
    Regards,
    Chintan Joshi

  • When I highlight my bank transactions and paste them on word, they do not retain the table format, why? answer in laymens terms please. I'm new to FF.

    I Have Windows XP and I use Microsoft Word to make a copy of my bank transactions. With IE the copy/paste always retains the table format. With FF it prints out as a continuing line.
    I had to open up IE to perform the action there.

    You can look at this extension:
    *Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • Ask for helps and comments for a practicing ADF sample: Entering bank transaction records

    Dear experts:
    I'm redeveloping a practicing ADF sample application based on an exist application system of  my company.
    Here is the goal for this redeveloping:
    What degree of productivity can adf achieve compare to eclipse?
    And hereby is a small example I began from last Monday. some progress has been achieved, but pretty lot of difficulties remained,
    so I post all neccessary informations to this forum, and ask for your kind helps and comments.
    Thank you all in advance!
    Introduction                                                      
    The X company has some bank accounts in different banks, also it’s customers may have more than one bank account in different banks. Transactions between the X company’s bank accounts and it’s new or regular customers’ bank accounts happened heavily in daily. Bank transfer records in paper form will be collected and need to be entered into an in-house Financial System(NX1)  of the X company every day.
    This module will implement the function of Entering Bank transactions records for NX1.
    In future, this Data Entering work for NX1 will be handled by some data exchange interface automatically.
    And the following implementation will be based on ORACLE XE 11g,  Jdev/ADF 12c.
    This link can download  the document for the example, I will upload Database scripts and JDEV application files tonight.
    http://223.4.132.24:8180/BlobUtilServlet?tableName=FILE_TABLE&columnName=BODY&stuffID=020010110000001481&strNO=1&type=downfile&fileName=NXDemo1.doc&directOpen=true
    (The above link is a website of our own. if you meet any difficulty when access it, please let me know: [email protected]).

    Hi, Timo and Frank,
    Thank you all for your kind replies and sound suggestions!
    Now let me talk freely on this thread-and I will limit my topic scope within this Jdev/ADF Space’s theme but maybe in a more broad perspectives. And I will separate topics into different posts to avoid over length of each post. Hope you will have enough patience to read through this some long story!
    Notice: Links in this article will refer to somewhere of OTN itself or a website of our own. There is no security concern on the server. For example:
    http://223.4.132.24:8180/webfavorite.do?method=index&topTag=shou_A&txtTitle=ADF
    (This link is collection of internet links and some abstract for each article on ADF. Not much contents on ADF in Chinese can be found.)
    What you are up to?
    First of all, I need to make some introduction of myself to answer “what you are up to”.
    I come from China, living and working at Shenzhen city which is close to Hong Kong. And now I am running a small software company with 20 employees, our main business is to develop database centered applications which include in-house workflow/information management systems and websites/portals for organizations.
    I have a pretty strong conviction that software technology should emancipate people from routine trivial mental works, just like engines in the industry revolution free people from heavily physical works. So I have a strong inclination for everything to be “automated”.
    For running a company, this “automation” will not only bring the “aesthetics of everything running by itself”, but also will mean more productivity, quality and profits.—After all, no-living stuff is always cheaper than living creatures, let alone to say human beings.
    However, when we software industry tried to automate business fields for our clients, the process of making software itself was still a manpower intensive, less-automation business. and this result a expensive products.
    More than 15 years ago, when I began to work in an IT department of a big organization, I got to know the Oracle Designer/Developer 2000, and have being a diligent FORM/REPORT programmer for more than 4 years. I like the concept and practice of declarative design and automated generation.
    And then more years past, and I left that organization and began to run a software company myself. And during these days, the mainstream technology of software development had been web oriented, Java/J2EE which I had no idea totally. But we have other guys who had expertise on it. So I just leave these works and decisions to them. And it seemed works at the beginning.
    But after several years of business operation of application development for clients, I found this was a difficult-money-earn business. Even if our guys had worked hard, project schedules’ delay, over budget, clients’ complain was easily happened. Sometime we had more projects/contracts than what we can undertake, but we dare not to hire more people. I was confused:
    -Was it a common situation in this field all over the world?
    -What’s the key factor should responsible for?
    -Where to start to improve the situation?
    I know there are many factors should responsible, it’s a complex situation. Find more talented people and give better incentives for them to work hard is one choice—but it’s also a difficult task especially for a small company like ours. So to start from easy and confine solution’s scope is:
    -We have these guys now, what we can do best?
    (To be continued)

  • What design to split bank transactions into more detail? (in budget database)

     Current Design:
    * I have a budget/finance tracking database I’m building
    * It has a BANK_TRANSACTIONS table where I load in transactions from various bank accounts
    * It there has an ALLOCATIONS table to allocation a bank transaction to a business area (e.g. allocate the phone bill item 50% to “personal” and 50% to “work"
    Question:  What would be the best database design approach to be able to breakout a bank transaction into smaller items?  For example there may have been really two (2) items purchased and turn up in a single bank account.    I still want
    to maintain the correctness of imported bank transactions themselves.
    For example some ideas that come to mind:
    a) add new detailed transactions to BANK_TRANSACTIONS for the detail, with a new column “REPLACED” so the the original bank transaction is there but can be marked as “replaced” so it doesn’t get used in queries/reports.  Then another RELATIONS table to
    relate the new detailed record to the parent original bank transactions.   Not sure if this would be considered good design or not
    b) have a separate table for BUSINESS_TRANSACTIONS so the detailed transaction go here.  But then 95% of the items in the BANK_TRANSACTIONS would just need to be duplicated in the BUSINESS_TRANSACTION table??
    Other ideas???
    In terms of usage/output would like have the concept of being able to show:
    a) maintain valid true bank transactions that are valid, as it is from there you can see your overall bank balance (across multiple accounts) across time,
    b) in terms of reporting for expense categories / taxable items etc need the detailed BUSINESS_TRANSACTION so to speak...

    Personally I would create a transaction header table that would hold the date and total amount of the transaction and any other header data and a detail table for the detail.
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • List of bank transaction

    hi experts
    i m going to design one customise report "list of Bank Transaction " no matter what sort of transaction has made .. it would reflects in bank statement. credits and debits both .. here i would liet to tell you that we didnt set our cash management module yet .. otherwise my this requirment is worthless , we can handle all the requirment from there .. but right now the cash management module not setup... so i have to make it customise ... well help he out what is the best stratagy to design this report .. and tell me the stright path where i should work on .. i mean .. i know GL_JE_LINES is the table where each and every transaction record but ... but related to the bank ... and suppler and customer .. how can we get related or what is join condition .. give me an idea where should i found all the information ....
    regrds
    Anwer

    Hi,
    Your accountants can tell you the accounts that hit the bank account, from there you get the rows from gl_code_combinations and join to gl_je_lines (to gl_je_headers and gl_je_batches) to get all the info.
    If you're talking about drilling back to the subledgers (AP, AR..) to get more information than that recorded in the GL, then its a different story, but similar concept applies. Find out what accounts hit the bank in each subledger and query for each subledger. There are a couple of blogs out there with info on GL drill to subledger.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • After installing Firefox 4.0, I cannot download bank transactions into Quicken 2009.

    After installing Firefox 4.0, when I download bank transactions into Quicken 2009, it tries to open a new file rather than go into the file that is already open and from which it accessed Firefox in the first place.

    Such files that are passed to external programs are usually downloaded to the system temp folder (%TEMP% or %TMP%).
    You may need to check your Anti-virus software if this isn't working properly.
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    *https://support.mozilla.org/kb/Unable+to+download+or+save+files

  • Highest security needed for banking transactions

    I am new to my Linksys wireless WRT160NV2 router and I'd like someone to assure me of the safety in using the router for banking transactions.  It's in my home, and I only bought it so my son could connect video game platforms wirelessly. 
    My computer is connected by wire to one of the WRT160's ethernet ports.  I'm hoping this is more secure. 
    This may be a stupid question, but can anyone tell me if a hacker can use the wireless connection (assuming he can get through WPA encryption) to access my wired computer.  I need absolute security with banking transactions.  Put another way, is my wired computer just as safe as before having the wireless router?

    The quick answer for you is 'yes'.  However, the chances of it occurring is not even slim... but none.  If you think there are people driving around aimlessly stiffing out networks in your neighborhood from their car trying to break the security to get to your computer.... well, it's just not happening.   There are plenty of unsecured networks around, in parking lots, Starbucks and whatever, they can just get on there.  WEP has been broken, WPA has been broken.  I have never read anything anywhere where someone has got on a secured network, by breaking the security code and stole data from the average person.  Your wireless has to transmit about a 1Mb burst that they have to capture in order to start the decoding.
    The only reason people break the security is that it's a challenge to them and fun.  I just use WEP, MAC address filtering (which can be spoofed also), software firewall and the routers firewall.  Heck, my share drives aren't even passworded.
    In my neighborhood, there are seven wireless networks of which four are unsecured.  The crooks will like them before anyone else.  
    Bottom line... don't even worry about it.
    Message Edited by sabretooth on 12-29-2008 02:45 PM

  • Loading Bank Transaction Codes

    Hi guys,
    We have about 1500 transaction codes to load... Is there any way to programmatically load these , example an API or script...
    Or do we have to use a tool like Dataloader?
    Thnx.

    APIS for 11i are listed at http://irep.oracle.com
    I do not believe there is an API to load bank transaction codes. You may have to write your own code or use a tool like dataloader
    HTH
    Srini Chavali

  • Bank Transaction Codes and Transaction Type Codes in Cash Management

    Hi All,
    Can someone please let me know to which field we should populate the Bank Transaction Code in the ce_statement_lines_interface table.
    Is it TRX_CODE column ?
    The problem i'm having is actually the default BAI2 mapping doesn't populate the bank transaction codes to this fild (TRX_CODE) when I try to upload the file generated by our bank.Insdead those are populated in the CUSTOMER_TEXT column.
    The values populated in the TRX_CODE are the values to indicate whether its a credit entry or a debit entry ( “399” for credit transactions or “699” for debit transactions).
    Please let me know where these 399 and 699 should be populated in the interface table as well?
    Thanks and Regards,
    MPH

    Check your BAI mapping with statement data file. As far as I know (16,1) is the right line level mapping for trx code.

  • Automatic clearing in Bank Transactions

    Hi all,
    in FF_5 some of the external transactions like outward remmittance, cash orders etc., posting throu FB05, some of the other transactions posted under FB01, but what i need to clear that are posting throu FB05?
    How to change this from FB01 to FB05? need to change any standard ustomization?
    i will assign full points...
    Raghav

    Solved the problem..
    change in the posting rules in Electronic Bank global settings. then it automatically change.

  • In firefox re bank transaction it will not let me put my security in drop down box yet will in internet

    Hi When i Bank or Book a holiday online the web site goes through certain checks at the finish the bank requests a 3 fig security check eg s n a with a slide bar at the side to complete though when i am in firefox the slide bar does not appear thus i can not complete my transaction
    Yet when i go to internet explorer that web site allows me to complete also in fire fox the system will not remember my internet bank account ref

    Try to reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have increased the minimum font size then try the default setting "none" in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    *http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Since last update 25/03/12, bank transactions difficulty

    I bank on line with no problems in the pat. Since last update on my iMac 25/03/12, I have been unable to carry out transfer  transactions between my accounts.  With the following System Error notice: " Missin Plan ID in Transfer Details Construct" Pleaseclick BACK then use the browser refresh button to continue. Which did notwork.  Bank rep tells me it is probably as a result of the up dates and I should contact Safari or use internet explorer instead. They say they do not support Safari!  Can any one advise please what I should do?

    Sorry I meant last update performed on 15/03/12! 
    I am running MAC OS X Version 10.6.8 and Safari Version 5.1.4 (6534.54.16).
    The lady at IF bank customer service implied that the problem must be due to the latest update.  She would not put me through to their IT deparment for help as she said they do not provide support for Safari. Intead she suggested go to Safari or Apple for help or we try using Internet Explorer or Firefox to resolve the problem.
    We have been using Safari to do our online banking with IF for years without any difficulty until apparently since the last up date on 15/03/12. Since the bank does not appear to want to help.  Surely the bank IT department and Apple/ Safari are in a better position to resove my difficulty with the updates than asking us novices to to change our browser? I did not even know that is noInternet Explore for Mac.
    May I have some guidance on the best way to proceed please? 

  • Bank transaction codes

    Hi Gurus,
    I have been sent transaction codes for Format AUSZUG and UMSATZ. Where and  do I update these?
    Regards

    Hi Alex,
    The given file formats are for Electronic Bank Statements, specifically Multicash format.
    The transaction codes you are being provided needs to be updated in the Settings for Electronic Bank Statement.
    The path for the same would be:
    IMG>Financial Accounting> Bank Accounting> Business Transactions> Payment Transactions>Electronic Bank Statement> Make Global Settings for Electronic Bank Statement.
    It is here you define the transaction codes defined by the Bank so as to map the same with the SAP transaction codes.
    This is required so that the Electronic Bank Statements received by the application could be read in the specific format.
    For the user side the Electronic Bank Statements are uploaded in FF_5 or FF.5.
    Hope this answers your question.
    Regards,
    Abhishek

Maybe you are looking for