I am new to using SQL Server. I have an assignment, and the lecturer is not showing us how to use the tools he wants the assignment to be completed with.
I am trying to come up with a query that will insert the primary key of 3 dimension tables into as well as trying to insert data from the source data in another table.
The source data is a data set of 10000+ Apps on the Google Play Store.
See below for my table and what I need
DimContentRating - there are 6 content ratings
ContentRatingID(PK)   Content Rating
---------------       --------------
1                     Everyone
2                     Teen
DimCategory - there are 34 categories
CategoryID(PK)   Category
----------       --------
1                Education
2                Finance
DimInstalls - there are many ranges of installs
InstallID(PK)  Installs
----------     --------
1              10000+
2              100000+
googleplaystore - the table with the 10000+ records and original data
App       Category  Rating  Reviews  Installs  Price  Content_Rating  
---       --------  ------  ------   --------  -----  --------------
GMAT 
Question  Education  4.2     240      10000+    Free    Everyone
Bank
Ace Elite Finance    4.1     2898     100000+   Free    Everyone
How I need it to look
AppFact - The table that needs the tables above to be broken down from the above tables and inserted using links from Foreign Keys
AppFactID    Category  Rating  Reviews  Installs  Price  Content_Rating  
---------    --------  ------  ------   --------  -----  --------------
1              1        4.2     240       1        Free       1
2              2        4.1     2898       2       Free       1
I do apologize for not having a query that I tried writing to get it to work but I have not been shown much at all about SQL Server and so the best I know is general queries. What I do know is I need to use the below as well as possible inner joins?
INSERT INTO AppFact(...) 
    SELECT ... 
    FROM ... 
Am I on the right track?
 
     
    