Custom hash table object

Hi I have the following script which should provide an array with the names of vm and the datastorecluster they are on: -.

$hashT = @ {}

$vmlist = import-Csv "C:\vmMove\vm3.csv".

foreach ($vm to $vmlist)

{

$vmname = get - vm $vm.name

$dscname = get-datastorecluster - vm $vm.name

$hashT = @ {}

VMNAME = $vmname

DSCLUSTER = $dscname

}

}

$props = New-Object psobject-property $hashT

$props | FT - AutoSize

There are four hosts listed in the csv file, but when I run this table only wrote a line for the last host does not include the first three hosts.  What I am doing wrong? Why can't that get the hash table to view details for all hosts contained in csv.

I have spent the better part of a day on this and just can't see where I'm wrong - thank you

If you want just a table with these objects in there, you could do

$hashT = @)

$vmlist = import-Csv "C:\vmMove\vm3.csv".

foreach ($vm to $vmlist)

{

$vmname = get - vm $vm.name

$dscname = get-datastorecluster - vm $vm.name

$hashT += new-Object PSObject - property @ {}

VMName = $vm. Name

DscCluster = $dscname

}

}

$hashT

Tags: VMware

Similar Questions

  • Custom clickable tables objects and legends

    Hello

    The requirement is a little weird but urgent .

    Well all I need is a complete flexible graph where each element on the x-axis or each element on the y-axis is clickable. Also, since I use a bar graph. I don't want to click on the bar and get more details on the data, which gives an in-depth analysis on how we arrived at such a number.

    Even the chart legend should be clickable in this case.

    For example

    Chart.JPG

    In this case gold, silver and Bronze on the legend should be clickable, which would generate more data.

    In addition, 'USA', 'China', 'Russia' and the bars representing the corresponding values must be clickable.

    Please let me know if I'm not clear.

    Thank you very much

    Piyush

    You can click on the bars and legend with the help of the change in default value & click Properties as below:


    dataProvider = "{YourDataProvider}".
    selectionMode = 'unique' multiple ///or you want
    change = "Alert.Show ("Hi I'm Bar")" "
    >

    . / / instead of the alert, you can call your function

    While click on axis I think probably you need to use AxisRenderers, but still I don't know if converters supports, click or not.

    Check this box

    http://livedocs.Adobe.com/Flex/3/langref/MX/charts/AxisRenderer.html

    It can help.

    If this post answers your question or assistance, please mark it as such.

    See you soon,.

    PRAD.

  • Selection of one-dimensional Array objects in a hash table

    Suppose I have a hash table with a list of names of virtual machine.  I also have a variable array containing objects of virtual machine and all of their properties.  I want to scroll the array variable and delete all virtual machine names that do not exist in the hash table.  How do I would accomplish this?

    Thank you

    If your table is called $inArray and your hash table is called $hashTab, you could do something like that

    $outArray = $inArray | %{

    If ($hashTab.ContainsKey ($_.)) VMName)) {}

    $_

    }

    }

    The selected objects will be $outArray table.

  • Hash table returns null

    It's the stumping me. I add a key and a value in a hash table, pass in the key and retrieve the value. Basic enough, but when I go to retrieve the value a second time (after the restart of the application), it returns null.

    If it isn't exactly the code that would be the basic scheme:

    class A
    {
         private static Hashtable table = new Hashtable();
    
         public static Object getObject(Class clazz)
         }
              return A.table.get(clazz);
         }
    
         public static void setObject(Class clazz, Object obj)
         }
              A.table.put(clazz, obj);
         }
    
         //Code stuff...
    }
    
    class B
    {
         public static void main(String[] args)
         {
              A.setObject(C.class, new C());
              Object obj = A.getObject(C.class); //This works
         }
    
         //Code stuff...
    }
    
    class C
    {
         //Code stuff...
    }
    

    What happens on the 9550 Simulator and is fixed after restarting the Simulator but work always and only the first time through. If the app is closed, then reopened, then it returns null, even if the hash table was always the same items.

    Ah. When you run the application a second time, he rebuilt serializers to persistent store. Unfortunately, your objects of the class are new instances, so that they cannot be used as persistent hash keys. I suggest you use class names as keys rather than objects of class themselves.

  • Returns a copy of the hash table

    I have problems by returning a copy of a hash that is normally stored in the persistent store table.

    final class SyncCentres {
        private static Hashtable syncCentres;
        private static PersistentObject persist;
        private static final long ID=0xdfeab99e040a223aL;
    
        static{
            persist=PersistentStore.getPersistentObject(ID);
            syncCentres=(Hashtable)persist.getContents();
            synchronized(persist){
                if(syncCentres==null){
                    syncCentres=new Hashtable(4);
                    persist.setContents(syncCentres);
                    persist.commit();
                }
            }
        }
    
        static Hashtable getSyncCentres(){
            return syncCentres;
        }
    
    } // Class
    

    When I get the hash table in another class by using the static method.

    Hashtable hash=SyncCentres.getSyncCentres();
    

    It turns out that it is not a copy. Change the hash variable will edit the SyncCentres class as well. Is this normal? How can I get a copy of it?

    Java, copy and pass the reference by value, not the object.
    See
    http://www.Yoda.arachsys.com/Java/passing.html
    or
    http://www.JavaWorld.com/JavaWorld/javaqa/2000-05/03-QA-0526-pass.html
    If you want a true copy of the hash table you need to clone and each of its objects.
    You can also copy all objects to a new hash table, but these are always references to the same objects as in the first hash table.

  • Hash table type

    Hello

    I'm trying to sort a hastable that contains the key and values.

    The keys are New york, los angles, Texas, port Aerizona

    And values are 60.123, 34.3434, 56.4544, 67.565, 56.7878

    Now, I want to sort the hash table based on the values which is lesser in value.

    I tried comparer class using vector simplesorting, but I can only adjust the values but the keys remains unchanged in its position.

    Please help me how to sort hastable with keys and values

    I want the output of this title

    34,3434 losangles

    Texas 56.4544

    port 56.7878

    nwyork 60.123

    aerizona 67.565

    Thanks in advance

    I suggest that you check out all the hastable keys and add to a SimpleSortingVector. You can them iterate thought the sorted keys, by using the keys to retrieve objects from the hash table.

  • ListField using the hash table

    Hi guys, new here so please, be gentle.

    I was wondering if there is way to a ListField (or something similar) but using a hash instead of a vector table. I searched through the forums without success. And if it is would it be possible to display the incredible list. (List in the hash table and sort by alphabetical order, via the keys)

    The hash table structure K = String (name of player), V = object reader.

    If this can be done using a hash table, is there a way to do this using a vector. So that I could search the data structure for a players name and return the object.

    Sorry if it's confusing or vague. I'm not not used to describe my problems!

    Thank you very much for the help.

    You can also move forward and persist in the hash table, and then build an index using a few stores of SimpleSortingVector who keys in order.

    There are a lot of options... you just need to decide which is best for you.

  • Use of hash Tables

    HI guys,.

    I have a script that takes a list of VM and collects various pieces of information on the

    • Name, host name, CPU Num, Num disks, IP info, etc...

    The script works fine, but I still need to load the data into Excel and manipulate manually until the data can be used with other scripts. I wonder if there is a way to eliminate this manual work?

    Specifically, for each computer virtual, the script determines the number of hard drives and returns the following for each disk

    1. HDDx name
    2. HDDx data store
    3. Path of HDDx (file and hard in the data store name)

    I can be left with dozens of lines for all virtual machines in the hash table, and each virtual computer might have multiple entries for each of the 3 items above.

    E.g. HDD1, HDD2, HDD3 Datastore, DataStore DataStore...

    What I want to do is take all the 'HDDx DataStore' entries in the hash table and return only the unique entries so that I can then turned off and get specific on these specific data stores information, number of virtual machines, the names of the machines virtual etc...

    I tried to use wildcards, which of the statements, etc... I can't make it work.

    Fill script I use is attached.

    This is the closest that I just get this work but, it is still not add all the information from the data store in the hash table second $dsReport

    In the attached script, I have highlighted the lines of $dsReport

    $report = @)
    $dsReport = @)
    ...
    ...
    $hdd = 1
    $Computer | Get-hard drive | {foreach}
    Name of $GeneralProp.Add ("HDD$ ($hdd) ', $_.") Name)
    $GeneralProp.Add ("HDD$ ($hdd) data store", $_. ") FileName.split("") [0]. TrimStart("["). TrimEnd("]"))
    $GeneralProp.Add ("HDD$ ($hdd) path', $_.") FileName.split("") [1]. TrimStart("["). TrimEnd("]"))
    Capacity of $GeneralProp.Add ("HDD$ ($hdd) ', $_.") CapacityGb)
    $dsProp=@{Name = $_. FileName.split("") [0]. TrimStart("["). TrimEnd("]")}
    $hdd ++
    }

    ...

    ...

    $dsReport | SELECT name - Unique

    Any help is appreciated

    Thank you


    Something like that?

    Get - vm | {foreach}

    $disks = @)

    $_ | Get-hard drive | {foreach}

    $dsname = $_. Filename.Split("") [0]. TrimStart("["). TrimEnd("]")

    $disks += $_. Add-Member - MemberType NoteProperty - name DatastoreName - $dsname - PassThru of value

    }

    $disks | Group-object - property DatastoreName

    }

  • Defeated by tri-objet in the hash Table

    Hi guys, I need someone who is smarter than me to help please, suck for 3 days now.

    The Script below uses a CSV file as a database to pull total VMs in my vcenter in a bar chart, showing the trend upward. . My boss wants it as soon as possible.

    I can not however the $HT variable to sort by date (sorting and tri-objet doesn't seem to work, sort of NAME or WEEK)

    Need help please, I'm stumped.

    Note, tips cut off when I pasted it, like}'s and impossible.

    # Created by ELMO

    Add-pssnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue

    $Date = Get-Date -Format yyyy/MM/dd

    $VCRUN = ' Ma Blanked to vCenter '

    $Report = @()

    $USER = "Ma Blanked user"

    $PWD = "Ma Blanked on pwd"

    Write-Host ' Connection to $VCRUN"" "".

    VIserver disconnect -Confirm:$false

    Se connect-VIServer -Server $VCRUN -User $USER -Password $PWD -wa 0

    $VMsON = Get-VM | Where-Object {$_. PowerState -eq "PoweredOn"}

    $VMsTotal = $VMsON. County

       $Row = "" | Select Week, VMsTotal

       $Row . Week = $Date

       $Row . VMsTotal = $VMsTotal

       $Report += $Row

       $ReportView = $Report | Export-Csv -Path C:\PS\Output\VMTrendDB.csv -Append -NoTypeInformation #-Append the data at the bottom of the existing file

    $MyData = Import-Csv C:\PS\Output\VMTrendDB.csv | Select-Object week ,VMsTotal

    $HT = @{}

    foreach ($Data in $MyData) {

    $HT. Add($Data. Week , $Data . VMsTotal)

    }

    $HT = $HT | Tri # read on the Technet site as tri-objet does not change the actual table, but only the output. Thus uses only sort. $HT = HT Triedd | Sort = Name object AND object week type, they do not change my picture on the order of dates

     

    Function Créer-Chart() {

    Param(

      [String] $ChartType ,

    [String]$ChartTitle,

      [String] $FileName ,

    [,String]$XAxisName,

      [String] $YAxisName ,

    [Int]$ChartWidth,

    [Int]$ChartHeight,

    [HashTable]$DataHashTable

    [Sub] [Reflection.Assembly]:LoadWithPartialName ("System.Windows.Forms"( )

    [Sub] [Reflection.Assembly]:LoadWithPartialName ('System.Windows.Forms.DataVisualization'( )

    #Create our graphic object

    $Chart = new-object System.Windows.Forms.DataVisualization.Charting.Chart

    $Chart. Width = $ChartWidth

    $Chart. Height = $ChartHeight

    $Chart. Left = 10

    $Chart. Top = 10

    #Create a chartarea to profit and add this to the table

    $ChartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea

    $Chart. ChartAreas . Add ($ChartArea)

    [void]$Chart. Series . Add("Data")

    $Chart. ChartAreas [0]. AxisX . Interval of = '1' #Set to 1 (default is auto) and allows all the values of the X axis appears correctly

    $Chart. ChartAreas [0]. AxisX . IsLabelAutoFit = $false;

    $Chart. ChartAreas [0]. AxisX . LabelStyle . Angle = "-45"

    #Add real data to our table

    $Chart. Series ["Data"]. Points . DataBindXY ($DataHashTable. ) Key , $DataHashTable. Values)

    if (($ChartType -eq "Pie") -or ($ChartType -eq "pie")) {

    $ChartArea. AxisX . Title = $XAxisName

    $ChartArea. AxisY . Title = $YAxisName

    $Chart. Series ["Data"]. ChartType = [System.Windows.Forms.DataVisualization.Charting.SeriesChartType]:Pie

    $Chart. Series ['Data'] ['PieLabelStyle'] = "Outside"

    $Chart. Series [« Data »] [« PieLineColor »] = "Black"

    $Chart. Series ['Data'] ['PieDrawingStyle'] = "Concave"

    ($Chart. Series ["Data"]. Points . FindMaxByValue()) ["Exploded"] = $true

    $Chart. Series ["Data"]. Label = ' #VALX = #VALY\n ' # make a X & Y Label of the data in the (useful for Pie chart) plot area (display the axis labels, use: Y = # ControlChars.LF = #VALX)

    elseif (($ChartType -eq "Bar") -or ($ChartType -eq "bar")) {

    #$Chart.Series ["Data"]. Sort ([System.Windows.Forms.DataVisualization.Charting.PointSortOrder]: descendant, "Y")

    $ChartArea. AxisX . Title = $XAxisName

    $ChartArea. AxisY . Title = $YAxisName

    # Find point with max/min values and change color

    $maxValuePoint = $Chart. Series ["Data"]. Points . FindMaxByValue()

    $maxValuePoint. Color = [System.Drawing.Color]:Red

    $minValuePoint = $Chart. Series ["Data"]. Points . FindMinByValue()

    $minValuePoint. Color = [System.Drawing.Color]:Green

    # make the bars in the 3d cylinders

    $Chart. Series [« Data »] [« DrawingStyle »] = "Cylinder"

    $Chart. Series ["Data"]. Label = '#VALY' # Label Y to the data in the plot (useful for the diagram bar) area

    else {

    Write-Host "no Chart Type has been defined. Try again and enter Pie or Bar for the ChartType parameter. The table will be created in the form of standard bar graphic chart for now. " -ForegroundColor Cyan

     

    #Set the title of the chart for the date and time

    $Title = new System.Windows.Forms.DataVisualization.Charting.Title

    $Chart. Titles . Add($Title)

    $Chart. Titles [0]. Text = $ChartTitle

    Graphic to a file #Save

    $FullPath = ($FileName + ".png")

    $Chart. SaveImage ($FullPath 'png'( )

    Write-Host ' saved chart in $FullPath"" " -ForegroundColor Green .

    back $FullPath

     

    Create Chart -ChartType bar ChartTitle - "machines virtual VMware in DC1" -FileName C:\inetpub\ELMO\Graphic\VMsTrendChart -XAxisName 'Date' -YAxisName 'number of VMs' -ChartWidth 800 -ChartHeight 800 -DataHashTable $HT

    All by setting the variable $HT, you define it as a Table of hash, sort or Sort-Object does not work on hash Tables, they work on arrays. Your definition is

    $HT = @ {}

    Use $HT = @)

    Instead, which will create a table and you would be able to define objects and then use the Sort-Object there. With Hash Tables, since they hold any objects you can not sort using Sort-Object.

  • Removal of the strings in a hash table

    Hello to all PowerCLI'ers out there.  This is what, I hope, will be an easy one for you guys.

    I built a hash named $hostInfo table that contains information about our VMHosts.  According to the information when displayed in a table format Name, UsedMemoryGB, TotalMemoryGB, FreeMemoryPct.

    The release of "Format-Table" looks like this:

    Name UsedMemoryGB TotalMemoryGB FreeMemoryPct
    ---------                                                               -----------------------             ------------------------                        -----------------------
    us1esx0201.company.local 89.07421875 95.989414215087890625 92.79587700202785441462201182
    us1esx0209.company.local 84.8193359375 95.989414215087890625 88.36321862267168020854706439
    us1esx0211.company.local 83.681640625 95.989414215087890625 87.17798864517570982753322143
    us1esx0205.company.local 83.3310546875 95.989414215087890625 86.81275468644519191613067240
    us1esx0403.company.local 96.3408203125 111.989383697509765625 86.02674390344222204017427325
    us1esx0401.company.local 95.689453125 111.989383697509765625 85.44511092539192491691602221
    US1-vmhesx - p0515.company.local 81.6171875 95.989383697509765625 85.02730651672824441211219264
    us1esx0303.company.local 95.1884765625 111.989383697509765625 84.99776802023479984310570319
    US1-vmhesx - p0512.company.local 81.4462890625 95.9893798828125 84.84927099428367955541142883
    us1esx0113.company.local 81.3212890625 95.98944091796875 84.71899438605549341860543489

    Here is the code snippet that generates the hash table:

    $hostInfo = get-VMHost |

    Select name "

    @{N = "UsedMemoryGB"; E={$_. MemoryUsageGB}} '

    @{N = "TotalMemoryGB"; E={$_. MemoryTotalGB}} '

    @{N = "FreeMemoryPct"; E={(($_. MemoryUsageGB / $_. {{(MemoryTotalGB) * 100)}} |

    Sort-Object-descending - property 'FreeMemoryPct ' | Select - 10 first

    Here is my challenge... I want to remove the '. '. company.local"of all entries in the"Name"column and only let the real host name.  How would I go about iterate the key 'Name' and deleting only this part of the chain?

    Any help is appreciated as always!

    -jSun311

    You can create the table in the right format with just the name of the host if you change the second line of your script in:

    Select @{N = "Name"; E={$_. Name.Split('.') [0]}},

    If you want to change the variable $hostinfo, then you can use:

    $NewHostinfo = $hostinfo | Select-Object - property @{N = "Name"; E={$_. Name.Split('.') [0]}}, UsedMemoryGB, TotalMemoryGB, FreeMemoryPct

  • I'm still not sure how custom control and object-oriented programming interact, can someone enlighten me please?

    I spent some time trying to understand the relationship between the custom controls and object oriented programming. However, it is not quite clear to me yet.

    What I want to do:

    I want to have a custom control and hide its workings from the rest of the blockdiagram, so I don't have to wire for each similar object. Not only because I'm lazy , but also to keep the clean pattern and avoid mistakes.

    for example, a graph, a numerical factor and a button.

    When the button is pressed, the x scale must be changed according to the factor.

    So, this looks like a job for me to object-oriented programming. Once I created something that can do this, I can use it all through my program. The code that redraws the figure when you press the button as part of the object, so I can't connect extra wires and add a value change event when I add a new chart.

    Is this possible at all? I tried, but did not quite understand this time. I have to admit that I'm pretty new to OO programming and make custom controls. I use typedef clusters ' ed most my code so far, which works very well. But it's always a cluster of stupid, the only way to have nothing at all is in the block diagram in VI you use it in.

    The only thing I could come up with so far is to add an "event handler" Subvi who does and that he accepts a reference or a local variable to an object. Then, this sub - VI and the variable or reference can be put in parallel with the other stuff in the main loop of the program. But there must be a better way somewhere?

    I don't think I can solve this problem of definition of the objects of the Panel before custom and methods so that it can interact with the objects that it represents without help. I get the feeling that I must have missed it somewhere. The pointers will be appreciated.

    Thank you!

    Jacco.

    Jacco K wrote:

    What I want to do:

    I want to have a custom control and hide its workings from the rest of the blockdiagram, so I don't have to wire for each similar object. Not only because I'm lazy , but also to keep the clean pattern and avoid mistakes.

    ...

    The only thing I could come up with so far is to add an "event handler" Subvi who does and that he accepts a reference or a local variable to an object. Then, this sub - VI and the variable or reference can be put in parallel with the other stuff in the main loop of the program. But there must be a better way somewhere?

    Thank you!

    Jacco.

    Hi Jacco,

    These two things are exactly what are the Xcontrols, a basic VI with a façade that has an event structure (the façade VI).

    If you have any questions, I'm happy to guide you.

    Tone

  • TABLE object TAB

    Hello

    I need assistance quickly is possible.

    I work with Labwindows/CVI, and in the Panel, I use a "Table" object in an object "Tab.

    I added a tab in my control panel and I have created several tabs in this object. Then, in each tab, I added a table.

    I can not access this table on each tab.

    I would add the line in the table with the InsertTableRows function but I can't because I don't know how to inform the controlID parameter in the service

    (int InsertTableRows (int panelHandle, int controlID, int, int numberOfRows, cellType int rowIndex);).

    In my ".h" file, these objects are declared as follows:

    It is a * very * problem tat common everyone faces when he starts using tab controls. The tale is that each tab page is a sign in itself with its own handle and that objects on the tab page must be addressed with this handle. GetPanelHandleFromTabPage can help you to recover the correct Panel handle to use.

    More detailed information can be found here and here and here. Here the online help GetPanelHandleFromTabPage

  • What is the SQL to determine what are the table objects in the KEEP buffer pool?

    What is the SQL to determine what are the table objects in the KEEP buffer pool?

    Select owner, table_name

    from dba_tables

    where USER_TABLES = "KEEP."

    /

    David Fitzjarrell

  • ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    Dear all,

    OS - Windows server 2012 R2

    version - 11.2.0.1.0

    Server: production server

    ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

    ORA-00942: table or view does not exist

    When taken expdp and faced error mentioned above. but expdp completed successfully with waring as below.

    Work "AWSCOMMONMASTER". "" FULLEXPJOB26SEP15_053001 "finished with 6 errors at 09:30:54

    (1) what is the error

    (2) is there any problem in the dump because file as above of the error. If Yes, then I'll resume expdp.

    Please suggest me. Thanks in advance

    Hello

    I suspect that what has happened, is that demand has dropped a temporary table to during the time that you run the export - consider this series of events

    (1) temp table created by application

    (2) start expdp work - including this table

    (3) the extracted table metadata

    (4) the application deletes the table

    (5) expdp is trying to retrieve data from the table - and gets the above error.

    Just to confirm with the enforcement team that the table is just a temporary thing - it certainly seems it name.

    See you soon,.

    Rich

  • Format an array of multilevel nested table object in a TABLE

    DB: Oracle 11 g 2

    Platform: client windows 7

    Hello

    I have a table of multilevel nested table object.

    {code}

    CREATE OR REPLACE TYPE OBJ_1 AS OBJECT)

    NUMBER of col_1,

    col_2 VARCHAR2 (56),

    col_3 VARCHAR2 (256)

    );

    CREATE OR REPLACE TYPE ARR_1 AS TABLE OBJ_1;

    CREATE OR REPLACE TYPE OBJ_2 AS OBJECT)

    NUMBER of col_4

    col_5 Number (15),

    col_6 NUMBER (1).

    col_7 NUMBER (1).

    col_8 VARCHAR2 (56),

    col_arr ARR_1

    );

    CREATE OR REPLACE TYPE ARR_2 AS TABLE OBJ_2;

    {code}

    I want to convert this table format - I need to feed in a program. expected release:

    --------------------------------------------------------------------------------

    col_4 col_5 col_6 col_7 col_8 col_1, col_2 col_3

    --------------------------------------------------------------------------------

    1           2          3           4           5          1           2          3

    1           2          3           4           5          4           5          6

    The Toad, the following query creates the output:

    {code}

    Select *.

    table (ARR_2 (OBJ_2 (1, 2, 3, 4, '5', ARR_1 (OBJ_1 (1,2, '3'))),))

    OBJ_2 (1, 2, 3, 4, '5', ARR_1 (OBJ_1 (4.5, '6')))

    --------------------------------------------------------------------

    col_4 col_5 col_6 col_7 col_8 col_arr

    --------------------------------------------------------------------

    1           2          3          4           5           (DATASET)

    1           2          3          4           5           (DATASET)

    {code}

    Where (DATASET) is the inner nested table. So I thought I'd add a level to "function table" will do the job, but NO, mistake.

    {code}

    Select * from table)

    Select *.

    table (ARR_2 (OBJ_2 (1, 2, 3, 4, '5', ARR_1 (OBJ_1 (1,2, '3'))),))

    OBJ_2 (1, 2, 3, 4, '5', ARR_1 (OBJ_1 (4.5, '6')))

    );

    Error: ORA-02324: more than one column in THE subquery SELECT list

    {code}

    Any suggestion?

    Thank you.

    You just need to join another TABLE operator who breast COL_ARR:

    SQL > with tmp (obj) as)

    2. Select (ARR_2)

    OBJ_2 3 (1, 2, 3, 4, '5', ARR_1 (OBJ_1 (1,2, '3')));

    4 OBJ_2 (1, 2, 3, 4, '5', ARR_1 (OBJ_1 (4.5, '6')))

    5           )

    6 double

    7)

    8. Select t2.col_4, t2.col_5, t2.col_6, t2.col_7, t2.col_8

    9, t1.col_1, t1.col_2, t1.col_3

    tmp 10 t

    11, t2 table (t.obj)

    12, t1 table (t2.col_arr)

    13;

    COL_4 COL_5 COL_6 COL_7 COL_8 COL_1, COL_2 COL_3

    ---------- ---------------- ----- ----- -------- ---------- -------- -------

    1                2     3     4 5                 1 2        3

    1                2     3     4 5                 4 5        6

Maybe you are looking for

  • HP Pavilion P6-2065UK graphics card problems

    Hello Have HP Pavilion P6-2065UK, with 8 GB of Ram and have installed the new power supply Corsair CX430 Watt. When I install the new graphics card Nvidia Geforce GT 630, blank screen appears, you can hear Windows 7 startup screen open, but not the c

  • A descriptor of KING in an output file

    What is the best way to export a KING descriptor to a file such that it can be read later during a test.  I would like to export a number of descriptors of KING to say a file txt, excel file, or some other choice if there is a better option. Thank yo

  • VI continuosly exit 0, 5 - 12V DC

    Hello I was looking at the Labviewserial.vi and it seems output +-12V pulses of ~ 200 microsec od. Is there a vi output constant tension of the serial port (range = 0.5V to +/-12V)? any other beach is ok too. Thank you Saurabh

  • Family security in Windows 8 without stopping curfew audio

    We have a child whose computer time we try to limit who is really watching videos of review for YouTube video game. Unfortunately, when his time of curfew past or time limit runs out, audio videos YouTube just continues to play even if it is "disconn

  • Windows xp cannot install dell printer

    uninstalled printer tries to install the update of readers had saved in the folder on the desktop, but he wants to install drive is c:\dell\drivers\r109906