Тёмный

Mini SQL Project for Creating Tables: SQL 30 Day Challenge Day 7 

Learning with Jelly
Подписаться 6 тыс.
Просмотров 235
50% 1

Day 7 we are creating a table about Disney Pixar Films and using SQL to query it. Learn how to create a table in sql, insert data, and query the table to return the data, get unique values, and rename columns. Also understand data types and constraints when creating tables for SQL databases.
Project Steps:
STEP 1: Create a table called pixar_films
with these columns: film_id (Num & PK-AI),
film_title (TEXT-no nulls), release_year (Num-No Nulls, greater than 1995),
director (TEXT), tomatoes_score (Num-bw 0-100)
Step 2: Insert data
Toy Story, 1995, John Lasseter, 100
Finding Nemo, 2003, Andrew Stanton, 99
Inside Out, 2015, Pete Docter, 98
Ratatouille, 2007, Brad Bird, 96
Coco, 2017, Lee Unkrich, 97
Step 3: Select everything
Step 4: Select unique release_years
Step 5: Rename film_title to Title
and release_year to Year
-----------------------------------------------------------------
Download SQLite Studio Here: sqlitestudio.pl/
Download the Chinook Database: www.sqlitetuto...
Link to Topic List: docs.google.co...
Link to Facebook Support Group: / 767988395118964
Link to my Data Etsy Shop (support me to keep making content): jellysgeekygoo...
Buy me a coffee to show support: buymeacoffee.c...
#sql #sqltutorial #sqlforbeginners

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@awotundeoluwatosin7427
@awotundeoluwatosin7427 3 месяца назад
I made a mistake when creating my table and used File_Id instead of Film_id. Please How do i Update/ Correct that without creating a duplicate table. Thanks Keep up the good work God Bless
@learningwithjelly
@learningwithjelly 3 месяца назад
For now (since we have not learned updating tables) just rename ID back to File_Id and then Film_Id to ID using a select statement. Or the easiest way for now is to close out of SQLite and reopen it. And correct your code to have the right column and rerun it
@malcorub
@malcorub 3 месяца назад
My kids have been bugging me to take them to see Inside Out 2... might just have to take them to the drive in this weekend. lol. Awesome 30 day challenge, keep it up!
@learningwithjelly
@learningwithjelly 3 месяца назад
Go see it!!!! Lol and thank you for participating in the challenge
@SaraEliBeth90
@SaraEliBeth90 3 месяца назад
Is there any reason you did auto increment versus identity and selecting the number and increment value?
@learningwithjelly
@learningwithjelly 3 месяца назад
Nope multiple ways to do it just chose auto increment for simplicity for beginners here
Далее
Bearwolf - GODZILLA Пародия Beatrise
00:33
Просмотров 193 тыс.
UUID vs INT: What’s Better For Your Primary Key?
9:40
The Sad Reality of Being a Data Scientist
8:55
Просмотров 64 тыс.
Bearwolf - GODZILLA Пародия Beatrise
00:33
Просмотров 193 тыс.