SQL Database Design Tutorial for Beginners | Data Analyst Portfolio Project (1/3)

Поделиться
HTML-код
  • Опубликовано: 25 июл 2024
  • 👀 WATCH PART 2 HERE: • Custom SQL Query Tutor...
    In this video, I show you how you’d go about designing and building a relational database from scratch. I take you step-by-step through the process and show you a cool tool you can use to make your job a lot easier.
    This is part 1 of a 3 part series (WATCH THE FULL PROJECT HERE IN A SINGLE VIDEO: • Data Analyst Portfolio... ) that will show you how to build an awesome project for your data analyst portfolio. It’s a project that will demonstrate to any potential employers a load of different skills that you’d be required to have for working with SQL databases. In this video, we concentrate on building a relational database in MySQL and then in the next videos we’ll concentrate on writing SQL queries to create views of the database and then build out the dashboards.
    Timestamps
    00:00 Intro
    01:12 Project brief
    02:10 Orders data
    08:37 Placing fake orders
    09:30 Stock control data
    11:13 Staff data
    12:56 Export SQL code
    13:42 Creating the database
    14:05 Creating the tables
    15:11 Outro
    🛠 TOOLS USED IN THIS VIDEO
    Quick Database Diagrams - geni.us/quickdbd
    Navicat - navicat.com
    🏠 JOIN THE LEARN BI ACADEMY - geni.us/lbi_academy
    🚀 BECOME A BI ANALYST - geni.us/lbia_biasp
    🏆 TAKE THE BI CONSULTANT MASTERCLASS - geni.us/lbia_bicm
    🧰 TOOLS & SKILLS
    Excel For BI Analysts - geni.us/lbia_excel
    SQL For BI Analysts - geni.us/lbia_sql
    Power BI For BI Analysts - geni.us/lbia_powerbi
    Tableau For BI Analysts - geni.us/lbia_tableau
    Looker Studio For BI Analysts - geni.us/lbia_lookerstudio
    📊 DATA ANALYST PROJECTS
    All Projects - geni.us/lbia_projects
    Ben’s Pizzeria - geni.us/pizzaproject
    Hotel Reservations - geni.us/hotelproject
    Multi-Channel Marketing - geni.us/multichannelproject
    Call Centre - geni.us/callcentreproject
    🎥 RECOMMENDED VIEWING
    7 Steps to Your 1st BI Analyst Job - geni.us/7stepstobivid
    Learn Basic SQL in 15 Minutes - geni.us/learnbasicsql15-1
    BI For Beginners Playlist - geni.us/biforbeginners-play
    📕 FREE EBOOKS
    7 Top Tips For Better Dashboard Design - geni.us/dashdes-ebook
    Skills You Need To Succeed In BI - geni.us/biskills-ebook
    7 Steps to Your 1st BI Job - geni.us/7stepstobi-ebook
    📊 DATA HUBS & WEBSITES:
    Power My Analytics - geni.us/YLc9Re
    Windsor.ai - geni.us/windsorai
    Kaggle - www.kaggle.com/
    Statista - www.statista.com/
    Data World - data.world/
    DISCLAIMER: Some of the above links are affiliate links where I'll earn a small commission if you make a purchase using them, at no additional cost to you. It really helps support the channel so thanks in advance if you do use them 🙏
    ✅ LET'S CONNECT!
    BUSINESS INQUIRIES - learnbi.online/contact
    CONSULTING CALL WITH ADAM - geni.us/bookacall-adamfiner
    JOIN MY MAILING LIST - geni.us/PSgRsF
    FACEBOOK GROUP - geni.us/learnbi-fbg
    #databasedesign #sqltutorial #businessintelligence #dataanalyst

Комментарии • 124

  • @angelleal3005
    @angelleal3005 2 года назад +4

    Great Tutorial ! Eager to see the parts to follow this one. Keep up the good work.

  • @aiasaiascon3894
    @aiasaiascon3894 2 года назад +2

    Again ! This is a fantastic video with Clarity and Simplicity!!!! Thank you Thank you and Bravo !!!! magnifique!!!!

  • @anexusthanatos4021
    @anexusthanatos4021 Год назад +10

    This is incredibly informative! Sweet, concise, and powerful. Keep up the good work!

    • @LearnBI
      @LearnBI  Год назад +1

      Thanks, I’ll try!

  • @lifesuccess1901
    @lifesuccess1901 2 месяца назад

    Just waoo..! What a systematic approach.

  • @alexisluna1751
    @alexisluna1751 Год назад +1

    everything ive learned from sql has come from you, GREAT WORK!

    • @LearnBI
      @LearnBI  Год назад

      Thanks! Glad to help

  • @Aksinia1599
    @Aksinia1599 2 года назад +4

    Thank you so much!
    Your teaching style is great, so clear and easy to understand.

  • @ahmedroberts4883
    @ahmedroberts4883 Год назад

    Great Video! I will definitely be following along. Thank you.

    • @LearnBI
      @LearnBI  Год назад

      You’re welcome

  • @markwilhelm1304
    @markwilhelm1304 2 года назад +12

    Fantastic! This is easily the simplest and best introduction to databases and SQL I have seen.... Thank you so much.....please keep up the great work!

    • @LearnBI
      @LearnBI  2 года назад +1

      Thanks for your feedback, much appreciated

    • @pandipatipavan3804
      @pandipatipavan3804 Год назад +1

      ​@@LearnBIPlease provide the code files and the links in the description as soon as possible for free 🙏

  • @andresortiz3859
    @andresortiz3859 Год назад

    Great Video! Thank you.

    • @LearnBI
      @LearnBI  Год назад

      You’re welcome!

  • @vickarkhan
    @vickarkhan 2 года назад +4

    So to the point content. Amazing. Excitedly anticipating the further videos on this subject

    • @LearnBI
      @LearnBI  2 года назад +1

      Great! Don't forget to head on over to learnbi.online/pizza and place a fake pizza order!

    • @jam5316
      @jam5316 8 месяцев назад

      hi, where can i get the exceldata?@@LearnBI

  • @kennethwaynescott8469
    @kennethwaynescott8469 Год назад

    Just want to re-iterate the other comments. This is awesome stuff having all this straigh forward guidance in one place. Kudos!

    • @LearnBI
      @LearnBI  Год назад

      Thanks for your feedback, you’re very welcome!

  • @Kirankumar-ml1ro
    @Kirankumar-ml1ro Год назад

    Great video!

  • @snehalbhartiya6724
    @snehalbhartiya6724 Год назад

    Insanely beautiful content. 100/100

    • @LearnBI
      @LearnBI  Год назад

      Insanely beautiful comment 🙏🏻

  • @silkyslim2111
    @silkyslim2111 2 года назад

    Thanks so much!

    • @LearnBI
      @LearnBI  2 года назад +1

      You're welcome!

  • @Igzanda135
    @Igzanda135 Год назад

    thanks for helping start my db journey!

  • @Skibadee99
    @Skibadee99 Год назад +1

    Thanks!

    • @LearnBI
      @LearnBI  Год назад

      You're welcome! Thanks for your support 😁

  • @AMINE-dd1qy
    @AMINE-dd1qy 6 месяцев назад

    really enjoyed the video thank you so much

    • @LearnBI
      @LearnBI  6 месяцев назад

      You’re welcome

  • @framemaze3292
    @framemaze3292 3 месяца назад

    Thank you so much for this. I’m just starting to learn SQL, and this is invaluable. Thank you, and keep up the good work 👍

    • @LearnBI
      @LearnBI  3 месяца назад

      My pleasure

  • @satishb9975
    @satishb9975 10 месяцев назад

    Thank you very much it was very intutive and easy to understand with concepts of the use case

    • @LearnBI
      @LearnBI  10 месяцев назад

      Glad it was helpful!

  • @GenNextAnalyst
    @GenNextAnalyst Год назад

    Thank you for the most strightforward database design! Hope you can update tutorial with cost of goods sold calculation.

    • @LearnBI
      @LearnBI  Год назад

      Part 2 is already available: Custom SQL Query Tutorial For Beginners | Data Analyst Portfolio Project (Part 2)
      ruclips.net/video/Yw3oqqkhohY/видео.html

  • @kunjd26
    @kunjd26 Месяц назад +1

    10:08 Make it thing more complicated! 😀 We need that

  • @0x007A
    @0x007A Год назад

    The Quick Database Diagrams tool will definitely simply creating diagrams for each table and any relationships between them in a database.

  • @behrad9712
    @behrad9712 Год назад

    thank you!🙏

    • @LearnBI
      @LearnBI  Год назад +1

      You’re welcome!

    • @behrad9712
      @behrad9712 Год назад

      @@LearnBI can i ask a question
      Do you think is better to focus on SQL in order to achieve more expertise (more engineering or programming like jobs) & money in data world or I have a naive argument here!?

    • @LearnBI
      @LearnBI  Год назад +1

      If your aim is to go for data engineering or programming roles then SQL is essential. But it's also a skill that a lot of people have so isn't as valuable as knowing other less common languages. Programming isn't my field though so I'm the wrong person to ask about it. When it comes to BI, you'll need SQL, Excel and BI tools as the essentials.

    • @behrad9712
      @behrad9712 Год назад

      @@LearnBI thank you! 🙏

  • @renatojrf
    @renatojrf 2 года назад +2

    I am wondering whether the direction of the arrows matters. For example, when you drag the "staff_id" in the 'rota' table towards the "staff_id" in the 'staff' table you're implying that "rota.staff_id" will be a foreign key for "staff.staff_id". Shouldn't the direction be always from the table where the selected field is "Primary Key" towards the table where it is a generic field?
    I was also confused by the relation between "rota.date" and "orders.created_at". From my understanding, the relation between tables should be "one to many"; however, dates can be repeated in both rota and orders table, which makes the relation "many to many". Could you clarify this point?

    • @LearnBI
      @LearnBI  2 года назад

      All will become clear in part 2 😉

  • @markdebonis6803
    @markdebonis6803 2 года назад +1

    Hello, thank you for the video. I’m extremely new to this whole world and have been taking the time to learn about building a database for a business. I have one question that has been confusing me, and I’m hoping you can help. If I build a database for a business. Do they have to install it on their computer and I run all the software from there login? Or do I create it on mine and the dashboard will show just their data. Thank you, and I hope this makes sense lol

    • @LearnBI
      @LearnBI  2 года назад

      Hi Mark, an RDBMS/databases can be installed on any computer. It does not need to be on the client's computers/servers. You can even rent an instance of most RDBMS in the cloud.

  • @zacpaolo7845
    @zacpaolo7845 2 года назад +1

    Couple questions - is it important to designate the difference between partial and total participation? Strong entities and weak entities? Should customer and staff have a super class because of their similar attributes? (first name, last name)

    • @LearnBI
      @LearnBI  2 года назад

      Totally unnecessary for our use case

  • @mahmoudelrasool8684
    @mahmoudelrasool8684 8 месяцев назад

    Thanks for your simplicity, but I have a question, why did you give address_id an int data type mean while you gave item_id VARCHAR data type?

  • @rodolfoosoriomc
    @rodolfoosoriomc 2 месяца назад

    Good video, just confusing that you have set columns as INT but set data in those columns as varchars

  • @bralabala
    @bralabala 2 года назад +2

    waiting for part 2

    • @LearnBI
      @LearnBI  2 года назад +1

      It won’t be for another 2-3 weeks to try and get as big a dataset as possible. Don’t forget to make a fake pizza order at learnbi.online/pizza

  • @beautyofthailand7393
    @beautyofthailand7393 Год назад

    You might want to explain one to many relationships for FKeys

    • @LearnBI
      @LearnBI  Год назад

      It’s a good idea but it doesn’t really have any impact on what we’re trying to achieve with this project. I’m going to cover cardinality in a video coming soon 👍🏻

  • @danielcastillo9339
    @danielcastillo9339 Год назад

    Amazing video! i had a problem i tried to edit the schema with my own project and now i don't know if i erased your project :(

  • @smburhan6323
    @smburhan6323 9 месяцев назад

    With the full picture of all the tables, im having trouble understanding in items table what is 'SKU'. Can you explain by breaking it down that how the tables Items, Recipe, ingredients and inventory are connected to each other how are these values related? BTW Thank you and awesome tutorial ❤

    • @LearnBI
      @LearnBI  9 месяцев назад

      SKU is a product reference number. To understand the relationship between the tables, everything is explained in the videos

  • @BlakeC341
    @BlakeC341 Год назад

    Quick DBD is useful but flawed when it comes to properly establishing relationships amongst tables.

  • @inyangemmanuel7323
    @inyangemmanuel7323 9 месяцев назад

    great job in explaining,although i could not find the link for the excel file. is there a link where i can download the excel file?

    • @LearnBI
      @LearnBI  9 месяцев назад

      I’m afraid not

  • @luvgupta7151
    @luvgupta7151 Год назад

    this video was "best video of 2023 & beyond"

    • @luvgupta7151
      @luvgupta7151 Год назад

      i think your the messi in data analyst!

    • @LearnBI
      @LearnBI  Год назад

      High praise indeed! Thanks!

  • @dehniseruby
    @dehniseruby Год назад +1

    what software are you using? and can I do this with postgresql?

    • @LearnBI
      @LearnBI  Год назад

      Links to the tools I used are in the video description. You can choose to export the database SQL to any RDBMS including PostgreSQL

  • @carltonseymour869
    @carltonseymour869 Год назад +1

    Thank you Adam for this amazing video. A question. Is the back-end tables coming from the front-end tables? Meaning is the OLAP tables that you are building coming from the OLTP tables.

    • @LearnBI
      @LearnBI  Год назад

      I’m not sure I understand the premise of your question. There is just a single database that contains these tables. No difference between front and back end.

  • @DanielCastillo-no5ot
    @DanielCastillo-no5ot 6 месяцев назад

    best? tnhks

  • @danielamoscoso23
    @danielamoscoso23 5 месяцев назад

    Is the navicat new database option available even if on trail version and not premium?

    • @LearnBI
      @LearnBI  5 месяцев назад

      The trial version is no different from the full version

  • @Dipole__
    @Dipole__ Год назад +1

    where did he get data (csv) he imported to the database tables?

    • @LearnBI
      @LearnBI  Год назад +1

      I created the data sets myself. You can get hold of all the csv data at learnbi.online/pizzaproject

  • @reforma44
    @reforma44 Год назад

    havent got it, how to write various items in the same order, exept for creating the same order as many times as many items it has. the same about ingredients. Can it be solved?

    • @LearnBI
      @LearnBI  Год назад

      I'm sorry but I don't understand your question 😔

  • @shaikazar2436
    @shaikazar2436 Год назад

    Great Tutorial can u please provide the csv files he uploaded

    • @LearnBI
      @LearnBI  Год назад

      You can get your hands on the data here: LearnBI.online/pizzaproject

  • @worldofdata000
    @worldofdata000 8 месяцев назад

    Hi, please how can i get the datasets to populate the sql tables

    • @LearnBI
      @LearnBI  6 месяцев назад

      learnbi.online/pizzaproject

  • @lucasgonzalezsonnenberg3204
    @lucasgonzalezsonnenberg3204 Месяц назад

    What are the names of the tables? Should I copy the information? Is it possible to download the excel spreadsheet?
    Thank you very much. Good Information!

    • @LearnBI
      @LearnBI  Месяц назад

      The Excel data is available as a paid download from here ➡️ www.learnbi.academy/courses/pizzeria-sql-project

  • @mdrahman-ju9qv
    @mdrahman-ju9qv Год назад

    where can I get your videos in a good quality? In youtube it is not very clearer.

    • @LearnBI
      @LearnBI  Год назад

      In the settings ⚙️of the video, make sure it is set to 1080p 👍🏻

  • @hogarthheathan
    @hogarthheathan 11 месяцев назад

    how long do you reckon it would take to make a database for map related review leaving app?

    • @LearnBI
      @LearnBI  11 месяцев назад

      I’m sorry but I don’t understand your question

    • @hogarthheathan
      @hogarthheathan 11 месяцев назад

      @@LearnBI my apologies, I'm looking to make a database for a site that uses maps with pin locations that show the average rating out of 5 stars. It's something akin to Google maps where you can rate certain locations, how long would a database like this take do you think. I didn't go full detail but that is the just of it.

    • @LearnBI
      @LearnBI  11 месяцев назад

      @@hogarthheathan As you can see from the video, creating the database doesn't take very long at all, it's inserting the data that would take a lot of work. If you are starting from scratch, you would need to scrape data from the web using something like Python. But that's not my wheel house.

  • @abdirauf72
    @abdirauf72 Месяц назад

    What editor are you using?

  • @temitopeolagoke
    @temitopeolagoke Год назад

    Please how can I access the dataset used?

    • @LearnBI
      @LearnBI  Год назад

      learnbi.online/pizzaproject

  • @arcaneknight9799
    @arcaneknight9799 9 месяцев назад

    When I import the CSV files into MySQL for orders and rota tables, it says 0 records imported, and the tables are empty. Not sure why. All the other tables import just fine.

    • @LearnBI
      @LearnBI  9 месяцев назад

      You don’t need to import the data files one you run the.sql file because the data is contained in that. Delete the database and start again.

    • @arcaneknight9799
      @arcaneknight9799 9 месяцев назад

      @@LearnBI I figured it out. It was the datetime format of the csv. Thanks.

  • @devanshrajput3237
    @devanshrajput3237 Год назад

    Sir from where to get data ?

    • @LearnBI
      @LearnBI  Год назад

      In the video I explain that I set up a fake pizza ordering page where people placed fake orders. This is what created the data.

  • @vishalgoku2988
    @vishalgoku2988 Год назад

    how to mention this project in our resume?
    how would we describe the project in the resume ?

    • @LearnBI
      @LearnBI  Год назад

      If you watch all 3 parts and follow the project to its conclusion, you’ll have all the information you need to describe the project.

    • @passportbro904
      @passportbro904 7 месяцев назад

      Come on help us out lol ​@@LearnBI

  • @atnguyentien6997
    @atnguyentien6997 Год назад

    please help me to resolve this error when I try to create the schema with PgAdmin (PostgreSQL)
    ERROR: there is no unique constraint matching given keys for referenced table "orders"
    SQL state: 42830

    • @LearnBI
      @LearnBI  Год назад

      3 things. 1) the database we created is MySQL, not Postgres 2) some errors don’t stop you from creating and using the database, 3) Google is your friend

    • @atnguyentien6997
      @atnguyentien6997 Год назад

      @@LearnBI
      1) I am newbie and I am getting used to PostgreSQL.
      2) I cannot create the database with that error
      3) I have tried to ggl but still cannot understand, I am newbie, please kindly help

    • @LearnBI
      @LearnBI  Год назад

      The code is in MySQL language, not Postgres. They are not the same.

  • @ahmedfaraz9813
    @ahmedfaraz9813 Год назад

    how can i get the data file for this project. Anyone?

    • @LearnBI
      @LearnBI  Год назад

      learnbi.online/pizzaproject

  • @user-lo3pv8rk7t
    @user-lo3pv8rk7t 3 месяца назад

    Great explanation but only 10 free tables, unless you upgrade to pro

  • @dede2007x
    @dede2007x Месяц назад

    Hi... do you have these course on udemy? (with real project and data like in real world) please give me the link. Thank You..

    • @LearnBI
      @LearnBI  Месяц назад

      I have a complete e-learning platform at www.learnbi.academy

  • @DANNYEL20122
    @DANNYEL20122 Год назад

    Where's the part 2?

    • @LearnBI
      @LearnBI  Год назад

      Link in the description

  • @arcaneknight9799
    @arcaneknight9799 9 месяцев назад

    what if we don't have Navicat and don't want to pay for it?

    • @LearnBI
      @LearnBI  9 месяцев назад

      You can use MySQL Workbench, it’s free

    • @arcaneknight9799
      @arcaneknight9799 9 месяцев назад

      @@LearnBI figured it out, thanks. Going to part 2 of your project. Any plans for a new project soon?

  • @aiasaiascon3894
    @aiasaiascon3894 2 года назад +1

    I think Adam - that the Pizza concept is one of the most fantastic Online Promo Marketing & Email List Growth - super scheme ever!!!! very funny and very smart!!!! Huge success for me!!!! Well Done Man!!!

    • @LearnBI
      @LearnBI  2 года назад +1

      Thanks. And thank you for making a complete completely ridiculous pizza order that I will now have to delete from the data set. Fool.

  • @darrylw99
    @darrylw99 29 дней назад

    I started watching but stopped when I realised it was mysql

    • @LearnBI
      @LearnBI  29 дней назад

      Thanks for your feedback, very helpful!

  • @cubsywubsy
    @cubsywubsy Год назад

    this guy sounds like the Kurgesagt guy

  • @george2326
    @george2326 3 месяца назад

    orders
    -
    row_id int pk
    order_id varchar(10)
    created_at datetime
    item_name varchar(50)
    item_cat varchar(50)
    item_size varchar(20)
    item_price decimal(5,2)
    quantity int
    cust_firstname varchar(50)
    cust_lastname varchar(50)
    delivery boolean
    delivery_address1 varchar(200)
    delivery_address2 varchar(200)
    delivery_city varchar(50)
    delivery_zipcode varchar(20)

  • @alexyakoveno4682
    @alexyakoveno4682 Год назад +1