Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate a graph using mysql
    primarykey
    data
    text
    <p>So , there is this interesting problem in front of me ,i have two tables one with information of user with host profiles on web and other stores profiles mentioned in the website , eg : on www.abc.com i have mentioned www.xyz.com so abc.com will be part of :</p> <pre><code>source table +----------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | website | varchar(255) | YES | | NULL | | | user_id | varchar(25) | YES | MUL | NULL | | | web_name | varchar(255) | YES | | NULL | | +----------+--------------+------+-----+---------+----------------+ </code></pre> <p>mention table will have entries (like xyz.com mentioned above) </p> <pre><code>+----------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | web_link | varchar(255) | YES | | NULL | | | user_id | varchar(25) | YES | MUL | NULL | | | web_name | varchar(255) | YES | | NULL | | +----------+--------------+------+-----+---------+----------------+ </code></pre> <p>user_id is foreign key to these tables , <strong>now i want to generate a node based graph such that i select source.web_name and mention.webname and assign them ids such that they all be unique , eg: 0-> 1 because there can be chances of 1->0</strong> </p> <p>I want to know what can be the best possible way to achieve this, should i change the schema to get it done or using python selects this can be done. I am not able to figure out giving unique ids to both source.web_name and mention.webname when they reside in different table . </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload