dynamically join tables when a new table created dinamically in sql - join

i have tables created dynamically have numbered names like Tbl0,Tbl1,Tbl2,Tbl3 ......etc
how can i join this Tables automatically with the new dynamically created Tables when evry new Table created in sql?
thanks in advance for your help

Related

PowerBI - Join DirectQuery and Imported tables in DAX

I have a DirectQuery table (Weather) which is sourced from an Azure SQL server. I would like to join this with an Imported table (Buckles) from an Excel sheet sourced from SharePoint Online.
Both tables have a UID field that is made up of a concatenation between a SiteID and timestamp. The UID field is named differently for each table.
I have created a One-To-Many relationship between the two tables.
I have tried to create a new DAX table using a NATURALINNERJOIN on Weather and Buckles but I get this error:
"No common join columns detected. The join function 'NATURALINNERJOIN' requires at-least one common join column."
I am confident it is not a problem with the underlying data because I've created a new imported Excel table (Test) with a selection of the data from Weather and I'm able to successfully create the join on Test and Buckles.
Is the joining of DirectQuery and Imported tables supported? I feel like this may be a type casting issue, but as far as I can see, both UID fields are set as Text.
The UID field is named differently for each table.
I suspect this may be the issue. NATURALINNERJOIN looks for matching column names
and if the two tables have no common column names, an error is returned.
Note that if you create a calculated DAX table using a DirectQuery source, I don't think that table will still act like DirectQuery. If I understand correctly, it will materialize the calculated table into your model and DAX that references that calculated table no longer points back to the SQL server (and consequently will only update when the calculated table gets rebuilt).

Join tables in Spotfire in a third new table

I have two data tables tab1 and tab2 that I want to join.
I know how to do it with the insert columns property, however it is not what i really need. I want the result to be stored in a third new table tab3.
Add new data table, add from current analysis (scroll down). Select table 1. Name it table 3. Now insert columns to table 3 from table 2. At the end of this you will have 3 tables.
you can Add New Data Table From... Current Analysis>>[your existing data table] to create a reference or "virtual" table. any structural changes made to your referenced (original) table will propogate to the referenced (new) one.

Spotfire v7.5 : Edit Existing Data table join

In Spotfire, I have inserted columns From an Excel File in an existing Data Table on Spotfire (See example shows at the End) but I have made a mistake in the join property. Could I change it without re creating the complete Data Table or using calculated columns/Filters?
You can only edit it by deleting the inserted columns and adding them again.

How to display columns from two tables in MVC?

Right. So I am new to MVC.
I have two tables. tblCustomer_Details and tblCustomer_Location. There is a relationship between the two tables by CustomerID.
Now, how do I display few columns from one table and few from others?
I have tried using View Model. I created a new model named ViewModel and added Lists of both tables.
How do I proceed from here?

SQL Server, stored procedure ADO fill method

I am using a stored procedure to return some rows from the database and its using an inner join query between 3 different tables.
But when I am filling the Dataset using SqlDataAdapter with this line of code:
adptr.fill(ds,"TBL_Employees")
it says the columns of the other tables do not belong to the table name I mentioned in fill method, that's right because the columns belong to another table in join query.
I want to know how to use the Fill method or what I am doing wrong.

Resources