Data Warehouse Tutorial - Creating database (Lesson 2)

Data Warehouse Tutorial - Creating database (Lesson 2)

Creating a Database: Part One

Overview of the Transactions Database

  • The transactions database consists of nine tables, with the facts table being the most crucial. Other tables are categorized as dimension tables.

Steps to Create Your Database and Tables

  • The CREATE DATABASE statement is used to establish a new database named "transactions" and set its recovery model to simple.
  • The process begins by selecting the database using the USE keyword, which allows for subsequent operations on that specific database.
  • Several key tables are created:
  • Sales Places Table
  • Customers Table
  • Salesmen Table
  • Cars Table
  • Payment Methods Table
  • New or Used Table
  • Additional tables include:
  • Sales Date Table
  • Sales Hour Table
  • Finally, the creation of the essential Transactions Facts Table concludes this section.

Inserting Sample Data

  • A segment dedicated to inserting sample data into these newly created tables is introduced, emphasizing practical application after table creation.

Creating a User in Object Explorer

Video description

DONATE CHANNEL: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AELDZYW2RPKH6&source=url All Data Warehouse tutorial: https://www.youtube.com/playlist?list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt Lesson 1: Date Warehouse Tutorial - Introduction https://www.youtube.com/watch?v=AfIHINaKD9M&list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt&index=2&t=5s Lesson 2: Data Warehouse Tutorial - Creating database https://www.youtube.com/watch?v=b_0RrFXnlhc&list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt&index=3&t=511s Lesson 3: Data Warehouse Tutorial - Creating an OLAP cube - Data Warehouse for beginners https://www.youtube.com/watch?v=Z00VTv0GA9I&list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt&index=4&t=0s Lesson 4: Data Warehouse tutorial. Creating an ETL https://www.youtube.com/watch?v=9Akvz2x0az4&list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt&index=5&t=1371s Lesson 5: Data Warehouse Tutorial - Jobs - Data Warehouse for beginners https://www.youtube.com/watch?v=b997bACm_mE&list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt&index=6&t=13s Lesson 6: Data Warehouse Tutorial - Pivot Table in Excel and data presentation https://www.youtube.com/watch?v=n7K6JEvcYFg&list=PL99-DcFspRUoWh6w2E1gI-SR54Oq3M2lt&index=7&t=3s Data Warehouse for beginners: creating database in SQL Server, Facts table, dimensions table