Functions | SQL | Tutorial 14

  Рет қаралды 62,986

Giraffe Academy

Giraffe Academy

Күн бұрын

Пікірлер: 43
@ramzisiliman6592
@ramzisiliman6592 2 жыл бұрын
Thanks bro for your tutorials. They have been the best of all that I have tried to attach myself to. Keep us updated. Lots of appreciation to Giraffe Academy
@mrityunjayahiremath3951
@mrityunjayahiremath3951 5 жыл бұрын
Mike Dane + SQL =
@sintunayehu8694
@sintunayehu8694 4 жыл бұрын
This is Great. The best place to start SQL. Thanks Man!
@shegxyGOTT
@shegxyGOTT 3 жыл бұрын
Unfortunately he titled it 14....so I am asking where is 1-13
@educationtatva
@educationtatva 2 жыл бұрын
kzbin.info/www/bejne/aHzFi2Roh7CShas I also tried explaining this topic. Please let me know any feedback.
@absurd7292
@absurd7292 4 жыл бұрын
This is the coolest one.
@weedosutra
@weedosutra 3 жыл бұрын
Thanks for sharing..very helpful! Love the "Office" employees! :)
@Be_Khaos
@Be_Khaos 5 жыл бұрын
Fuck I'm an idiot. Mike at 3:57: "That's probably because David Wallace makes 250 grand a year." Me: David Wallace... Where do I know that from? Oh! The Office! Coincidence i guess. *Looks at the other names* Nope they're all there, I'm an idiot.
@jaigandhi9680
@jaigandhi9680 5 жыл бұрын
his code that was originally copied was birth_day not birth_date - make sure you know that
@zen123w
@zen123w 4 жыл бұрын
Mike is testing us to see if we are paying attention ;)
@michaell1787
@michaell1787 4 жыл бұрын
@@zen123w yea, I was like why is mine not working??? I know it's in there right. Took me a min and I went back through the data LOL
@GameOnMe
@GameOnMe 4 жыл бұрын
you're the best
@PsyChoChiRcuS
@PsyChoChiRcuS 3 жыл бұрын
>= '1971-01-01' or > '1970-12-31'
@filibertogarced
@filibertogarced 2 жыл бұрын
It must be good to work at Dunder Mifflin 😆
@sonamuhialdeen7866
@sonamuhialdeen7866 3 жыл бұрын
Awesome
@ramzisiliman6592
@ramzisiliman6592 2 жыл бұрын
I need more clarification on how to relate tables using SQL
@bellewolde
@bellewolde 4 жыл бұрын
this helps a lot!!
@educationtatva
@educationtatva 2 жыл бұрын
kzbin.info/www/bejne/aHzFi2Roh7CShas I also tried explaining this topic. Please let me know any feedback.
@mohamed.montaser
@mohamed.montaser 4 жыл бұрын
you didn't use joins in the last example, how?
@lilmamagc
@lilmamagc 2 жыл бұрын
Gonna have to go through this again. I understand somewhat, but I don't understand why it works. :(
@jatindersingh-sw9ip
@jatindersingh-sw9ip 4 жыл бұрын
Could you make video on lowercase letters and uppercase
@mohitsinghania6714
@mohitsinghania6714 5 жыл бұрын
Guest wants to display Resort Id, Name and Comments of the resort based on it's star rating. Comments of the resort displays as follows If rating is between 5.0 to 4.5 then display the comments as 'Excellent Resort' If rating is between 4.4 to 4.0 then display the comments as 'Very Good Resort' else display 'Good Resort' . Give alias name to this result as Comments. Sort the result based on resort id pls help me with this question and also help me with some tricks.
@sojtuber
@sojtuber 5 жыл бұрын
mysql m=mike y=youth s=structure q=query l=languag...
@educationtatva
@educationtatva 2 жыл бұрын
Hey Mohit, let's connect it's very easy
@ajithc64
@ajithc64 4 жыл бұрын
How to find which employee sales high and which client buy more??
@skyblue021
@skyblue021 5 жыл бұрын
Such a great tutorial! How to connect emp_id with their name from a different table?
@sadgabe
@sadgabe 5 жыл бұрын
SELECT e.first_name, e.last_name FROM employee AS e WHERE emp_id = (SELECT emp_id FROM works_with); This would connect emp_id with works with and employee and return all employees who are included in the works_with table. You can do a nested query like this or a JOIN statement I believe for this.
@educationtatva
@educationtatva 2 жыл бұрын
kzbin.info/www/bejne/aHzFi2Roh7CShas I also tried explaining this topic. Please let me know any feedback.
@thrang_eo
@thrang_eo 6 жыл бұрын
♥️♥️🙏
@myHellnet
@myHellnet 4 жыл бұрын
Hi, I'm following your series of tutorials and I have a question for you. I'm in this line of code SELECT SUM(total_sales), emp_id FROM works_with GROUP BY emp_id; the question is: how do i get the output of the name of the employee instead of their emp_id?. We are working on the works_with table but the name is in the employee table.
@myHellnet
@myHellnet 4 жыл бұрын
OK, nevermind, I got to the JOINS video tutorial (17) and solved it with this ------------------------------------------------------------------------------------------------------------- SELECT employee.emp_id, employee.first_name, SUM(total_sales) FROM employee JOIN works_with ON employee.emp_id = works_with.emp_id GROUP BY employee.emp_id;
@yuanfang8102
@yuanfang8102 4 жыл бұрын
The code of the last video has the following part: -- Find all employee's id's and names who were born after 1969 SELECT emp_id, first_name, last_name FROM employee WHERE birth_day >= 1970-01-01; should it be WHERE birth_day >= 1970-01-01; or WHERE birth_day >= '1970-01-01'; (add a single quotes to 1970-01-01) ?
@PsyChoChiRcuS
@PsyChoChiRcuS 3 жыл бұрын
obviously : >= '1971-01-01' or > '1970-12-31' and yes you need quotes since DATE FORMAT is rather String. Or else that would be a numeric sequence.
@educationtatva
@educationtatva 2 жыл бұрын
kzbin.info/www/bejne/aHzFi2Roh7CShas I also tried explaining this topic. Please let me know any feedback.
@zirelyleon3844
@zirelyleon3844 3 жыл бұрын
Hi, I need that the values for a ColumnID, which is a Primary Key, to start at 100 and increment by 5. AUTO_Increment doesn't work in my case because it increases only by 1. How can I do that in MySQL? Hope you could help me. Thanks.
@educationtatva
@educationtatva 2 жыл бұрын
Hi Zirely. Follow this tutorial www.tutorialspoint.com/mysql-what-is-auto-increment-5-in-a-create-table-query#:~:text=The%20AUTO_INCREMENT%3D5%20in%20a,starts%20from%201%20by%20default. in case you want to thanks or ask further, subscribe to my channel. I will help you.
@scottisitt
@scottisitt 4 жыл бұрын
7:22 Why did only only four employees show up in the table if there are nine employees from the works_with table?
@jaychang5631
@jaychang5631 4 жыл бұрын
maybe other employees are not salesman. BTW, seems the video use wrong group_by, should be "GROUP BY emp_id;" right?
@scottisitt
@scottisitt 4 жыл бұрын
@@jaychang5631 I see what it is now. Some of the employees are listed twice in the Works With table (for multiple sales). As for your comment about groups, he did use "GROUP BY emp_id"... If you pause at 7:22, it's there.
@africanblood2022
@africanblood2022 3 жыл бұрын
On female employees born after 1971 I don't h=think we got the right answer there.
@F_Flex
@F_Flex 3 жыл бұрын
none of this is a function!!!
@balvsmalvs5425
@balvsmalvs5425 2 жыл бұрын
SUM(), COUNT(), AVG() are.
WIldcards | SQL | Tutorial 15
8:59
Giraffe Academy
Рет қаралды 43 М.
ER Diagrams Intro | SQL | Tutorial 21
14:01
Giraffe Academy
Рет қаралды 61 М.
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,5 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,8 МЛН
What is a Database? | Let's Learn
20:53
Giraffe Academy
Рет қаралды 110 М.
79 What are user defined functions in sql server
11:57
Learn SSIS
Рет қаралды 3,8 М.
SQL Indexes - Definition, Examples, and Tips
12:14
Database Star
Рет қаралды 82 М.
Constraints - SQL - Tutorial 8
10:13
Giraffe Academy
Рет қаралды 101 М.
SQL Stored Procedures, Functions and Views explained basics
19:53
Nivea's Tutorials
Рет қаралды 883
Triggers | SQL | Tutorial 20
12:26
Giraffe Academy
Рет қаралды 106 М.
Choosing Between Views, Functions, and Stored Procedures in SQL With Examples
13:51
Hands On Coding Tutorials
Рет қаралды 47 М.
Converting ER Diagrams to Schemas | SQL | Tutorial 23
12:25
Giraffe Academy
Рет қаралды 193 М.
SQL Window Functions in 10 Minutes
10:13
Colt Steele
Рет қаралды 88 М.
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,5 МЛН