Merge two tables of two different Sources in Power Pivot - powerpivot

I have two Data Bases:
1. DB that comes from Access and has the sales info from 2016 and 2017.
2. DB that comes from SQL Server and has the sales info from 2018.
Both DB have exactly the same number and names in the columns.
It is possible to merge this two tables in Power Pivot to get just 1.

Related

r code production in SQL Server

Above if I generated a SQL query that produced the defined table and an "R" summary dataframe that produced the defined table, how you I be able to link them both together into production.
*Note, I'm not asking how to create a SQL query or an R Dataframe for the defined tables (I have the code for that), but rather how can they both work together. For example, could that R dataframe code be used in SQL Server (I have the latest version) so that as soon as the SQL query created the tables (BY DATE), the summary table would automatically update itself (BY DATE) in SQL Server?
So as soon as it went aggregated the summary of the first date, it would move onto the next and essentially generate (stack on top of each other)
Thank you.

Compare 2 Database all rows - different rows = output

i need a little bit help.
I have a developer DB (dev_home), in this db are many tables.
I need a compare to another DB (real_home).
The Tables are the same, but the table_names not!
For example i develop # dev_home, in the table personal.
In this table i've created new field, which are not exist in #real_home DB.
There are tools that do this i.e. compare two different instances of a database or two different databases etc ..
Such as
Red-Gate's SQL data comparison tool
or
You can also use Microsoft Visual Studio 2015 Community Edition (Free)

2 Generated SQL/MDX queries under a SQL query in IBM Cognos

I have a report where a query named "Query1" is created using the default data items present in the package. When I look into the Tools ---> Show Generated SQL/MDX, IBM Cognos shows 2 generated Native SQL queries for the query named "Query1". How does 2 query get created --- Query1.0 & Query 1.1 ? Under what scenario does this happen? FYI --- The changes that is done in the environment is that a new model is added under a product family at the starting of this month. Could this be the reason why 2 SQL queries has been generated? Can someone explain what happens at the backend?
Generally, there are two reasons that you will see multiple separate queries in the generated SQL:
Some or all of the objects referenced in the Cognos query don't have defined relationships to each other in the model/package
The objects referenced in the Cognos query come from two or more different data sources
In the case of 1 you will end up with a cross join. In the case of 2, Cognos will retrieve the data separately from each source and then stitch them together in memory on the Cognos report server.
There may be other reasons that more than one separate query is shown in generated SQL but these two are the ones I've come across in my work.

How to compare data between two databases using toad data point?

I have access to two different data bases 1. SQL Server and 2. Sybase using toad data point.
I have the below data:
What query do I write to compare data between the two databases - given their table_name and Col_name and I only have access to Toad to connect to the databases?
I want to test whether there is same data reflecting under tables and columns for the two databases.

Merge two database to each other?

I have question about merge two or three database(SQL Express).
I have a project that any facility have own databases and every year these databases should merge with each other.
My problem is how can I merge these databases? what software can do it?
SQL Compare and SQL Data Compare by Red gate are good database tools for copying/merging data. http://www.red-gate.com/