How to use sql:query/ tag to retrive the system date?

hi all,
i want to know if i can use the <sql:query/> tag in jstl to get the database server time. please send me a code snippet to retrive n display the result. i'm new to jstl tags. please help.
thank you,
AM

Check out the first hits: http://www.google.com/search?q=jstl+sql+tutorial+site:sun.com

Similar Messages

  • How to use sql query in java ?

    i don't know how to use sql query in java code.
    who can give me some advice?
    thanks

    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • How to Use SQL Query having IN Clause With DB Adapter

    Hi,
    I am using 11.1.1.5 want to find out how to Use SQL Query having IN Clause With DB Adapter. I want to pass the IN values dynamically. Any ideas.
    Thanks

    invoke a stored procedure, it's safer than trying to put together an arbitrary SQL statement in the JCA adapter

  • How to use SQL Query in OBIEE Reports

    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advance

    796797 wrote:
    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advanceArrggh. I wish people wouldn't just answer a question without taking the time to actually think about what the user is asking for and if it makes sense. I like Diney's response best: Why not use the Title View? (i.e., asking questions until it is clear what is needed.) So along those lines, why are you trying to put the name of your report in a column of your report?? And why do you need to use direct sql to do this??
    Kindly or not, urgent or not, state what you are trying to achieve and why you need it (if the obvious answer like "using the Title View" doesn't work for you), instead of simply assuming your method is right and you need to know how to do what envision. Your method may not be correct or necessary.

  • How to use SQL Query from VC

    Hi all, with the adoption of SQ01 transaction, now I've a SQL Query defined in SAP R/3 system.
    How to use it with Visual Composer 7.0 SP14 ?
    Thanks in advance
    Gianfranco

    Hi ,
    It is simple to use quiery in Vc.
    Go for Find data control in Right side of  V.C .
    Enter System name:The system used for your quiery i.e R3 (Before u should mapp the R3 alias to the VC user in portal)
    Look for :Look for service by name.
    Service :Ur quiery
    Regards,
    Govindu

  • How to use SQL query in ADF

    Hi Team,
    I want to fire one sql query to retrive some data. I cant make VO of that query as its from many DB link.
    Query is like SELECT query.
    Can anyone suggest me
    My Jdev :- 11.1.1.6.0
    Thanks In Advance
    Ramit

    I mean to say that the query is made by one or more than one schema .
    something like this:-
    Select hcsua.location , msib.description,
    hl.address1,hl.address2,hl.city,hl.state, hl.postal_code,hl.country, xmnd.part_number
    from hz_party_sites hps, hz_cust_acct_sites_all hcasa, hz_cust_site_uses_all hcsua, hz_locations hl, xxnin_moca_nmi_display xmnd, mtl_system_items_b msib
    Where hps.party_id = 176220
    And hps.party_site_id=hcasa.party_site_id
    And hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
    And hcsua.site_use_code='SHIP_TO'
    And hps.location_id=hl.location_id
    and hcsua.location=xmnd.location_acct_num
    and msib.segment1=xmnd.part_number;
    when I am making SQL VO then its saying cant make attribute of this query.
    Please guide me on this.

  • How to use SQL query result in DOS commands

    Hi
    Currently i am runnig below DOS commands manually
    d:\apps\bin>TrueGridsCalc period="Aug 2010"
    Now I want to write one batch file and schedule job on windows and make value of "period" to be dynamic. So to get that value i need to fetch it from DB
    Steps which i am taking are
    1. connect DB from command line (using SQLPLUS)
    2. run query to fetch result
    3.How to use query result in "period" parameter ?
    I am good at step 1 and 2. Dnt know how to use query result in command to make it dynamic
    Thank you
    Sachin
    Edited by: sachin.mali on Oct 26, 2010 4:39 PM
    Edited by: sachin.mali on Oct 26, 2010 4:43 PM

    sachin.mali wrote:
    Hi
    Currently i am runnig below DOS commands manually
    d:\apps\bin>TrueGridsCalc period="Aug 2010"
    Now I want to write one batch file and schedule job on windows and make value of "period" to be dynamic. So to get that value i need to fetch it from DB
    Steps which i am taking are
    1. connect DB from command line (using SQLPLUS)
    2. run query to fetch result
    3.How to use query result in "period" parameter ?
    I am good at step 1 and 2. Dnt know how to use query result in command to make it dynamic
    Thank you
    Sachin
    Edited by: sachin.mali on Oct 26, 2010 4:39 PM
    Edited by: sachin.mali on Oct 26, 2010 4:43 PMYOu'll have to have sqlplus spool the output to a file, then figure out some way of parsing that file. Too bad you're stuck with Windows. With any *nix you could do the file parsing with one line of code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How yo use SQL Query in XSLFO

    Hi Guys,
    I am customizing the PO Standard XSLFO file is there a way to execute a sql query in XSLFO ?
    Thanks
    Tom...

    Here you go.. Patch 4670662

  • How to use of Business Trnasaction That set the system status in BS23

    Run Tcode BS23, If i give I0117 in left  bottom corner > Enter> Click on system Status I0117 Top Left corner > Press F6> system will go to system Status Cross reference screen
    Here we can find the Business Transaction  related information like Process That set the status, Process that deletes the status etc. ( business transaction like RMEP ,RMEZ ,RMUP )
    Above scenario i have depicted for  System Status DSPT. But
    Now my Question is very generic not for only I0117 System Status ( DSPT)
    But  from name of  business transaction how can we get idea that, this Business Transaction can be performed by which T Code,
    this Bu transaction is belogs to which module etc....
    How can I find help related to this business Trnasction from System / any report/ Programme from SE38 etc.....
    I am functional, Please explain me accordingly..
    Being Functional Consultant how can we get maximum help from this Business Transaction.
    Any help pointing to above querries would be appreciated.
    Regards
    Nitin

    Hi,
    Try transaction BERP.
    It will give  you the following info.
    1. See the business events available and the pupose they are meant fot
    2. Documentation for that particular event (here you can know where exactly it is called)
    3. Interface parmeters required in the custom FM
    4. A sample function module with the export import parameters.
    There are few more transaction which are usefull in Bte
    FIBF --> Maintenance transaction BTE
    BERE --> Business Event Repository
    BERP --> Business Processes
    BF31 --> Application modules per Event
    BF32 --> Partner Modules per Event
    BF34 --> Customer Modules per Event
    BF41 --> Application Modules per Process
    BF42 --> Partner Modules per Process
    BF44 --> Customer Modules per Process
    and Bte is attach to a process it works in similar way like workflow do, you can't exactly know the tcode by looking into the event but you can know it with the process for eg.
    This event is called while invoice printing.
    00705000     Invoice print: Exclude contracts
    and we can get more info by checking its description.
    Hope this will help,
    With best regards,
    Navneet Chaubey

  • How to write sql query to parse xml?

    Hi, I am new to this parsing xml. I need to extract value from xml using sql query. Please find the sample xml file. Kindly help me.
    <?xml version="1.0" encoding="UTF-8"?>
    <MaterialUpdates>
      <Materials>
         <SalesOrg>
           <ID>KAR12</ID>
         </SalesOrg>
    </Materials>
    </MaterialUpdates>
    I need to extratct ID value : /MaterialUpdates/Materials/SalesOrg/ID

    Thanks once again, it is working as per your suggestion. One last question .. how about in case of there is multiple nodes.
    Please find sample xml below:
    <?xml version="1.0" encoding="UTF-8"?>
    <MaterialUpdates>
      <Materials>
         <SalesOrg>
           <ID>KAR12</ID>
         </SalesOrg>
         <SalesOrg>
           <ID>KAR13</ID>
         </SalesOrg>
         <SalesOrg>
           <ID>KAR14</ID>
         </SalesOrg>
    </Materials>
    </MaterialUpdates>
    The above mentioned sql query works fine when there is one occurance of SalesOrg - ID, but fails when there is multiple occurance.

  • How to numberformat when using sql:query alogn with c:forEach JSTL tags

    Is there anyway to format the numeric values returned from the database when using <sql:query> alogn with <c:forEach> tags
    Here is my jsp code
    <sql:query..../>
    <c:forEach var="row" items="${queryResults.rows}">
    <tr>
    <td><c:out value="${row.COL1}" /></td>
    <td><c:out value="${row.COL2}" /></td>
    </tr>
    </c:forEach>
    Col1 values are numeric without any formats Eg: 1000, 10000, 1000000 etc.
    how can i format them to 1,000 , 10,1000 , 100,000 etc

    It is polite to mention what your answer was. These posts are not just here for you to ask questions, but to be used as a resource for other people to find answers. Saying "I solved it" with no details helps noone.
    I presume you discovered the JSTL <fmt:formatNumber> tag?

  • How to retrive the blob data from a table using sql query

    Hi gurus,
    I have a table which has " BLOB "content in a column .I want to view the data From BLOB column using sql query .It would be helpfull If some one share their idea.
    Regards,
    vardhani.

    You can use data templates.
    See this: http://blogs.oracle.com/xmlpublisher/entry/blob_clob_raw_and_looooong
    http://blogs.oracle.com/xmlpublisher/entry/inserting_blobs_into_your_repo
    Thanks,
    Bipuser

  • How to use a query in matrix data retrive

    hai  everybody
    how to use a query in matrix data retrive...
    pls ..

    If u have created a UDT to store the data then U can retrive the data through recordset.
    oRecordset.doquery("SQL Statement")
    If u have taken the DB Data source to Manipulate then
    then type
    oMatrix.flushtoDataSource
    then
    U can retrive the data through DB Data source.
    -Manmath

  • How to get tax break up of TDS using SQL query ?

    Hi all,
    We are developing a TDS report using SQL query
    Report will contain VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount,
    Bill Value – 100.000,
    TDS (2%) - 2.000,
    TDS Surcharge(10% on TDS) - 0.2,
    TDS Cess(2%(TDS+TDS Surcharge)) - 0.044,
    TDS HeCess(1%(TDS+TDS Surcharge)) - 0.022.
    We have developed this report which displays upto
    VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount.
    How to show tax break up of TDS in SQL query ?
    Thanks,
    With regards,
    Jeyakanthan.

    Hi gauraw,
    Thank for your reply.
    I modified the query , pasted the query
    as below in query generator,
    Select T0.DocNum,T0.DocDate,T0.CardCode as 'Ledger',T1.TaxbleAmnt As 'Bill value',T1.WTAmnt as 'TDSAmt',(TDSAmt * 0.1) as 'TDS_Surch',
    (((TDSAmt0.1) + TDSAmt)0.02)  as 'TDSCess',
    (((TDSAmt0.1) + TDSAmt)0.01)  as 'TDSHCess'
    FROM OPCH T0  INNER JOIN PCH5 T1 ON T0.DocEntry = T1.AbsEntry
    WHERE (T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]')
    on clicking execute its showing error message invalid column
    name 'TDSAmt'.
    With regards,
    Jeyakanthan

  • How do i get the approximate size of back up file required to save on disk using sql query because i want to show the required sapce for backup on my application

    hi i am face with problem that is i want to show the how much approximate space required for backup or .bak file to get backup using sql query because i want to show the required memory for backup file on my java application  

    Hi FIROZ
    TENNALI
    Is this still an issue, or can we close the thread?
    * closing a thread by marking the answer/s (there is a link beneath each response) and you can vote for useful responses as well (there is a link to vote on the left of each response)
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for

  • TS2446 when i want download any app from appstore i cant cus this message plz help me apple

    i have big proplem plz help me apple pl when i down anything from appstore iphone your apple id has been disabled help me i cry

  • How to collect DB stats from 10g database

    Hi All, We have a production Oracle 10.1.0.5.0 database. We are facing performance issue in the application side. So we are in process of analysing the performance issues in both database and application side. Application vendor is asking for DB stat

  • Problem clone-stamping a path

    Hi, I am trying to get rid of electric cables in front of buildings and somewhere I found the suggestion to create a path, then switch to clone stamp, sample the source and then go to the paths palette and shift-click it (to disable the drawing of th

  • How to compress or shrink PDF files in OSX10.5.8

    How to compress or shrink PDF files in OSX10.5.8

  • Calling Area Pages

    Hi,          I have developed a WD4A application with 4 views. In the last view i have 2 URL elements that should be link back to the orginal Area Page ( for eg. Home Page ) while running in the Protal. Is there any way we can pass the URL of the Hom