How can i do  a query?

hello,
i've insert my xml documents in my table ,
and now i want to do queries to see if the data is correct or no,
how can i do it?
i will put a small example of my xml document, and i want to have a query example for this docuemts. thanks:
<?xml version="1.0" encoding="UTF-8" ?>
<ENZYME>
<ID>
<EcNumberID>1.1.1.104</EcNumberID>
</ID>
<PROTEIN>
<PR>
<NumberPR>1</NumberPR>
<NamePR>Oryctolagus cuniculus</NamePR>
<LiteraturePR>1</LiteraturePR>
</PR>
</PROTEIN>
<RECOMMENDED_NAME>
<RN>
<NameRN>4-oxoproline reductase</NameRN>
</RN>
</RECOMMENDED_NAME>
<SYSTEMATIC_NAME>
<NameSN>4-hydroxy-L-proline:NAD+ oxidoreductase</NameSN>
</SYSTEMATIC_NAME>
<SYNONYMS>
<SY>
<NombreSY>hydroxy-L-proline oxidase</NombreSY>
</SY>
</SYNONYMS>
<CAS_REGISTRY_NUMBER>
<CR>
<NumberCR>37250-37-6</NumberCR>
</CR>
</CAS_REGISTRY_NUMBER>
<REACTION>
</REACTION>
<REACTION_TYPE>
<RT>
<NombreRT>redox reaction</NombreRT>
</RT>
<RT>
<NombreRT>oxidation</NombreRT>
</RT>
<RT>
<NombreRT>reduction</NombreRT>
</RT>
</REACTION_TYPE>
<SOURCE_TISSUE>
<ST>
<NombreST>kidney</NombreST>
<OrganismST>Oryctolagus cuniculus</OrganismST>
<LiteratureST>1</LiteratureST>
</ST>
</SOURCE_TISSUE>
<NATURAL_SUBSTRATE_PRODUCT>
<NombreNSP>
<NombreNSP>4-oxo-proline + NADH = 4-hydroxy-L-proline + NAD+</NombreNSP>
<OrganismNSP>Oryctolagus cuniculus</OrganismNSP>
<LiteratureNSP>1</LiteratureNSP>
</NombreNSP>
</NATURAL_SUBSTRATE_PRODUCT>
<SUBSTRATE_PRODUCT>
<SP>
<NombreSP>4-oxoproline + NADH = 4-hydroxy-L-proline + NAD+</NombreSP>
<OrganismSP>Oryctolagus cuniculus</OrganismSP>
<LiteratureSP>1</LiteratureSP>
</SP>
<SP>
<NombreSP>4-oxo-proline + NADH = 4-hydroxy-L-proline + NAD+</NombreSP>
<OrganismSP>Oryctolagus cuniculus</OrganismSP>
<LiteratureSP>1</LiteratureSP>
</SP>
</SUBSTRATE_PRODUCT>
<KM_VALUE>
<KM>
<ValueKM>0.6</ValueKM>
<SubstrateKM>4-Oxoproline</SubstrateKM>
<OrganismKM>Oryctolagus cuniculus</OrganismKM>
<LiteratureKM>1</LiteratureKM>
</KM>
<KM>
<ValueKM>0.84</ValueKM>
<SubstrateKM>NADH</SubstrateKM>
<OrganismKM>Oryctolagus cuniculus</OrganismKM>
<LiteratureKM>1</LiteratureKM>
</KM>
</KM_VALUE>
<PH_OPTIMUM>
<PHO>
<ValuePHO>6</ValuePHO>
<ValueMaxPHO>6.5</ValueMaxPHO>
<OrganismPHO>Oryctolagus cuniculus</OrganismPHO>
<CommentaryPHO>
<Comentary> decrease of activity below pH 6.0 (1)</Comentary>
</CommentaryPHO>
<LiteraturePHO>1</LiteraturePHO>
</PHO>
</PH_OPTIMUM>
<SPECIFIC_ACTIVITY>
<SA>
<ValueSA>5.21</ValueSA>
<OrganismSA>Oryctolagus cuniculus</OrganismSA>
<LiteratureSA>1</LiteratureSA>
</SA>
</SPECIFIC_ACTIVITY>
<COFACTOR>
<CF>
<NombreCF>NADH</NombreCF>
<OrganismCF>Oryctolagus cuniculus</OrganismCF>
<LiteratureCF>1</LiteratureCF>
</CF>
</COFACTOR>
<PURIFICATION>
<PU>
<OrganismPU>Oryctolagus cuniculus</OrganismPU>
<CommentaryPU>ammonium sulfate, negative alumina gel, positive alumina gel</CommentaryPU>
<LiteraturePU>1</LiteraturePU>
</PU>
</PURIFICATION>
<STORAGE_STABILITY>
<SS>
<OrganismSS>Oryctolagus cuniculus</OrganismSS>
<CommentarySS>-10C, 160 mM phosphate buffer, pH 6.0, 3 months, no loss of     activity</CommentarySS>
<LiteratureSS>1</LiteratureSS>
</SS>
</STORAGE_STABILITY>
<REFERENCE>
<RF>
<NumberRF>1</NumberRF>
<ReferenceRF> Smith, T.E.; Mitoma, C.: Partial purification and some properties     of 4-ketoproline reductase. J. Biol. Chem. (1962) 237, 1177-1180.     {Pubmed:}</ReferenceRF>
</RF>
</REFERENCE>
</ENZYME>

no body can hekp me??
i put another example of my xml document how is smaller than the other, please helpme.
<ENZYME>
<ID>
<EcNumber>1.1.1.1</EcNumber>
</ID>
<PROTEIN>
<PR>
<Number>1</Number>
<Name>Gallus gallus</Name>
<Commentary>
<Coment> isoenzyme C2 (48)</Coment>
<Coment> isozyme ADH4 (118)</Coment>
</Commentary>
<Literature>44</Literature>
</PR>
</PROTEIN>
</ENZYME>

Similar Messages

  • How can I create a query with tables in INFOSET?

    Dear Gurus,
    How can I create a query with tables in INFOSET?
    Just tables and fields INFOSET?
    Kind Regards,

    Hello
    Check following SCN Article for your understanding/reference:
    - [Using Infoset Query ,SAP Query and Quick Viewer|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10eab7af-0e54-2c10-28a5-87b47adbe1a5]
    Regards
    JP

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • In ST03 , how can i see the Query name, user id,how many times executed the

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    EX:-if there is one report name X,I want to know how many users had executed X report today,weekly,monthly.
    ex:-query userid total number of execution
    sales order 0000555 5 times
    custmer 05855 2 times
    fast reply will be appreciated,

    Hi,
    Look here:
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/54df4204892a78e10000000a155106/frameset.htm
    Also check these:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/25/ece73a39e74d27e10000000a114084/frameset.htm
    Hope this helps..
    Bye
    Dinesh

  • In ST03 , how can i see the Query name, user id,how many times .

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    Points will be awarded.
    BR
    sivs

    Hi Siva,
    Reporting statistics data is only written to the database table if BW statistics have been manually activated for the corresponding InfoProvider first. If this has not been done, it is therefore not possible to display any reporting statistics in transaction ST03.
    Therefore activate the reporting statistics for all relevant InfoProviders. To do this, set the OLAP flag in the BW Administrator Workbench (transaction RSA1) in the area Tools ® BW Statistics for InfoProvider.
                    Check here...........
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/86df4254d81e1fe10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Hope this will help you shiva.........
    Regrads,
    Vijay

  • How can I make a query by date with several TDMS files?

    Hi,
    I have a project that can write and read TDMS files everyday (a file for each day with date and time). There, I can import those files to excel (I choose a file and load it). But, I have a question: How can I make a query by date with those TDMS files? I'd like make a time stamp for start date and stop date, where I could compare the TDMS file dates and sum the values that are in the channels where these files are similar. For example, I save a file with "02/01/2013" name, in other day "03/01/2013", in other day "04/01/2013"... so, i'd like put in time stamp for start date "02/01/2013" file and to stop date "04/01/2013" file, than, sum all values that range with my TDMS files existing. How can I make that? 
    Thanks all,
    Val 

    Hello Val_Auto.
    You're Brazilian, no? Me too. = ^ - ^ =
    I converted VI to version of your LabVIEW (8.5). Is attached in this reply.
    This VI search all your TDMS in a range of dates and join them in a single TDMS. I hope this is what you wanted.
    Query TDMS is the main VI. The TDMS VI Search changes the date format that out from calendar control (which is DD / MM / YYYY) to DD-MM-YYYY. This is because you can't name files using "/". I chose "-" but, if necessary, you should change to keep the same format of your TDMS files.
    If you have any doubt as to its operation or how to make changes to adapt VI for your application, keep at your disposal.
    Thank you for your contact; I hope have helped you and succeed in your application.
    Wesley Rocha
    Application Engineer
    National Instruments Brazil
    Visite a nossa comunidade em PORTUGUÊS!!!
    Attachments:
    Query TDMS.vi ‏62 KB
    tdms search.vi ‏24 KB

  • How can I create a query

    Hi BWers,
    How can I create a query, when the Customer run the report today he should see this month data.when the customer run the report for previous month he should see previous months data.How can I do this without going for Select options.

    Hi,
    If your customer run this report when he input a day in previous month, they want the whole previous month total data, you can use Replacement Path variable to get the previous month. If your customer run this report when he input a day in previous month, they want the data from 1st day to input day in the month, you can use customer exit variable to calculate 1st day in the previous month.
    When the Customer run the report today he can see this month data, those two type variables can do.

  • How can I execute a query from a BSP application?

    How can I execute a query from a BSP application?
    I´m trying to execute a Query from intranet. I´ve been looking for examples, but the templates I´ve found doesn´t help me.
    does anybody has an example?
    Thanks.

    Hi
    Have you designed the BSP application ?
    design it first with one page
    page will have layout and Event handlers
    Design the layout with the fields
    in the event handler there are events
    in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
    see the doc
    BSP
    To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
    If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
    The following tutorials are available:
    · First Tutorial: First Steps with Business Server Pages…
    · Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
    · Third tutorial: Our First Online Bookshop
    · Fourth tutorial: Further Developing the Bookshop
    · A small Tutorial is also available for your first steps with the Model View Controller design pattern.
    · For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
    When creating BSP applications, note the browser dependencies described in Note 598860.
    steps:
    1) start the transaction RZ10.
    2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
    3) u will also find three options in the same window.
    Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
    4) Now click on change button.
    5) here u will find parameter icm/host_name_full, so now set it as FQDN.
    6) Now copy ur settings with new version number.
    7) Activate that version.
    8) And now please restart ur WAS.
    So this will set ur FQDN, and also don't forget to login using Admin User.
    Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    if not then activate all.
    check this link
    Read this weblog...
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
    it consists of screen shots also
    Check it.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Regards
    Anji

  • How can i improve this query.

    Hi guys i am beginner , just wanted to know some info , how can i improve this query ..
    select *
    from tableA A, viewB B,
    where A.key = B.key
    and a.criteria1 = '111'
    and a.criteria2 = some_funtion(a.key)
    one more thing should function should be on left side of equal sign.
    will a join make it better or something else is needed more than that .

    952936 wrote:
    Hi guys i am beginner , just wanted to know some info , how can i improve this query ..
    select *
    from tableA A, viewB B,
    where A.key = B.key
    and a.criteria1 = '111'
    and a.criteria2 = some_funtion(a.key)
    one more thing should function should be on left side of equal sign.
    will a join make it better or something else is needed more than that .If you are a beginner try to learn the ANSI Syntax. This will help you a lot to write better queries.
    Your select would look like this in ANSI.
    select *
    from tableA A
    JOIN viewB B ON A.key = B.key
    WHERE a.criteria1 = '111'
    and a.criteria2 = some_function(a.key);The good thing here is that this separates the typical joining part of the select from the typical filter criteria.
    The other syntax very often let you forget one join. Just because there are so many tables and so many filters, that you just don't notice correctly anymore what was join and what not.
    If you notice that the number of column is not what you expect, you can easiely modify the query and compare the results.
    example A
    Remove View B from the query (temporarily comment it out).
    select *
    from tableA A
    --JOIN viewB B ON A.key = B.key
    WHERE a.criteria1 = '111'
    and a.criteria2 = some_funtion(a.key)
    example B
    You notice, that values from A are missing. Maybe because there is no matching key in ViewB? Then change the join to an outer join.
    select *
    from tableA A
    LEFT OUTER JOIN viewB B ON A.key = B.key
    WHERE a.criteria1 = '111'
    and a.criteria2 = some_funtion(a.key)(The outer keyword is optional, left join would be enough).

  • How Can I find SQL Query in Database

    Dear Experts,
    How Can I find SQL Query in Database.

    Hi,
    U mena what query got executed in db? u can try V$SQL for it.
    Regards
    Bharath

  • Hi all, how can i do a query precalculated

    Hi all, how can i do a query precalculated step by step please, cause my client want some queries without wait 1 min, cause the query last about 5 min cause it shows like 40 InfoObjects of master data, now, i read about this queries precalculated and can help to execute it in the mourning, and when the client execute the query , it'll be ready to show the data, thanks all, i need this help and any other commentary please let me know, thanks

    You need to create template and in the property of the template Data store, select precalculated. And following that if you are in 3.x you can use a reporting agent in resrep TC to schedule the query gets executed at specific time period, if you are in 7.0 then you can use broadcaster to schedule the time to fill the cache.
    thanks.
    Wond

  • How can I make my query to compare only columns of two tables... not the storage information?

    11GR2
    =-----------------------------------
    I am using below querry to compare two table that has same name, under two different users... But after making storage information false like below and  if the storage information is different on column level than it create "Alter modify " statements for the column ... How can I make my query to compare only columns of two tables... not the storage information?
    begin
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PRETTY', TRUE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES', FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE', FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'TABLESPACE',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'REF_CONSTRAINTS',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS_AS_ALTER',FALSE);
    End;
    select REGEXP_REPLACE(dbms_metadata_diff.compare_alter('TABLE','TABLE_NAME_A','TABLE_NAME_A','USER1','USER2'),('USER1...'),'', 1, 0, 'i') from dual

    I am using below querry to compare two table that has same name, under two different users... But after making storage information false like below and  if the storage information is different on column level than it create "Alter modify " statements for the column ... How can I make my query to compare only columns of two tables... not the storage information?
    If you want help you have to SHOW us what you are doing and how you are doing it; you can't just try to tell us in your own words.
    We can't see your computer screen.

  • How can I customize af:query and af:queryCriteria

    Dear all,
    I have a question,How can I customize <af:query> and <af:queryCriteria/>, for example change "search" button label to "find" ,
    Best regards,

    These changes must be made within the application skin.
    --RiC                                                                                                                                                                                               

  • How Can I Restore Deleted Query?

    Hi, gurus.
    Can anybody tell me How Can I Restore Deleted Query?
    Help me plz.

    If it has only been deleted from the role and not the object completely then it could still be found within infoareas in Bex, if the object has been deleted completely you could re-transport the query from the development system assuming it was created her in the first instance.
    I'm not sure if you can retrieve the query any other way, i do know there are procedures for workbook retrieval but for querys im not certain.

  • Can anyone tell me how can i optimize this query...

    Can anyone tell me how can i optimize this query ??? :
    Select Distinct eopersona.numident From rscompeten , rscompet , rscv , eopersona , rscurso , rseduca , rsexplab , rsinteres
    Where ( ( (LOWER (rscompeten.nombre LIKE '%caracas%') AND ( rscompeten.id = rscompet.idcompeten ) AND ( rscv.id = rscompet.idcv ) AND ( eopersona.id = rscv.idpersona ) )
    OR ( (LOWER (rscurso.nombre) LIKE '%caracas%') AND ( rscv.id = rscurso.idcv ) AND ( eopersona.id = rscv.idpersona ) )
    OR ( (LOWER (rscurso.lugar) LIKE '%caracas%') AND ( rscv.id = rscurso.idcv ) AND ( eopersona.id = rscv.idpersona ) )
    OR ( (LOWER (rseduca.univinst) LIKE '%caracas%)' AND ( rscv.id = rseduca.idcv ) AND ( eopersona.id = rscv.idpersona ) )
    OR ( (LOWER (rsexplab.nombempre) LIKE '%caracas%' AND ( rscv.id = rsexplab.idcv ) AND ( eopersona.id = rscv.idpersona ) )
    OR ( (LOWER (rsinteres.descrip) LIKE '%caracas%' AND ( rscv.id = rsinteres.idcv ) AND ( eopersona.id = rscv.idpersona ) )
    OR ( (LOWER (rscv.cargoasp) LIKE '%caracas%' AND ( eopersona.id = rscv.idpersona ) )
    OR ( LOWER (eopersona.ciudad) LIKE '%caracas%' AND ( eopersona.id = rscv.idpersona )
    PLEASE IF YOU FIND SOMETHING WRONG.. PLEASE HELP ME.. this query takes me aproximatelly 10 minutes and the database is really small ( with only 200 records on each table )

    You are querying eight tables, however in any of your OR predicates you're only restricting 3 or 4 of those tables. That means that the remaining 4 or 5 tables are generating cartesian products. (n.b. the cartesian product of 5 tables with 200 rows each results in g 200^5 = 320,000,000,000 rows) Then you casually hide this behind "distinct".
    A simple restatement of your requirements looks like this:
    Select eopersona.numident
      From rscompeten,
           rscompet,
           rscv,
           eopersona
    Where LOWER (rscompeten.nombre) LIKE '%caracas%'
       AND rscompeten.id = rscompet.idcompeten
       AND rscv.id = rscompet.idcv
       AND eopersona.id = rscv.idpersona
    UNION
    Select eopersona.numident
      From rscurso ,
           rscv,
           eopersona
    Where LOWER (rscurso.nombre) LIKE '%caracas%'
       AND rscv.id = rscurso.idcv
       AND eopersona.id = rscv.idpersona
    UNION
    Select eopersona.numident
      From rscurso ,
           rscv,
           eopersona
    Where LOWER (rscurso.lugar) LIKE '%caracas%'
       AND rscv.id = rscurso.idcv
       AND eopersona.id = rscv.idpersona
    UNION
    ...From there you can eliminate redundancies as desired, but I imagine that the above will perform admirably with the data volumes you describe.

Maybe you are looking for