Select all the elements with the same name of XMLTYPE

Hello

I have the following xml code stored in the XMLTYPE column:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0  -->
<!-- 2016-01-02T23:09:52 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="8f749217-51eb-4c79-9b11-5a3e11b5b1b4">
    <property name="com.jaspersoft.studio.data.sql.tables" value=""/>
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="MyXE_ssh"/>
    <queryString>
        <![CDATA[select * from dept where deptno=10]]>
    </queryString>
    <field name="DEPTNO" class="java.math.BigDecimal"/>
    <field name="DNAME" class="java.lang.String"/>
    <background>
        <band splitType="Stretch"/>
    </background>
    <title>
        <band height="221" splitType="Stretch">
            <staticText>
                <reportElement x="7" y="2" width="100" height="30" uuid="2bc03b83-e484-46e5-8681-48a9b01ac437"/>
                <text><![CDATA[DEPTNO]]></text>
            </staticText>
            <staticText>
                <reportElement x="160" y="2" width="100" height="30" uuid="3dfc25f3-6ff1-4186-8ee6-c71759a749a7"/>
                <text><![CDATA[DNAME]]></text>
            </staticText>
            <subreport>
                <reportElement x="10" y="60" width="544" height="20" uuid="e947974e-27bc-4b90-b0ee-f709b969c91b"/>
                <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                <subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression>
            </subreport>
        </band>
    </title>
    <pageHeader>
        <band height="73" splitType="Stretch"/>
    </pageHeader>
    <columnHeader>
        <band height="36" splitType="Stretch"/>
    </columnHeader>
    <detail>
        <band height="35" splitType="Stretch"/>
    </detail>
    <columnFooter>
        <band height="45" splitType="Stretch"/>
    </columnFooter>
    <pageFooter>
        <band height="54" splitType="Stretch"/>
    </pageFooter>
    <summary>
        <band height="44" splitType="Stretch">
            <subreport>
                <reportElement x="130" y="10" width="200" height="34" uuid="892a1adf-f7e7-4804-8f7f-a5227516afb5"/>
                <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                <subreportExpression><![CDATA["rep1/subrep2.jasper"]]></subreportExpression>
            </subreport>
        </band>
    </summary>
</jasperReport>

Please, is it possible to select all < subreport > items, so the result of a query would be something like:

<subreport>
                <reportElement x="10" y="60" width="544" height="20" uuid="e947974e-27bc-4b90-b0ee-f709b969c91b"/>
                <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                <subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression>
 </subreport>
 <subreport>
                <reportElement x="130" y="10" width="200" height="34" uuid="892a1adf-f7e7-4804-8f7f-a5227516afb5"/>
                <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                <subreportExpression><![CDATA["rep1/subrep2.jasper"]]></subreportExpression>
</subreport>

The problem is this subreport sections can be nested more or less anywhere, so I do not know the path. Any suggestions would be much appreciated.

Thank you

Pavel

The XPath ' / /' means selects nodes in the document from the current node that match the selection, regardless of where they are.  If the XPath ' / / the subreport ' will extract all nodes called subreport wherever they are in the document or not.  So something like...

data (donnees_xml))

Select xmltype)

'

"http://JasperReports.sourceforge.net/JasperReports" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" "xsi: schemaLocation ="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"name ="Blank_A4"pageWidth ="595"pageHeight = columnWidth"842"="555"leftMargin ="20"rightMargin ="20"topMargin ="20"bottomMargin ="20"uuid ="8f749217-51eb-4c79-9b11-5a3e11b5b1b4">

<p class="reply"> <p class="reply"><band height="221" splittype="Stretch"><p class="reply"> <p class="reply"><staticText><p class="reply"> <p class="reply"><reportElement x="7" y="2" width="100" height="30" uuid="2bc03b83-e484-46e5-8681-48a9b01ac437"></reportElement></p> <p class="reply"><text><![CDATA[DEPTNO]]></text></p> <p class="reply"></staticText></p> <p class="reply"><staticText><p class="reply"> <p class="reply"><reportElement x="160" y="2" width="100" height="30" uuid="3dfc25f3-6ff1-4186-8ee6-c71759a749a7"></reportElement></p> <p class="reply"><text><![CDATA[DNAME]]></text></p> <p class="reply"></staticText></p> <p class="reply"><subreport><p class="reply"> <p class="reply"><reportElement x="10" y="60" width="544" height="20" uuid="e947974e-27bc-4b90-b0ee-f709b969c91b"></reportElement></p> <p class="reply"><connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression></p> <p class="reply"><subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression></p> <p class="reply"></subreport></p> <p class="reply"></band></p> <p class="reply">

the double)

Select *.

from xmltable (XMLNamespaces (DEFAULT 'http://jasperreports.sourceforge.net/jasperreports'),

' / / the subreport '

passage (select donnees_xml data)

columns

xmltype subreport path '.')

SUBREPORT

http://JasperReports.sourceforge.NET/JasperReports">

http://JasperReports.sourceforge.NET/JasperReports">

2 selected lines.

Tags: Database

Similar Questions

  • I want to copy all my jpg files to another directory (a portable hard drive) with some of the same names of JPGs, but not necessarily all. What will happen? The word 'COPY', will be some of the deleted files be added or nothing at all.

    I have a LOT of pictures in my computer (over a thousand) and I want to put them on a portable hard drive, I bought (1 terabyte) but I won't write any of the names of existing files with different images. IS THIS POSSIBLE? Do I need software or special hardware? I tried the copy/paste standard as well as move files to the new directory, but it seems that I can lose files. I'm not sure if the files that are missing (or lack, in my opinion) are not copied. When I finished emptying the directory, it shows that it is empty but the new directory does not seem to have any additional files that should be there based on the counting of the files before and after.

    Thanks for any help you can provide, Bill

    1: right-click and then drag the pix on the external drive. Release the right mouse button and choose copy here. They are there?  Now remove it from the computer.

    2: you can see pix of the same name overwrite each other, or be done with (1), (2), etc.. But even in this case, they will be interspersed with the former. If keep you them in separate folders with different names, that should not happen. Personally, I rename all the pix before storing them. You can select the set instead of the code of the camera and a group, rename the first holiday 2009 yo and the rest will be renamed holiday 2009 and each havf will one (1), (2), (3), after them.

    It is also a nice freeware tool which, among other things, can rename a group of photos easily.

    FastStone Image Viewer
    http://www.FastStone.org/

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • How to display all the data to a database with the same name?

    I am familiar with the creation of basic website, but I want to learn how to create more dynamic Web sites.

    I create a Web site where a user can register on the site and counts there. Once into account here, there will be different options they can do.

    The new application form is in the section account it is configured for a user to submit a multiple application and save it in the database, that works, but the problem I have is during the examination of the application, it does show that one of them, not all.

    How can view the request of a user, sign in?datab.PNG

    revreq.PNG

    I can get to the screen, but not all.

    Is it possible to do this or any suggestions on how to do?

    Here's the code for the ReviewRequest:

    <? PHP require Connections/Connections.php"?" >

    <? PHP

    session_start();

    {if (isset($_SESSION["fname"]))}

    }

    else {}

    Header('Location:NewRequest.php');

    }

    ? >

    <? PHP

    $User = $_SESSION ['Pnom"];

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    $row = $result-> fetch_array (MYSQLI_BOTH);

    $_SESSION ["FirstName"] = $row ["Fname"];

    $_SESSION ['location'] = $row ["Location"];

    $_SESSION ['description'] = $row ['Description'];

    ? >

    <! doctype html >

    < html >

    < head >

    < link href = "CSS/Master.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "

    < meta charset = 'utf-8 '.

    ReviewRequest < title > < / title >

    < / head >

    < body >

    < div class = "Container" >

    < div class = "Header" > < / div >

    < div class = "Menu" >

    < div id = 'Menu' >

    < nav >

    < ul class = "cssmenu" >

    < li > < a href = "Account.php" > account < /a > < /li > ""

    < li > < a href = "UpdateAccount.php" > update account < /a > < /li > ""

    < li > < a href = "NewRequest.php" > new request < /a > < /li > ""

    < li > < a href = "ReviewRequest.php" > Review Request < /a > < /li > ""

    < li > < a href = "LogOut.php" > sign out < /a > < /li > ""

    < /ul >

    < / nav >

    < / div >

    < / div >

    < div class = "LeftBody" > < / div >

    < div class = "RightBody" >

    < name of the form = "form1" method = "post" action = "" >

    < div class = "FormElement" >

    < label for = "FirstName" > < / label >

    < input name = "FirstName" type = 'text' required class = "TField" id = "First name" value = "<?" PHP echo $_SESSION ['FirstName'];? ' > ' >

    < / div >

    < div class = "FormElement" >

    < label for = 'Place' > < / label >

    < input name = "Location" type = 'text' required class = "TField" id = 'Location' value = "<?" PHP echo $_SESSION ['Location'];? ' > ' >

    < / div >

    < div class = "FormElement" >

    < label for = "Description" > < / label >

    < input name = "Description" required class = "TField" id = "Description" value = "<?" PHP echo $_SESSION ['Description'];? ' > ' >

    < / div >

    < / make >

    < / div >

    < div class = "Footer" > < / div >

    < / div >

    < / body >

    < / html >

    You would browse the information stored in the $result variable.

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    As below:

    fetch_assoc()) {? >}

    (I don't see a reason to assign data to a variable of $_SESSION?)

    You also probably would be well advised to select information based on a uniquie rather than a name id - if two people have the same name youre UNLESS you want to make sure that two identical Fname can be stored in your tabe stuffed.

    $result = $con-> query ("SELECT ALL * from newrequest where userID = '$userID'");

    userID |     Fname |     Location |                      Description

    8 the end of the road muddy and foggy

    11 this something, no idea

    8               the              rstreet                           rah

    8 is not a clue

    14 Hello Goodbye

  • How is it all my email that comes from facebook comes with the same name

    All the mail that comes from my facebook has the same name as wenfel sand when his mother, wife, friend ect.
    What I've done and how to fix

    Because somewhere along the way you have saved an email from Facebook to your address book, and it has a name associated with it. Will find this contact in the address book and delete the name.

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • All with the same name and more many nested directories

    Ideas: when trying to install Window7 it cannot be installed because of a folder and its subfolder had the same name... called a duplicate. There is a process to find duplicates files which takes you back to Vista to correct the problem. However my name of the folder's subfolders 28 user/name/photos/images/pictures etc all with the same name. When you try to delete more are added. There were files, but I moved to them but there is now way to delete the files. Strange but true. Help to install Windows 7, they should be deleted.

    First try to run a disk check. Open the computer and right click on the drive,
    choose Properties, Tools tab, and then under check errors click check now and
    Follow the prompts.
     
    --
    ..
    --
    "cjones5" wrote in message news: 8cecad2e-6e5d-49ef-a6ec-e40324ea19f5...
    > Remember - this is a public forum so never post private information such
    > as numbers of mail or telephone!
    >
    > Ideas: when trying to install Window7 it cannot be installed due to a
    > folder and its subfolder had the same name... called a duplicate. There are
    > a process designed to find duplicate files which takes you back to Vista for
    > correct the problem. However my folder name is
    > subfolders user/name/photos/pictures/images etc. 28 all with the same
    > name. When you try to delete more are added. There were some files but I
    > displaced but there is now to remove the files. Strange but true.
    > Help to install Windows 7, they should be deleted.
    >
    > a.. You have problems with programs
    > b.. Error messages
    > c.. Recent changes to your computer
    > d.. What you have already tried to solve the problem
    >
     
     
  • How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    "People need be able to find these without having to look inside each book TOC.

    Sorry, but I'm not a big fan or user of this sensitive arrangement "New kid on the block. Therefore, it may be that I am simply misunderstanding because I do not regularly use it. Of what you say, it seems to me that if you (or more precisely your users) are not able to click on the right side, where he says 'Getting Started' or 'List of Email Campaign' and see these topics open and view the content with search terms highlighted?

    Regarding the "bookmarks", those that are normally visible by the user and will be not viewable unless the name of the bookmark appears also as text within the topic. Although, if the two are different, you could probably get there by adding the name of the bookmark as a keyword search in the properties of the section.

    In any case, I feel that at this point, I can just be frustrating you and you may need someone else to try to help that probably better understand the issue.

    Sorry, I was not able to help.

    See you soon... Rick

  • [JS CS3] First plan a selection of documents when others with the same name?

    I have a few scripts that are used to perform various operations on the current selection in InDesign. Under normal circumstances these work very well, but I can't seem to reliable get the document/selection of foreground when there is another document opened with the same name. Most of the references to the document and any reference to the selection, I've tried so far will simply lead to this document which was recently opened (and has the same name).

    app.activeDocument.fullName always return the path to the most recently opened document of the same name, but app.documents [0] .fullName returns the correct path. Try to get the selection well will always return the selection of the most recently opened document of the same name, regardless of the question of if I try app.selection, app.activeDocument.selection or app.documents [0] how. I also tried with getElements() [0] annexed to the document reference, but it makes no difference.

    My primary environment is still CS3 and the problem seems to be that it only references the documents by name. Short tests with CS5 indicate that this has been resolved by Adobe, probably because it now makes reference to documents using a default id. Haven't tried CS4 but its document object not having a property id guess it will behave the same as CS3. Is there a way to get around this, or is the best I can do to detect the problem (a simple app.activeDocument! = app.documents [0] comparison seems to work reliably) and refuse to run if encountered?

    The real problem is that the collections in the documents with the same name think to bad.

    The APID solution was trying to solve the problem, but because it was not the document reference that was broken, the patch did not help...

    Substances

  • I changed somehow all my files with the same name, how the other way around how they had before

    I tried moving a file in My Documents to a new subfolder, but somehow ended up changing all my documents and files to the same name.  How can I reverse this back to how it was at the beginning?

    ALT + type EU or Ctrl + Z is the last Undo action.

  • Mix records with the same name of the internal and external space (clip +)

    Hello

    I have a question regarding the reading of 'File': if having a folder on the inside and external space microsd, both are named "graphics". Is it possible to shuffel these 2 files with the same name? There are also a few other folders I want to be included, so I just couldn't use the "play all" option. I don't want to use replay by id3tag because mines are always screwed up and would be a lot of work to mark all the appropriate files in the.

    Thanks for help

    m.

    I've not played with playlists much.

    If ID3 tags are all screwed up, I would use the MP3tag utility to change the label of the kind in "Charts" on internal and external memory, then you access the kind-> just Charts and play at all.  It is probably not an option if your labels are blank and you don't want to ruin you, but it's really quick & easy to do with MP3tag.

    I think that even Windows Explorer (XP/Vista) can change the field type in the batch (select all 'charts' music files, click right properties, summary (Advanced) tab change the field of its kind in "Charts", OK).  I keep the ID3tags 'good' on my PC, but edit on my player according to the needs.

    Just another idea which is really easy if you're not afraid of screwing the ID3 tags.

  • DISABLE "there is already a file with the same name to this place.

    Window 7. 64 bit. How do you turn OFF DISABLE, CANCEL, DELETE, STOP the pop-up 'MOVE the FILE'?

    As a user since the days of DOS command lines and having had a routine all the way through to XP, this new window is one of the most annoying pop ups for an experienced user. If it isn't a swith toggle check box or an other power selection for this message, there must be. And if there is, you did it quite hard to find.

    The dialog box that appears in Windows 7 that starts with "there is already a file with the same name to this place. It lists then the three choices - "Copy and replace", "Do not copy" and "copy, but keep both files.

    I managed several libraries of forms which oblige me to replace the files throughout my day. I make a copy of the file I replace first of all, for archival purposes and this pop-up box is, well, it's boring. There must be a way to disable.

    This box comes up to move files and to copy the files.

    Any help in these turn off would be appreciated.

    See you soon.

  • Two objects with the same name

    Hi all

    In my production database, there is a materialized view and a table with the same name. The two objects have the same number and type of columns.

    Record from user_object table

    OBJECT_NAMESUBOBJECT_NAMEOBJECT_IDDATA_OBJECT_IDOBJECT_TYPECREATEDLAST_DDL_TIMETIMESTAMPSTATUSTEMPORARYGENERATEDSECONDARYNAMESPACEEDITION_NAME
    TEST_OBJ151373151373TABLE22/06/201222/06/20122012-06 - 22:15:39:30VALIDNNN1
    TEST_OBJ152287MATERIALIZED VIEW22/06/201208/03/20122012-06 - 22:16:08:46VALIDNNN19

    I have another mode to normal display, TEST_NORMAL_VIEW, which selects the data of TEST_OBJ.

    Then, on which table data select. Please give some input on this subject.

    Kind regards

    Matondo

    A materialized view has 2 objects internally for her

    1. the materialized view (it is more of a model)

    2. the table that stores the actual data.

    So when you create a materialized view, you can see 2 objects created by querying the USER_OBJECTS.

    See this

    SQL> create materialized view my_test_mv as select * from emp;
    
    Materialized view created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV';
    
    OBJECT_TYPE        OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE              MY_TEST_MV                  1638964
    MATERIALIZED VIEW  MY_TEST_MV
    

    Now, you may notice that DATA_OBJECT_ID has null for the MV. DATA_OBJECT_ID is the Segment where the data is stored. As MV object is just a model and does not have data to null.

    The user has no direct access to the MY_TEST_MV table. See this

    SQL> drop table my_test_mv;
    drop table my_test_mv
               *
    ERROR at line 1:
    ORA-12083: must use DROP MATERIALIZED VIEW to drop "KARTHICK"."MY_TEST_MV"
    

    Also, you can associate an existing table to a materialized using the clause ON TABLE PREDEFINED view.

    Here is an example

    SQL> drop materialized view my_test_mv;
    
    Materialized view dropped.
    
    SQL> create table my_test_mv_new as select * from emp;
    
    Table created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV_NEW';
    
    OBJECT_TYPE         OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE               MY_TEST_MV_NEW              1638967
    
    SQL> create materialized view my_test_mv_new on prebuilt table as select * from emp;
    
    Materialized view created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV_NEW';
    
    OBJECT_TYPE         OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE               MY_TEST_MV_NEW              1638967
    MATERIALIZED VIEW   MY_TEST_MV_NEW
    
    SQL>
    

    Once you associate a Table with a MV direct Table access is limited. You can directly access only the MV.

  • Several files with the same name.

    Cannot publish to Business Catalyst because of a fatal error, where it is said "why do we have several files with the same name?  The website and all its contents have not changed in more than a year with the exception of minor changes to the wording so unable to understand what the error is encountered. Are there not better misdiagnosed at one point less for the files in question.

    The problem is the result of a mixture of case-sensitive and case-insensitive between how files within the .oam are put into interaction with and what is written in the muse_manifest.xml file during a re - download full compared to an incremental download.

    If all .oam packages files are tiny and the original .oam were replaced in Muse with the all new tiny .oams, then you should select Upload: publish all the files in the dialog box Options. From there, forward publication of incremental changes should work without errors.

  • CF8 cfquery multiple table join with the same names of columns - default

    This seems to be a defect in the CF8 cfquery object. I'm at a loss as to a solution or a good work around. With regard to the substance, this query is generated dynamically on the fly based on what is happening in it a user. This isn't the most elegent SQL but work and return all columns. The app itself is a data viewer to look at the logs. Here is an example of a query being generated.

    Select *.

    of web_trans, web_info_trans, web_res_trans

    where (web_info_trans.trans_dte > = '' 2008-12-1)

    and web_info_trans.trans_dte < '' 2008-12-2)

    and (web_info_trans.trans_dte = web_trans.trans_dte)

    and (web_info_trans.trans_num = 5060345)

    and (web_info_trans.trans_num = web_trans.trans_num)

    and (web_res_trans.trans_num = 5060345)

    and (web_res_trans.trans_num = web_trans.trans_num)

    and (web_trans.web_trans_cde = "NTUI")

    and (web_trans.web_status_cde = 'P')

    and (web_trans. TRANS_NUM < 5060347)

    order of web_trans. TRANS_NUM / / desc

    These three tables contain a similar column called ZIP_CDE. They contain different values, and when this query is executed in Microsoft Query Analyzer results are displayed correctly. Run this same query SQL with CFQUERY and the value of one of the other tables (web_trans) will eventually replace the value for the other columns called ZIP_CDE. The exact amount columns are retruned only values some how get corrupted.

    This is a defect of cf8 is a book autour or an update that resolves this problem that I may have missed?

    Thank you for the ideas.

    Thus it seems still as a default since CF is essentially where, except for the return value play. Other query tools return results correctly so for me, it turns out be CF bug at a certain level.

    Actually I'm swinging to agree with you here, but not for the same reason.  CF actually * is * get all the columns back (as you say), it just doesn't expose a way to tell the difference between a column called 'x' and an another column called 'x', because the way to access the data in columns is simple queryname [columnName] [rowNumber] (or a Variant fo this, but all the amount of variations to that or abbrev. it).  This code shows how he has all four columns of the original two queries (being a stand-in for tables, in this case):


    Q1 = queryNew("");
    Q2 = queryNew("");
       
    queryAddColumn (q1, 'id', [1,2,3,4]);
    queryAddColumn (q1, "data", ["one", "two", "three", "four"]);
    queryAddColumn (q2, 'id', [1,2,3,4]);
    queryAddColumn (q2, "data", ["tahi", "rua", "toru", "wha"]); It's Maori, in case you are interested


    SELECT *.
    Q1, q2
    WHERE q1.id = q2.id

    So CF knows there are four columns (a call getMetadata (q3) get also demonstrates this), but it does not expose a way to approach the second (or even greater) column of the same name.  This is the bug/shortfall.

    However, relying on an underlying coldfusion.sql.QueryTable method, you can rename the columns, so:

    Then you're OK.

    I would be normally reluctant to recommend doing this, because these methods change from version to version of CF, but it's your call whether this approach will help you.

    To be honest, I'm with Owain who, even in SQL one generally doesn't work with columns with the same name, an alias them qualified with a table name/alias. As the table columns from of is not returned by SQL with the result set, it must be evidence against this by folding the columns in the first place.

    Also, I wonder at the bottom of the extraction of data, you don't really know the structure, that is to say, do SELECT *.  How can you know not even that is ours as the first column, second column, etc.?  I don't think that SQL applies in fact a contract that, t - it?  (I don't know).

    What are you actually do here?

    --

    Adam

  • Columns with the same name but different data or precision length.

    DB version: 10 gr 2

    In a diagram, I need to find all of the columns with the same name but different or precision data length (if the column is of type number). I know I have to use the USER_TAB_COLS view for this. But I need to find a logic to compare the names of columns and its lengths.

    something like

    select t1.table_name
         , t1.column_name
         , t1.data_type
         , t1.data_length
         , t2.table_name
         , t2.column_name
         , t2.data_type
         , t2.data_length
      from user_tab_columns t1
         , user_tab_columns t2
     where t1.table_name != t2.table_name
       and t1.column_name = t2.column_name
       and t1.data_type = t2.data_type
       and t1.data_length != t2.data_length
    

    ... could be a starting point.

Maybe you are looking for

  • How to disable him drag the text selected for searching the Web?

    How to disable him drag the text selected for searching the Web?

  • Info POWER needed to upgrade GRAPHICS CARDS!

    I have a HP PAVILION p6631p and ide like to add a graphics card, but I was told that I had to improve my diet.The card I bought is the SAPPHIRE RADEON R7 260 X 2 GB and I was told I need a 500 watts or more power supply.I was watching MARK CORSAIR po

  • Halo 3 PC

    Halo 3 will come to the PC? If so when? Thank you

  • How to analyze the m1212nf printer

    I installed the cd on my pc and I can print, but how can I scan m1212nf n.

  • UCS B200 M4 Mini

    Hello Cisco UCS B200 M4 is supported on the UCS solution mini? When I check UCS B200 M4 technical data sheet below, he says "the UCS B200 M4 Blade Server installs in a Cisco UCS 5100 Series Bladeserver chassis or chassis of Server Blade Mini UCS. » h