Create the query by combining data from DBSS_Data_Model and HostModel

Hello

I am trying to create a dashboard with the host server list and instances of SQL Server running on the host.

And I am interested in creating a query by combining data model of data in SQL Server (DBSS_Data_Model) and the host (Hosts) data model, say: which connects DBSS_SQL_Server_Host and host.

I wonder if there is way to do it?

Thank you

Mark

Something like this function should work:

def physicalHost = nullqueryStatement = server.QueryService.createStatement("(Host where name = '$hostName')")result = server.QueryService.executeStatement(queryStatement)objs=result.getTopologyObjects()

if (objs != null && objs.size() > 0) {     physicalHost = objs.get(0)}return physicalHost

When the input parameter "hostName" is DBSS_SQL_Server_Host.physical_host_name

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • Create the trigger to insert data from one user to another user in same Databas

    Dear Sir, I created a trigger as follows

    CREATE OR REPLACE TRIGGER TRIGGER1
    BEFORE INSERTING
    ON table1
    FOR EACH LINE
    BEGIN
    INSERT IN THE TEST. TABLE2
    VALUES (: NEW.) COLUMN1,: NEW. COLUMN2,: NEW. COLUMN3,: NEW. COLUMN4);
    END;
    /

    I want here to insert my user to user Test data. In this Situation when I Execute The above Trigger it shows error PL/SQL: ORA-00942: table or view does not exist

    Help, please

    What do you mean by run the trigger?
    Do you compile?
    Can be open as a TEST and do the following and try to compile your code of the trigger again.

    grant insert on TEST.TABLE2 to youruser;
    

    See you soon,.
    Manik.

  • Query to extract data from source DB driver using process mapping pre...

    Hi all
    I have a source for the query to retrieve the data from the source database. Looking for suggestion what could be the best approach to extract data from the source database.using owb 11 GR 1 material.
    I'm in printing, create the process of mapping driver prerequisite for aid to perform immediate with Create table T1 as a sql query. Petition to the sides of the Insert into T1 Select * from Source_Table in the different database.

    Certainly, need to create Db users in the Source database, to get privileges to read the data of source_database.
    Is - this good aproach to or of any other alternative to achieve this.

    Means, create the table in the transit area (desired area, where I am) and using driver mapping process before you run the select query to retrieve data from a data source.

    Would apreciate your previous answer.
    Thank you
    MAK

    You can mark Correct or useful if it solves your purpose.

  • Create the form for selecting data in multiple tables

    Hello

    I'm getting APEX for the first time and I just read 2 days dev Application Express guide

    I tried to play and I can't create a report with the form that select data from several tables

    What I want to achieve is a report we'll say 'USERS' makes MANAGER_ID ID, NAME, with a form that allows me to create, delete, change users

    The problem is that, once the report with the form created, if I click on create (to create a user) it will ask me for id, name, and manager_id

    I need a water drop down which allows me to select managers in the table manager instead of manually insert Director id

    How do I do that?

    Thank you!

    HI Chris,

    LOV will use this magic.

    Search:

    Kind regards

    BEnjamin

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • BBM BBM stuck on the transfer of your data from bbm surveys

    Hoping someone has a solution. My jump of BB's stuck on the transfer of your data from bbm surveys. I tried everything I know how to deal with a BB, which is not much. And everytime I open BBM it goes to the spinning wheel and glued on the transfer of your data from bbm surveys.

    Thank you

    DGF

    Hello DGF

    We knew the things you tried to solve this problem?

    Below KB explains on the symptoms of the error when installing BBM, which may apply to your question.

    You must use only mobile data and turn off WiFi when installing BBM surveys. If the problem persists, use a WiFi connection and disable mobile data.

    http://support.BlackBerry.com/kb/articleDetail?articleNumber=000035294&language=English

  • How config to use the API to get data from Eloqua?

    Hello

    I am coding c# to extract data from Eloqua and works well my trial account.

    When I get another account, it gets an exception with the message "an error occurred during the security check for the message."

    I guess there is something different between the configs of the two accounts, but I don't know which enters into force.

    Any suggestions?

    Best regards

    Biao

    Hi Biao,

    The document (using the Eloqua API - determination of endpoint URL) could be useful. Two customers could be in different data centers, so you'll have a different basis for each URL.

    Now there is an end point which allows to determine the URL for your API calls.  This endpoint is https://login.eloqua.com/id. and the link above describes how to use it.

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • Is possible to create the WINS resource record in DNS server and how?

    Is possible to create the WINS resource record in DNS server and how?

    No resource record WINS I can create when it right click on and select "other new records".

    If you were using abusive or foul language, insults, etc. He would get you banned from the forum.

    If you have done any of these, then I suggest that you do the following:

    If banned, ask reason why and offer him your defense

    If not banned, then let them know the name of the person "you kicked off the forum" reports of ill-treatment.   They will study.

    If you haven't seen any action on your report, and suspect that the Forum is not being actively monitored, you can request action by clicking the Site feedback link at the bottom of any Forums page.   -Taken from

    Forums Help FAQ

    http://social.technet.Microsoft.com/wiki/contents/articles/7359.forums-help-FAQ-en-us.aspx#197

    We get off topic with this conversation and the COC States:

    Keep the topics of conversation on track. ............

    .......... Discussions can be blocked in the forum comments if necessary.

    If there is any other questions about WINS, then consider marking response as appropriate.

  • Functions to return data from polygon and line

    Hello

    I'm looking for different Oracle functions that return data from polygon and line (return sdo_geometry.ordinates cordinates collection). My sdo_geometry data like that.

    Select geometry.sdo_ordinate from myTable
    ------------------------------------------------------------

    61,42,0, 62,43,0 and so on

    I am unable to find functions by using google search, your help is greatly appreciated.

    Thank you
    Nancy

    Hi Nancy,.

    If you do not extract the coordinates of the geometry, you can use the suite of applications.

    SELECT t.X, t.Y, t.id
    OF state_boundary c,.
    TABLE (SDO_UTIL. GETVERTICES (c.geom)) t where id = 20022
    ORDER BY t.id;

    Another method:

    SELECT * FROM TABLE (SELECT C.GEOM. State_boundary SDO_ORDINATES c where id = 20022)

    Sujnan

  • How to extract data from SAP and COBOL using ODI

    Hi people,

    Can you please let me know the procedures in ODI to extract data from SAP and COBOL?

    Thank you all for the help.

    Hello

    You can download the Patch 8571830 to Oracle metalink.

    It has a new technology 'SAP ABAP' and KMs to extract and load data-
    RKM SAP ERP and SAP to Oracle ERP LKM.

    Thank you

  • When I try to use the Windows Update link for my XP computer I get a message indicating that the location where the Windows Update stores data has changed and it needs to be repaired. How can I solve this problem?

    When I try to use the Windows Update link for my XP computer and after using Windows Mr. Fix - It, I get a message indicating that the location where the Windows Update stores data has changed and must be repaired. How can I solve this problem?

    I'm not that computer literate and do not understand what needs to be fixed.

    This problem just started a few weeks when I noticed that I had any recent download automatic update that I regularly get. So I tried to do it manually through access via my control panel.

    I use ESET Antivirus Node32 software.

    Hello

    1. What is the error message or an exact error code?

    2 have you made changes on the computer before this problem?

    3. you try to check the updates?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Reset Windows Update components and then try to download the updates.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756

     

    Method 2:

    File system scan tool checker and then try to press Ctrl + Alt + Delete and check.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe):

    http://support.Microsoft.com/kb/310747

    Please respond with more information so that we could help you more.

  • For a recent funeral where the mourners were mourners came from far and from all directions, I wanted to tag a photo of a card to send an email to allow them to find the crematorium (GPS was not an option for most!). This has resulted in

    For a recent funeral where the mourners were mourners came from far and from all directions, I wanted to tag a photo of a card to send an email to allow them to find the crematorium (GPS was not an option for most!). This has led many dotted lines of drawing and my usual 'technical fudge' draw a regular straight line then DAB the brush with the approximate background color at a regular interval would not be easy with the number of lines to draw. I look in vain for an option for me to do and was about to return to my "fudge" when I found the features of Style / dotted. Asked me if I wanted to replace the current Styles with those of dotted styles. Thas here no explanation of what he meant-Nevertheless, I selected Yes. My first line 'test' was off the card and several pixels wide I would have used - it was released as a sort of cross between an old 1960s DP Punch tape and an offset miniature piano keyboard. Clear and straight to the Styles/Reset Styles, I chose to replace the default style, thinking to be the inverse of the previous question. No luck - two months later, I can't yet draw a regular straight line. Outside re - install, how to return to where I was? I use Photoshop CS4 11.0 er

    Ianjalex

    On the tool Options bar, right click (Cmd + click on Mac, if I recall) button (far left) of the tool presets > reset all tools.

    You'd probably want to chart a path to achieve what you want (with dotted lines). Google or Bing "shot on way photoshop cs4" for more details.

  • Failed to create the query.

    Hello
    I'm new to jpa. When I create the "g game SELECTION g WHERE g.player1_id =: use ' I get the following" unknown state or association field of error [player1_id] class [entity.» Game]. "

    Here is the generated netbean feature classes.


    package entity;

    import java.io.Serializable;
    to import java.util.Collection;
    import java.util.Date;
    Javax.persistence import. *;
    Import javax.validation.constraints.NotNull;
    Import javax.validation.constraints.Size;
    Import javax.xml.bind.annotation.XmlRootElement;
    Import javax.xml.bind.annotation.XmlTransient;

    /**
    *
    * @author ara Yeritsian
    */
    @Entity
    @Table (name = 'game')
    @XmlRootElement
    @NamedQueries({)
    @NamedQuery (name = "Game.findAll", query = "SELECT game g g"),
    @NamedQuery (name = "Game.findById", query = "SELECT game g g WHERE g.id =: id").
    @NamedQuery (name = "Game.findByState", query = "SELECT game g g WHERE g.state =: State").
    @NamedQuery (name = "Game.findByStartRulles", query = "SELECT game g g WHERE g.startRulles =: startRulles");
    @NamedQuery (name = "Game.findByStartDate", query = "SELECT game g g WHERE g.startDate =: startDate").
    ({@NamedQuery (name = "Game.findByClock", query = "SELECT game g g WHERE g.clock =: clock")})
    / public class game implements Serializable {}
    private static final long serialVersionUID = 1 L;
    @Id
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @NotNull
    @Column (name = "id")
    whole ID private;
    @Basic(optional = false)
    @NotNull
    @Size (min = 1, max = 16)
    @Column (name = "State")
    private state String;
    @Basic(optional = false)
    @NotNull
    @Column (name = "start_rulles")
    private short startRulles;
    @Column (name = "start_date")
    @Temporal (TemporalType.TIMESTAMP)
    private Date startDate;
    @Column (name = "clock")
    clock of integers private;
    @OneToMany (waterfall = CascadeType.ALL, mappedBy = "gameId")
    Private Collection < MoveHistory > moveHistoryCollection;
    @JoinColumn (name = "player2_id", referencedColumnName = "id")
    @ManyToOne
    player2Id private user;
    @JoinColumn (name = "player1_id", referencedColumnName = "id")
    @ManyToOne(optional = false)
    player1Id private user;

    public Game() {}
    }

    {public game (Integer id)
    This.ID = id;
    }

    {public game (id Integer, String State, short startRulles)
    This.ID = id;
    This.State = State;
    this.startRulles = startRulles;
    }

    public Integer getId() {}
    return the id;
    }

    {} public void setId (Integer id)
    This.ID = id;
    }

    public String getState() {}
    return status;
    }

    {} public void setState (State of the chain)
    This.State = State;
    }

    {public getStartRulles() short
    Return startRulles;
    }

    {} public void setStartRulles (abbreviated startRulles)
    this.startRulles = startRulles;
    }

    public Date getStartDate() {}
    return startDate;
    }

    {} public void setStartDate (Date startDate)
    this.startDate = startDate;
    }

    public Integer getClock() {}
    return the clock;
    }

    {} public void setClock (whole clock)
    This.Clock = clock;
    }

    @XmlTransient
    public Collection < MoveHistory > getMoveHistoryCollection() {}
    Return moveHistoryCollection;
    }

    {} public void setMoveHistoryCollection (Collection < MoveHistory > moveHistoryCollection)
    this.moveHistoryCollection = moveHistoryCollection;
    }

    public getPlayer2Id() {} user
    Return player2Id;
    }

    public void setPlayer2Id (User player2Id) {}
    This.player2Id = player2Id;
    }

    public getPlayer1Id() {} user
    Return player1Id;
    }

    public void setPlayer1Id (User player1Id) {}
    This.player1Id = player1Id;
    }

    @Override
    public int hashCode() {}
    int hash = 0;
    hash += (id! = null? id.hashCode (): 0);
    Returns the hash;
    }

    @Override
    public boolean equals (Object, object) {}
    TODO: WARNING - This method will not work in the case of identification fields are not defined
    If (!) object instanceof game))) {}
    Returns false;
    }
    Game another object = (game);
    If ((this.id == null & & other.id! = null) |) ((this.id! = null & &! this.id.equals (other.id))) {
    Returns false;
    }
    Returns true;
    }

    @Override
    public String toString() {}
    return "entity. Game [id ="+ id +" "] ';
    }

    }

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package entity;

    import java.io.Serializable;
    to import java.util.Collection;
    Javax.persistence import. *;
    Import javax.validation.constraints.NotNull;
    Import javax.validation.constraints.Size;
    Import javax.xml.bind.annotation.XmlRootElement;
    Import javax.xml.bind.annotation.XmlTransient;

    /**
    *
    * @author ara Yeritsian
    */
    @Entity
    @Table (name = "user")
    @XmlRootElement
    @NamedQueries({)
    @NamedQuery (name = "User.findAll", query = "SELECT u OF u user"),
    @NamedQuery (name = "User.findById", query = "SELECT u FROM user u WHERE u.id =: id").
    @NamedQuery (name = "User.findByEmail", query = "SELECT u OF u WHERE u.email = user: e-mail").
    @NamedQuery (name = "User.findByPassword", query = "SELECT u OF u WHERE u.password = user: password").
    @NamedQuery (name = "User.findByRating", query = "SELECT u OF u WHERE u.rating = user: side").
    @NamedQuery (name = "User.findByNickname", query = "SELECT u OF u WHERE u.nickname = user: username").
    ({@NamedQuery (name = "User.findBySecurityQuestionAnswer", query = "SELECT u OF u WHERE u.securityQuestionAnswer = user: securityQuestionAnswer")})
    User/public class implements Serializable {}
    private static final long serialVersionUID = 1 L;
    @Id
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @NotNull
    @Column (name = "id")
    whole ID private;
    @Pattern (regexp = "[a-z0-9! #$% &'* + / = ? ^ _'{|} ~-]+(?:\ \. (([a-z0-9! #$% &'* + / =? ^ _'{|} ~-] +) * @(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.) + [a-z0-9](?:[a-z0-9-]*[a-z0-9])? ", message =" invalid email address") //if the field contains E-mail address use this annotation to apply field validation"
    @Basic(optional = false)
    @NotNull
    @Size (min = 1, max = 45)
    @Column (name = "email")
    private String email;
    @Basic(optional = false)
    @NotNull
    @Size (min = 1, max = 45)
    @Column (name = "password")
    private String password;
    @Basic(optional = false)
    @NotNull
    @Column (name = "rating")
    private int rating;
    @Basic(optional = false)
    @NotNull
    @Size (min = 1, max = 45)
    @Column (name = "nickname")
    private; channel nickname
    @Basic(optional = false)
    @NotNull
    @Size (min = 1, max = 45)
    @Column (name = "security_question_answer")
    private String securityQuestionAnswer;
    @OneToMany (waterfall = CascadeType.ALL, mappedBy = "playerId")
    Private Collection < MoveHistory > moveHistoryCollection;
    @OneToMany (mappedBy = "player2Id")
    Private Collection < Game > gameCollection;
    @OneToMany (waterfall = CascadeType.ALL, mappedBy = "player1Id")
    Private Collection < Game > gameCollection1;
    @JoinColumn (name = "security_question_id", referencedColumnName = "id")
    @ManyToOne(optional = false)
    Private SecurityQuestion securityQuestionId;

    {public User()
    }

    public user (id Integer) {}
    This.ID = id;
    }

    public user (id Integer, String email, String password, int side, String username, String securityQuestionAnswer) {}
    This.ID = id;
    This.email = email;
    This.password = password;
    This.Rating = notes;
    This.Nickname = username;
    this.securityQuestionAnswer = securityQuestionAnswer;
    }

    public Integer getId() {}
    return the id;
    }

    {} public void setId (Integer id)
    This.ID = id;
    }

    public String getEmail() {}
    return of electronic mail;
    }

    {} public void setEmail (String email)
    This.email = email;
    }

    public String getPassword() {}
    return the password;
    }

    public void setPassword (String password) {}
    This.password = password;
    }

    public int getRating() {}
    return of qualification;
    }

    public void setRating (int side) {}
    This.Rating = notes;
    }

    public String getNickname() {}
    return the nickname;
    }

    {} public void setNickname (string name)
    This.Nickname = username;
    }

    public String getSecurityQuestionAnswer() {}
    Return securityQuestionAnswer;
    }

    {} public void setSecurityQuestionAnswer (String securityQuestionAnswer)
    this.securityQuestionAnswer = securityQuestionAnswer;
    }

    @XmlTransient
    public Collection < MoveHistory > getMoveHistoryCollection() {}
    Return moveHistoryCollection;
    }

    {} public void setMoveHistoryCollection (Collection < MoveHistory > moveHistoryCollection)
    this.moveHistoryCollection = moveHistoryCollection;
    }

    @XmlTransient
    public Collection < Game > getGameCollection() {}
    Return gameCollection;
    }

    {} public void setGameCollection (Collection < Game > gameCollection)
    this.gameCollection = gameCollection;
    }

    @XmlTransient
    public Collection < Game > getGameCollection1() {}
    Return gameCollection1;
    }

    public void setGameCollection1 (Collection < Game > gameCollection1) {}
    this.gameCollection1 = gameCollection1;
    }

    public SecurityQuestion getSecurityQuestionId() {}
    Return securityQuestionId;
    }

    {} public void setSecurityQuestionId (SecurityQuestion securityQuestionId)
    this.securityQuestionId = securityQuestionId;
    }

    @Override
    public int hashCode() {}
    int hash = 0;
    hash += (id! = null? id.hashCode (): 0);
    Returns the hash;
    }

    @Override
    public boolean equals (Object, object) {}
    TODO: WARNING - This method will not work in the case of identification fields are not defined
    If (!) object instanceof user))) {}
    Returns false;
    }
    The user = (user) another object;
    If ((this.id == null & & other.id! = null) |) ((this.id! = null & &! this.id.equals (other.id))) {
    Returns false;
    }
    Returns true;
    }

    @Override
    public String toString() {}
    return "entity. The user [id ="+ id +" "] ';
    }

    }

    Published by: 927714 on April 15, 2012 01:04

    JPQL use attributes and properties of entity in queries, not the SQL field names, you cannot use "player1_id" because it does not exist in the game entity. I don't know what you pass in the: the user parameter, but if it is a principal user Id, you should try using ' g.player1Id.id =: user. If you pass in the user entity, you can use "g.player1Id =: user" instead.

    Best regards
    Chris

  • Failed to create the query? (Interesting Scenerio)

    Hi all, I am unable to create a query for results with the following data below. Any help will be appreciated?


    Expected results

    ID1 NAME1 NAME2 ID2
    1 test1 test2 2
    3 4 test4 test3
    5 of test5 test6 6



    Thanks in advance
    Select o.id id1, o.name name1, e.id id2, e.name name2
      from emp o, emp e
     where o.id+1=e.id(+)
        and mod(o.id,2)=1;
    

    ID odd on Column1 and following the same id on Column2.

    Max

  • Help create the query

    Hi all

    I have the below requirement.
    Master table:
    Product ID      Product Name
    1               TV
    2               Cellphone
    3               Laptop
    4               DVD Player
    
    Details table:
    Product ID     Spec type     Spec Detail
    1               Color          Blue
    1               Weight          20
    2               Color          Blue
    2               Weight          20
    3               Color          Blue
    3                Weight          25
    4               Color          Blue
    4               Weight          20
    4               Height          10
    I'm looking for a way to identify products with the exact same specifications.

    That is to say, in the example TV and cell phone above has exact specifications.
    So the result of the query must be TV and phone cell phone here.

    Is it possible to do in a query, or we need a sql block to perform this action.

    Any help would be greatly appreciated.

    Thank you
    Agathya

    Hi agathya,

    We do not know how you want to handle the situation where more than two products have the same specifications, so I extended your sample data slightly to take account of this situation as well:

    SQL> create table products (id,name)
      2  as
      3  select 1, 'TV' from dual union all
      4  select 2, 'Cellphone' from dual union all
      5  select 3, 'Laptop' from dual union all
      6  select 4, 'DVD Player' from dual union all
      7  select 5, 'Radio' from dual union all
      8  select 6, 'VCR' from dual
      9  /
    
    Tabel is aangemaakt.
    
    SQL> create table product_specifications (product_id,spec_type,spec_detail)
      2  as
      3  select 1, 'Color' , 'Blue' from dual union all
      4  select 1, 'Weight', '20'   from dual union all
      5  select 2, 'Color' , 'Blue' from dual union all
      6  select 2, 'Weight', '20'   from dual union all
      7  select 3, 'Color' , 'Blue' from dual union all
      8  select 3, 'Weight', '25'   from dual union all
      9  select 4, 'Color' , 'Blue' from dual union all
     10  select 4, 'Weight', '20'   from dual union all
     11  select 4, 'Height', '10'   from dual union all
     12  select 5, 'Color' , 'Blue' from dual union all
     13  select 5, 'Weight', '20'   from dual union all
     14  select 6, 'Color' , 'Blue' from dual union all
     15  select 6, 'Weight', '20'   from dual union all
     16  select 6, 'Height', '10'   from dual
     17  /
    
    Tabel is aangemaakt.
    
    SQL> select p1.name
      2       , p2.name
      3    from products p1
      4       , products p2
      5       , product_specifications ps1
      6       , product_specifications ps2
      7   where p1.id = ps1.product_id
      8     and p2.id = ps2.product_id
      9     and p1.id < p2.id
     10   group by p1.id
     11       , p1.name
     12       , p2.id
     13       , p2.name
     14  having sqrt(count(*)) =
     15         count(case when ps1.spec_type = ps2.spec_type and ps1.spec_detail = ps2.spec_detail then 1 end)
     16  /
    
    NAME       NAME
    ---------- ----------
    TV         Cellphone
    TV         Radio
    Cellphone  Radio
    DVD Player VCR
    
    4 rijen zijn geselecteerd.
    

    But why devil you or your specifications product model predecessor like that? You are much more complicated that it should be. And the data type of size and weight should be not the same as those of color. But now they are. And how do limit you the allowed values for the colors? Color, weight and size are characteristic of your products so that they should have been modeled like this.

    See how easily your questions becomes after remodeling it:

    SQL> drop table product_specifications purge
      2  /
    
    Tabel is verwijderd.
    
    SQL> drop table products purge
      2  /
    
    Tabel is verwijderd.
    
    SQL> create table products (id,name,color,weight,height)
      2  as
      3  select 1, 'TV', 'Blue', 20, null from dual union all
      4  select 2, 'Cellphone', 'Blue', 20, null from dual union all
      5  select 3, 'Laptop', 'Blue', 25, null from dual union all
      6  select 4, 'DVD Player', 'Blue', 20, 10 from dual union all
      7  select 5, 'Radio', 'Blue', 20, null from dual union all
      8  select 6, 'VCR', 'Blue', 20, 10 from dual
      9  /
    
    Tabel is aangemaakt.
    
    SQL> select * from products
      2  /
    
            ID NAME       COLO     WEIGHT     HEIGHT
    ---------- ---------- ---- ---------- ----------
             1 TV         Blue         20
             2 Cellphone  Blue         20
             3 Laptop     Blue         25
             4 DVD Player Blue         20         10
             5 Radio      Blue         20
             6 VCR        Blue         20         10
    
    6 rijen zijn geselecteerd.
    
    SQL> select p1.name
      2       , p2.name
      3    from products p1
      4       , products p2
      5   where p1.id < p2.id
      6     and ( p1.color = p2.color or (p1.color is null and p2.color is null))
      7     and ( p1.weight = p2.weight or (p1.weight is null and p2.weight is null))
      8     and ( p1.height = p2.height or (p1.height is null and p2.height is null))
      9  /
    
    NAME       NAME
    ---------- ----------
    TV         Cellphone
    TV         Radio
    Cellphone  Radio
    DVD Player VCR
    
    4 rijen zijn geselecteerd.
    

    I hope this helps.

    Kind regards
    Rob.

Maybe you are looking for