Creating Company Database | SQL | Tutorial 12

  Рет қаралды 121,715

Giraffe Academy

Giraffe Academy

Күн бұрын

🦒❤️ www.giraffeacademy.com/databa...

Пікірлер: 78
@wendyfan5276
@wendyfan5276 5 жыл бұрын
I have to say a massive thank you to you, Mike!! Your tutorials are incredibly clear and helpful!! Thanks for offering these great videos for free!!!
@AndreGMendes
@AndreGMendes 5 жыл бұрын
I'm so glad to have found you Mike. I've been watching all your videos for these last 2 weeks and I'm gradually starting to see the big picture. I've started with C# because I wanted to have some basis for Unity (regarding sound design) but as I went on thought your tutorials I felt like I could take it a little bit further and actually learn some other programming languages just for curiosity. From there I went onto PYTHON and JAVASCRIPT which in the case of this last one I had to go a little back in time to revisit and learn some concepts about implementing CSS and HTML. At this moment I'm in the middle of the SQL tutorials, but I just wanted to tell you man that you're a great teacher and that I'm learning a lot from you. Thank you soo much for your effort and dedication. You have a bright future ahead. All the best!
@ibiamapexcel
@ibiamapexcel 2 жыл бұрын
He's soo so good. Am personally recommending him to anyone that wants to learn programming.
@htetlynnhtun101
@htetlynnhtun101 5 жыл бұрын
Thank you so much Mike! Your way of explaining things really click with me. Hope you make more and more precious tutorials.
@BadMoonRisin68
@BadMoonRisin68 5 жыл бұрын
The Office references are awesome! Thanks for the great instructional!
@ibiamapexcel
@ibiamapexcel 2 жыл бұрын
I give it to you my friend and tutor, you are the best. You have a unique way of making it all so simple and fun too. I have really learnt enough from this tutorial and I hope to follow on the others you did on different other programming languages. Thanks bro ...from Nigeria
@pawenobis5386
@pawenobis5386 5 жыл бұрын
Mike, how about getting back? The world needs your tuts! Great work!
@theoreticalphysics3644
@theoreticalphysics3644 4 жыл бұрын
If you're having trouble finding the source code, click the link in the description and then notice that on the left, there is a list of all of the videos, which will contain their respective code.
@StRik3EagLe
@StRik3EagLe 5 жыл бұрын
You don't have to include "INSERT INTO employee VALUES" for subsequent rows. Using following way you can get rid of these redundant entries. INSERT INTO Employee VALUES (100, 'David', 'Wallace', '1967-11-17', 'M', 250000, NULL, 1), (101, 'Jan', 'Levinson', '1961-05-11', 'F', 110000, 100, 1), (102, 'Michael', 'Scott', '1964-03-15', 'M', 75000, 100, 1);
@zoebai7991
@zoebai7991 5 жыл бұрын
Thanks! That saved me a lot of work :)
@nabhay583
@nabhay583 4 жыл бұрын
Thanks buddy!
@s3m3dov
@s3m3dov 3 жыл бұрын
Thanks, man.
@Fish_Uber
@Fish_Uber Жыл бұрын
You helped with my schoolwork! Thank you!
@muhammadfarooq5925
@muhammadfarooq5925 3 жыл бұрын
Good Mann. your little efforts made beginner's life easy ... please keep it up.
@prasadsawool6670
@prasadsawool6670 3 жыл бұрын
great content. Thanks Mike
@syedmubazir4371
@syedmubazir4371 2 жыл бұрын
A real Code Professor ❤️🙏
@mk9834
@mk9834 5 жыл бұрын
appreciate your effort!
@hv3300
@hv3300 5 жыл бұрын
Awesome Mike.... I do not see the code in description.Which tool do you use to draw ER diagram?
@mesutandres2330
@mesutandres2330 4 жыл бұрын
Awesome mike thanks for the awesome video I really needed it :-D
@alexongarrido8024
@alexongarrido8024 5 жыл бұрын
Be careful Mike!! When you create the table "employee" following your source code, you create the birth date as "birth_day" instead of "birth_date" :)) Anyway, this course its so helpful!! Thank you so much!!
@kushalshah4728
@kushalshah4728 4 жыл бұрын
Hey ... Can u help me . I can't find the source code on the link mentioned
@asharharoon6899
@asharharoon6899 3 жыл бұрын
@@kushalshah4728 Go to the link, and look in the left side there will be a bunch of tabs naming each of the tutorials in the series, click onto the tab with the name "Creating Company Database", below that video you will find the code.
@244889i
@244889i 5 жыл бұрын
Thank you!
@zivwtv
@zivwtv 5 жыл бұрын
how would you get any tables or data out of the database via a web interface, or for use in an office environment via a shared network?
@shailypriya3921
@shailypriya3921 4 жыл бұрын
thankyou
@user-ir2vf2nw6d
@user-ir2vf2nw6d 2 жыл бұрын
good practice!!
@sonamuhialdeen7866
@sonamuhialdeen7866 3 жыл бұрын
So good tutorial
@nandaarya2178
@nandaarya2178 5 жыл бұрын
Thank You
@StRik3EagLe
@StRik3EagLe 5 жыл бұрын
Instead of going circular(due to Foreign Key Constraint) for Inserting Rows, we can Create all the Rows first and then add Foreign Keys.
@stanleyjohn4670
@stanleyjohn4670 5 жыл бұрын
What happens if we add in the branch_id number in the employee table before we create the branch table itself? Will it cause an error?
@StRik3EagLe
@StRik3EagLe 5 жыл бұрын
​@@stanleyjohn4670 No problem with adding values in Employee Table before creating Branch Table without adding a Foreign Key. Also, when you add a Foreign Key in Employee Table referencing Branch Table, it would definitely cause an error because Branch Table doesn't exist yet.
@stanleyjohn4670
@stanleyjohn4670 5 жыл бұрын
@@StRik3EagLe makes sense. Are you working as a DBA or anything related to SQL? I want to find some advanced SQL courses after this but can't get hold of any.
@StRik3EagLe
@StRik3EagLe 5 жыл бұрын
​@@stanleyjohn4670 No, I was taking this course just for the heck of it. Try Udemy or Coursera if you're unable to find any advanced level courses on KZfaq.
@theoreticalphysics3644
@theoreticalphysics3644 4 жыл бұрын
Perhaps he does it circular as to show how values could be added even after foreign keys are made? Either way, your comment is good to know.
@ibnbattuta1304
@ibnbattuta1304 3 жыл бұрын
Outside of training purposes, you don't have to do the ALTER TABLE employee ADD FOREIGN KEY(branch_id) right away. You can just enter the branch #'s first, do the ALTER TABLE later, and not have to do those UPDATE employee commands.
@nooooony1430
@nooooony1430 5 жыл бұрын
thank you so much .. it' was useful tutorial..and I'm sorry for bothering you but I have problem when I try to insert the data.. it gives me an error says(literal does not match format string)and I use oracle sql developer
@scottisitt
@scottisitt 4 жыл бұрын
For source code, click on source code link in the description --> Then in the list of tutorials on the left hand side of the page, click on "Creating Company Database" (same as the title of this KZfaq video) --> and you will find the code under the embedded video.
@tathagattyger585
@tathagattyger585 Жыл бұрын
i'm getting the error "Failed to add the foreign key constraint. Missing column 'employee_id' for constraint 'branch_ibfk_1' in the referenced table 'employee'"; when creating the table branch and giving the condition of mgr_id as foreign key. Can somebody help me resolve this error !!!!
@MegaMaliak
@MegaMaliak 5 жыл бұрын
hi mike, interesting tutorial and all.. why dont u show how a few different computers will connect to it? they cant use localhost like you do, cant they? can u make a tutorial on how to run a company database and let other users from different computers upload into it?
@az6604
@az6604 3 жыл бұрын
where's the mentioned pdf?
@UnKnown-id7ih
@UnKnown-id7ih 2 жыл бұрын
I'm getting error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOREIGN KEY(mgr_id) REFERENCES employee(emp_id) )' at line 6
@jiaxuantian6103
@jiaxuantian6103 Жыл бұрын
i got the same erro message at this place!
@user-lk4ub3tq8e
@user-lk4ub3tq8e Жыл бұрын
can we create the whole tables, insert all the values and then add primary and foreign keys in alter statements?
@davidshaibu3682
@davidshaibu3682 Жыл бұрын
did you give this a try? How did it go? Thinking of doing same
@Berciq
@Berciq 4 жыл бұрын
It's not better to first put values in branch and than use them typing values in Employee without updating?
@elonmuskfanclub545
@elonmuskfanclub545 2 жыл бұрын
same here
@shaileshhd4964
@shaileshhd4964 2 жыл бұрын
You should have include Dwight Schrute and Pam and Oscar and Kevin. Damn You also missed Toby(HR). 😁😁. I'm a huge fan of The office Sitcom which is more than enough for my motivation to learn mysql. Parkour Parkour. 🤘✊
@noiboi20
@noiboi20 3 ай бұрын
i have a similar assignment but no values are given, just telling us to come up with tables, is there any need for me to fake populate it with data? if yes, where do i get the data from?
@johnmcclane6236
@johnmcclane6236 Жыл бұрын
Hello Mike, all the good words had been written to you already ❤ so I'd only like to ask if any of your video covers stored procedures as well?
@parteystephenson814
@parteystephenson814 4 жыл бұрын
inserting data into corporate i said , i get this alert that i have a duplicate primary key ie 100 , WHAT should i do to reverse this
@parteystephenson814
@parteystephenson814 4 жыл бұрын
PLEASE any help here
@ankitdoshi2141
@ankitdoshi2141 Жыл бұрын
Hey MIke when i am trying to exciute the code for Server: Msg 1785, Level 16, State 1, Line 1 Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Server: Msg 1750, Level 16, State 1, Line 1 Could not create constraint. See previous errors . Not sure how to fix this
@bini2036
@bini2036 4 жыл бұрын
at 10:00min Can you do UPDATE Employee SET branch_id = 1 WHERE branch_name = 'Corporate'; ??
@Nockoutz1
@Nockoutz1 3 жыл бұрын
no
@laurennguyen9720
@laurennguyen9720 4 жыл бұрын
how about brand_supplier. I couldn't see you create it.
@thiagomoreira5287
@thiagomoreira5287 3 жыл бұрын
I had any troubles trying to create the campany database haha
@tauheedakbar3524
@tauheedakbar3524 3 жыл бұрын
foreign keys have to be unique or priamry keys
@insideyourcloset2725
@insideyourcloset2725 5 жыл бұрын
When I use the DATE datatype, it doesn’t work, is this common
@insideyourcloset2725
@insideyourcloset2725 5 жыл бұрын
Amobi Ndubuisi T. Yes, but when i use DATE, it doesn’t highlight like it’s a command
@kushalshah4728
@kushalshah4728 4 жыл бұрын
Can't find the source code in your website. Please can u help....
@lovingnaturewithruth
@lovingnaturewithruth 6 жыл бұрын
so im looking into developing a database and would love to know which text editor you were using to create the database
@marcelobiagiola9361
@marcelobiagiola9361 5 жыл бұрын
POPSql
@phaacwesipartey4187
@phaacwesipartey4187 4 жыл бұрын
please am having this alert saying i have duplicate data.....Whats the way forward? ...Please help me am stuck
@tauheedakbar3524
@tauheedakbar3524 3 жыл бұрын
you must be trying to create the same table twice or something drop it first
@handnou7660
@handnou7660 4 жыл бұрын
I CAN NOT SEE THE SOURCE CODE CAN YOU DIRECT ME I CLICKED THE LINK BUT STILL I CAN NOT SEE IT
@Svarastis
@Svarastis 4 жыл бұрын
Broke ur caps button? calm the fuck down son
@mramzanali1724
@mramzanali1724 8 ай бұрын
Could you kindly share the PDF document for this database with me?
@heisdolo
@heisdolo 2 жыл бұрын
INSERT INTO employee VALUES(100, 'David', 'Wallace', '1967-11-17', 'M', 25000, NULL, NULL); I get literal does not match format string
@srdjanmalinovic1085
@srdjanmalinovic1085 2 жыл бұрын
@Mike Dane Are you still Here i could use some help as a beginner. I need Conversation Table, where we got Date of sent or date when message was received also What message is, and Who send it and who received it. So TIme and Date when Message is Received, Who received it and who send it Also should Save Sent messages and also Status of the message...
@srdjanmalinovic1085
@srdjanmalinovic1085 2 жыл бұрын
It is Employee conversation of never mind company.
@hemanthrgh5270
@hemanthrgh5270 3 жыл бұрын
Can you share this compony er diagram
@wilfredpadambo6186
@wilfredpadambo6186 5 жыл бұрын
have installed mysql and dbeaver how can I create database?
@Arnonis
@Arnonis 4 жыл бұрын
I just typed CREATE DATABASE database_name; and then USE database_name;
@AnotherAgnostic
@AnotherAgnostic 4 жыл бұрын
Too bad this is MySQL... I need to learn MS SQL Server.
@harikrishna-zg6gh
@harikrishna-zg6gh Жыл бұрын
At 5:43 kzfaq.info/get/bejne/guCVibOL2bDLnHk.html While executing below syntax: ALTER TABLE employee ADD FOREIGN KEY(super_id) REFERENCES employee(emp_id) ON DELETE SET NULL; Error: Msg 1785, Level 16, State 0, Line 27 Introducing FOREIGN KEY constraint 'FK__employee__super___3D5E1FD2' on table 'employee' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Msg 1750, Level 16, State 1, Line 27 Could not create constraint or index. See previous errors. Could you please help me what went wrong?
More Basic Queries | SQL | Tutorial 13
6:18
Giraffe Academy
Рет қаралды 35 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,4 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 41 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 97 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 55 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 12 МЛН
Nested Queries | SQL | Tutorial 18
10:23
Giraffe Academy
Рет қаралды 174 М.
Programming Languages DON'T MATTER | Let's Rant!
10:05
Giraffe Academy
Рет қаралды 43 М.
SQL Views Tutorial | VIEWS in SQL Complete Tutorial
43:20
techTFQ
Рет қаралды 253 М.
Logical Database Design and E-R Diagrams
32:23
Brian Green
Рет қаралды 369 М.
Tables & Keys | SQL | Tutorial 2
20:41
Giraffe Academy
Рет қаралды 87 М.
MySQL - The Basics // Learn SQL in 23 Easy Steps
17:17
Fireship
Рет қаралды 808 М.
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 45 М.
How to design database for a project
18:16
BBarters
Рет қаралды 93 М.
Learn SQL Joins
21:38
Decomplexify
Рет қаралды 43 М.
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 41 МЛН