How to set single parameters for two tables?

SELECT GM.GRNNO,GM.GRNDATE,SUM(GS.APPROVED),SM.ISSUENO,SM.ISSUEDATE,GS.ITEMCODE,SUM(SS.ISSUEDQTY)
FROM IMS_GRNM GM,IMS_GRNS GS, IMS_ISSUEM SM, IMS_ISSUES SS
WHERE GM.GRNMSERIAL=GS.GRNSSERIAL
AND SM.ISSUEMSERIAL=SS.ISSUESSERIAL
AND GM.POSTED='T'
AND SM.POSTED='T'
AND GS.ITEMCODE=SS.ITEMCODE
AND GS.ITEMCODE='01-01-02-019'
AND *******
GROUP BY GM.GRNNO,SM.ISSUENO,GM.GRNDATE,SM.ISSUEDATE,
GS.ITEMCODE ORDER BY GM.GRNDATE,SM.ISSUEDATE;
******* here i have to select the data from both the tables between two parameters named :P_1 and :P_2.
the date column in IMS_GRNM is named as GRNDATE.
the date column in IMS_ISSUEM is named as ISSUEDATE.
how to set such parameters???

I think all you need is
Where table1.column1 between :p1 and :p2
and table2.column2 between :p1 and :p2

Similar Messages

  • How to use different parameters for two tables(chart and Table) in one report in SSRS?

    Hi,
    Here is my requirement, i have 7 parameters in my report(Site,Account,LOB,year,Month,WeekDay and Date_Filter),
    and in my report i have one table and one Chart,
    my requirement is the table in the report has to show the data for 6 parameters only i.e(Site,Account,LOB,year,Month and WeekDay).so the table has to consider only 6 parameters, and it has ignore the 7th parameter, table should not consider Date_Filter parameter.
    And Chart has to consider all 7 parameters.
    so, when we preview the report table has to show the data for only 6 parameters and chart has to show the data for all 7 parameters.
    if there is a way to get this Please reply me ASAP, it is an urgent requirement.
    Thanks in Advance,
    Naveen

    Hi Naveen,
    Refer below link to create multiple datasets as suggested by Gnanadurai
    http://technet.microsoft.com/en-us/library/ff714047(v=sql.105).aspx
    Thanks
    Swapna

  • How to set DDL lock for a table

    OCI,how to set DDL lock for a table?

    Oracle acquires a dictionary lock automatically on behalf of any DDL transaction requiring it. Users cannot explicitly request DDL locks. Only individual schema objects that are modified or referenced are locked during DDL operations. The whole data dictionary is never locked
    DDL locks fall into three categories: exclusive DDL locks, share DDL locks, and breakable parse locks.
    see this link
    http://www.sc.ehu.es/siwebso/KZCC/Oracle_10g_Documentacion/server.101/b10743/consist.htm#i5281

  • How to set dbms_stats parameters for a single table

    Hi,
    I see that dbms_stats has the following procedure:
    PROCEDURE SET_PARAM
    Argument Name Type In/Out Default?
    PNAME VARCHAR2 IN
    PVAL VARCHAR2 IN
    Is there a way to change the parameters only for a single table?
    I need to set METHOD_OPT=>'FOR ALL COLUMNS SIZE 1' only for a specific table...

    I'm sorry, mate. It looks like setting individual table preferences was introduced in 11g (and doesn't seem to work all that well).
    You can still:
    1. Explicitly specify any of the supported parameters by using DBMS_STATS.GATHER_TABLE_STATS() for the individual table and run it along.
    2. Write a PL/SQL wrapper for let's say DBMS_STATS.GATHER_SCHEMA_STATS/GATHER_DTABASE_STATS that would gather the stats for the whole schema but ignore this particular table. Then gather the stats for the table with the METHOD_OPT parameter of your choice that could be different from the one used for the rest of the schema.
    This could be achieved by locking particular table stats with DBMS_STATS.LOCK_TABLE_STATS, running GATHER_SCHEMA_STATS with force=>FALSE (which is the default). That parameter will make the procedure ignore any tables with locked stats. As the last step of the wrapper you can execute DBMS_STATS.GATHER_TABLE_STATS for the table in question with the desired METHOD_OPT and force=>TRUE.
    It's a little more work, but may solve your problem.
    Max
    Edited by: Max Seleznev on Nov 28, 2012 6:21 PM
    Edited by: Max Seleznev on Nov 28, 2012 6:22 PM

  • How to use the TableSorter for two tables at the same view?

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
    I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...

    Hi Roy,
    Constructor of TableSorter
    public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
    So, you have to create instance of TableSorter class for each table on the view.
    best regards, Maksim Rashchynski.

  • How to set up passwords for two Comcast email accounts on Mail?

    Have Leopard. Cannot set up passwords on Mail for two Comcast email accounts. Does anyone know how to do?

    Hi Paul, & a warm welcome!
    Lineone
    Login
    [email protected]
    Incoming email (IMAP)
    imap.lineone.net
    Incoming email (POP3)
    pop3.lineone.net
    Outgoing email (SMTP)
    smtp.lineone.net
    What port & Authentication are you using?
    Can you login with your credentials in a Browser using the same info?
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the exact message?
    Then click the Show Details button & Check again.
    The Password rejection can confuse people since it's a catch all meaning...
    This Password, Username, Authentication method... is not recognized on this Port to this Server, or a server end problem.
    If using a browser to login via WebMail works it's not Name or Password, but one of the other ones.
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995
    Outgoing ports are...
    SMTP and SMTP-SSL is on ports 25, 587 and 465. Port 587 has to be SSL, and port 465 is enforced TLS-wrapped and is generally used by Outlook users.

  • How to set up NAT for two servers using same port with ASDM ASA 5505

    Hi there,
    We have a new installation of a ASA 5505 and are trying to get some NAT issues straightened out. Here is the scenario: On our internal network, we have two servers running Filemaker Server, a relational database server that clients connect with using port 5003. Our goal is to be able to allow users from the outside to access either of these servers as needed. I know how to set up a simple static NAT rule and matching Access rule in ASDM which would be fine for a case in which only one server using a given port is running on a network, but for simple static rules I seem to be blocked from entering a different translated port number from the orginal port number, which becomes a problem when two servers we need to access from the outside are running software using the same port number.
    What is the simplest way to address this need? I am guessing that I need to set up a scenario like this, where port 5004 (or any arbitrarily choosen unused port, can be used to access the second server:
    Outside user enters   FQDN:5004  and this translates to Database server # 1 as   192.168.1.40:5003
    and
    Outside user enters   FQDN:5003  and this translates to Database server # 1 as   192.168.1.38:5003
    If so, what is the easist way to get this done? Or is there a better what to handle this scenario?
    Thanks in advance,
    James

    I would create two objects and use object NAT
    object network Obj_5004
    host 192.168.1.40
    object network Obj_5004
    nat (inside,outside) static service tcp 5003 5004
    object network Obj_5003
    host 192.168.1.38
    object network Obj_5003
    nat (inside,outside) static service tcp 5003 5003
    Of course you will need to open your outside interface for tcp ports 5003 and 5004 to make this happen

  • How to set title/text for ALV table column header in WD ABAP

    Hello,
    I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
    My version is NW 7.0
    Thank
    Jayson

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • How to set Compatibility Mode for a single site in ie10

    This question was originally posted on the Answers forum -
    http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
    I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
    When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
    This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
    Using a different example to explain the issue -
    Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
    microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
    msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
    technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
    The only thing the three website share is the URL contains 'microsoft.com'.
    Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode. 
    Should you be able to add an individual site to the compatibility list instead of all sites that have  .microsoft.com in the URL? Am I missing a simple setting in the ie10?
    As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation. 

    problem is not solved for non corporate environments...
    You could start your own thread.  Then if you got that answer and it was marked Answered you would have the ability to unmark it.  The OP of this one seems satisfied.  Also note that this is TechNet.  Consumers can get help on Answers
    forums.
    Robert Aldwinckle
    Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
    The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
    But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
    Regards
    /Aldus

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • HT1386 How can I have two seperate sets of Playlists for two different iPods on one computer?

    How can I have two seperate sets of Playlists for two different iPods, on the same PC?

    Open itunes.
    Make whatever playlists you each like.
    Connect one ipod, select only what you want, sync
    Do the same for the other ipod

  • How to Set NLS parameters in SqlDeveloper for current and future connection

    Hi
    I've downloaded sqldeveloper version 1.5.4(build main-5940)
    when I try to set NLS parameters as following it is thrwoing following error
    TOOLS->PREFERENCES->DATABASE-->NLS parameters
    on right side pane
    I've changed
    SORT----->BINARY_CI
    COMP----->LINGUISTIC
    then it is generating following log file
    SEVERE     43     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:ORA-00600: internal error code, arguments: [qctosop:like transform], [], [], [], [], [], [], []
    SEVERE     44     114     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     45     7     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     46     9     oracle.dbtools.db.DBUtil     
    SEVERE     47     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     48     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     49     5     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     50     0     oracle.dbtools.db.DBUtil     
    SEVERE     51     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     52     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     53     5     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     54     0     oracle.dbtools.db.DBUtil     
    SEVERE     55     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     56     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     57     4     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     58     0     oracle.dbtools.db.DBUtil     
    SEVERE     59     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     60     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     61     4     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     62     1     oracle.dbtools.db.DBUtil     
    SEVERE     63     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     64     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     65     5     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     66     0     oracle.dbtools.db.DBUtil     
    SEVERE     67     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     68     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     69     6     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     70     0     oracle.dbtools.db.DBUtil     
    SEVERE     71     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     72     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    please help me to set NLS parameters for current and future connections.
    thanks,
    harry

    Hi -K-
    actually I want to make SqlDeveloper to make case insensitive search.
    when I google, I've found to make oracle as case insensitive I need to set NLS_SORT to Binary_CI and NLS_COMP to LINGUISTIC
    Default SQLDEVELOPER NLSParmeters values are as NLS_SORT---->Binary and NLS_COMP--->Binary
    Now I want to make these as NLS_SORT---->Binary_CI and NLS_COMP--->LINGUISTICS.
    thanks,
    harry

  • Can I create a single PO for two company codes

    Hi
    Can I create a single PO for two company codes. Though I know that Company code is assigned at header level but still I know there is a setting in controlling which when activated two company codes under same controlling area can procure the goods under the same PO.But i forget from where to activate that message or control in config.
    Thanks

    Hi Lekhram,
    I'm just beginner so maybe I got the wrong end of the stick.
    If you order something that something must belong to a definite company > plant. How could possess two company the same thing at the same time (totally)?
    (companies are at the same organisational level - none of them is subject to the other).
    Maybe I'm mistaken.
    So I <b>guess</b> you can use only one company code for one PO.
    Controlling area & company code
    http://help.sap.com/saphelp_46c/helpdata/en/e5/077a704acd11d182b90000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/08/513f4b43b511d182b30000e829fbfe/frameset.htm
    Purchasing & organisation
    http://help.sap.com/saphelp_46c/helpdata/en/75/ee0a9555c811d189900000e8322d00/frameset.htm
    All the best
    Csaba

  • How to create a calendar for two years in GL

    how to create a calendar for two years in GL

    Hi,
    - Login into Oracle EBS and select a responsiblity with GL Superuser drants (e.g. General Ledger Super User)
    - Navigate to Setup + Financials + Calendars and open the GUI Accounting (Navigation for R12)
    - Query the used calendard (used from jour Set of Books/ Ledger via the GUI
    - Enter for each Period (= Period Type 13, 16, 18,...) one Record, have a look to the existing data, used the same logic.
    In the GUI, defined the calendar for 2 Years
    Dirk

  • How to set enviroment variables for Inso Filter

    Hi everyone,
    I want to convert word documents to html using CTX_DOC.Filter.According to the documentation,I know I neednot set the 'Inso Filter'in the preference when creating index,but I must set enviroment variables for Inso Filter.
    I found the following instructions for it in the 8.1.5 documentation,but I can't understand it well.Is there anyone can tell me how to set enviroments variables for Inso Filter on Windows2000 Server?(My DB version is 8.1.7EE)
    Environment Variable Locations
    All environment variables related to Inso filtering must made visible to interMedia Text. Set these variables in the following locations:
    listener.ora file. This makes the environment variables visible to the extproc PL/SQL process.
    The operating system shell from where ctxsrv server is started. This makes the environment variables visible to the ctxsrv process, which does background DML.
    Any suggestions are apreciated
    Reemon
    null

    NSAPI plugins are normally configured using parameters specified in magnus.conf and/or obj.conf. What plugin requires you set an environment variable?

Maybe you are looking for

  • How to define if iPhone was activated and when?

    My friend is living in Russia (I myself in Canada). Recently she bought iPhone in the shop. When she opened the box she found an old used iPhone there. Management of the store refused her to return the product. She put complains to police. Now she is

  • Optimize a query

    i have query which is taking too much time(54 min) .the main reason of getting slow is that table is too huge. INSERT INTO Table1 (Col1,Col2,Col3,Col4,Col5,Col6) (SELECT DISTINCT "Col1","Col2","Col3","Col4","Col5","Col6" FROM Table2 WHERE "Col6">0 AN

  • HT2476 FAVORITES menu ... How do I remove/delete from the menu?

    I accidentally dragged a folder into my FAVORITES menu ... How do I remove/delete from the menu?

  • Understanding the internal operation of creating a record group

    Hi gurus, When record group is created, if the query has a lot of records generated , does the form actually retrieve all the data from database in the record group when get_group_xxx function is called or there is also buffering like we do execute q

  • Why can't I use a PC?

    The training videos say I need a Mac to use this application. Is this right?