I'm trying to create an EER diagram like this with MySQL workbench. Is there a way to map two columns (C,D) in Table2 to one column (G) in Table 3?
I also want to make it interactive, so that I can highlight any column of choice and all the edges connected with it. Is this possible in MySQL workbench?
Thanks a lot!
Related
So I have this table with a LOT of columns. And I am trying to do pxf connection from another database where this table is. Are there any way I can copy or export maybe all
column name - data type pairs, so I won't have to announce it one by one in while creating external table?
You could generate the DDL from that table and use it as you need, by clicking right mouse button and selecting from menu Generate SQL-->DDL.
I have three Tableau Server data sources in a workbook that represent three tables in a database. Table A is joined to Table B and table B is joined to Table C. There is no foreign key relationship between Table A and Table C, but the implicit relationship exists through Table B (junction table). When using Table A as the primary data source on a report, I receive an error message when attempting to add data from Table C.
In order to use fields from Table C, a relationship needs to be created with Table A. Select Data > Edit Relationships to open the Relationships dialog box.
Is there any way to join multiple Tableau Server data sources to accomplish the described scenario?
Tableau has the concept of Primary and Secondary data sources, and every secondary needs to have a key into the primary to be considered. You can't link a secondary to a secondary data source.
My suggestion here would be creating another data source already joined/blended. This can be done by connecting directly to the database and joining the tables using Tableau wizard (see image below):
Or, if you feel comfortable, you can use the New Custom SQL button and use your own query (see image below):
I have a MySQL Workbench project with multiple EER diagrams.
In diagram 1, I have table1 and table2.
In diagram 2, I have table3.
I would like to generate an SQL CREATE script for diagram 1 containing table1 and table2.
I also want to generate a separate script for diagram 2 containing table3.
In File > Export > Forward Engineer SQL Create Script, it always includes all tables from all diagrams, and I need to manually select and deselect tables when creating the scripts, which is quite cumbersome.
Is there a way to automatically generate CREATE SQL scripts base on a EER diagram basis?
Creating export scripts based on their placement on a diagram is not supported in MySQL Workbench. File a feature request at http://bugs.mysql.com to get such a feature to the planning.
I'm working with two databases and I want a column in table1 of the first database to make reference
to a row in table2 in the second database. I'm asking if I could create a view to select columns from
database1 and database2, is it possible?
Have you tried the sample of the Eclipse site?
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Composite
With composite pattern you can use Two or more persistence units combined into a single persistence Unit.
Are there any options in MySQL Workbench to draw the relationship-line between the columns and not the tables? If i export my diagram as JPG i can't see, which columns are foreign keys and who they are related to.
On the screenshot, you can't see, that id and user_id are connected.
In the main menu bar go to: Model -> Relationship Notation -> Connect to columns.
I'm not sure MySQL Workbench can draw relationship lines between columns but you can aware that Primary Key is shown as Key Symbol and Foreign Key is shown as Red Diamond Symbol.