In this video I will show you what it takes to be a SQL expert. I will cover unions, recursive/hierarchical queries and partitioning.
Пікірлер: 132
@supersql8406 Жыл бұрын
I have been writing SQL for a long time and it's so refreshing to learn something new AND useful for work! Thank you!
@jnmnza3 жыл бұрын
I took, and passed, my 70-761 a few months ago; however, your tutorial would have made studying a lot easier. Great Job!
@opietwoep1247 Жыл бұрын
Thanks for sharing. I learned a lot. Been working with sql server since 2000.
@anvesh12 Жыл бұрын
U were at top notch in explanation and ur clarity throughout 🔥
@altareq24953 Жыл бұрын
You teach incredibly great..... expert level but yet so simple and easy the way you teach. awesome James Oliver
@maximessina99993 жыл бұрын
Your videos are a privilege. Your channel is a rich source of knowledge.
@JamesOliver3 жыл бұрын
Thanks so much for the kind words. I really appreciate it. Keeps me motivated! :)
@PawsAndKeys2 жыл бұрын
THANK YOU! Finally an "Expert Level" video that doesn't teach to a beginner. It's so hard to find actually advanced information amidst all the beginner's tutorials.
@kanakbarua11222 жыл бұрын
@aa
@kanakbarua11222 жыл бұрын
@@
@ramm40123 жыл бұрын
Great Presentation, learned something new. Great Job Oliver. Thank you
@nandkumargaikwad9014 Жыл бұрын
so much admire , thank you
@johnmichelotti53733 ай бұрын
Been using SQL as a functional ERP resource so I don’t know if I am an expert. This is very well done and IMHO not too far out of reach for someone who has the basics. Where have you been hiding?
@MrFedX4 жыл бұрын
Excellent video! I was researching recursive queries for a future problem but now I will refactor another weird query using partitioning instead. 😄
@lostnight43224 жыл бұрын
github.com/sagittaracc/suql/blob/master/README.md
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@ellukayou Жыл бұрын
Finally I get it!!
@rodneyoganga66933 жыл бұрын
Thank you Oliver for this great educative video
@emmanuelaolaiya3 жыл бұрын
Thanks so much for this video. This is very useful and helpful
@midnightrun3354 жыл бұрын
great work, expert explanation of expert level concepts.
@official-DRFRE3 жыл бұрын
Awesome tutorials especially partition by, this will definitely help me my work.
@adipai4 жыл бұрын
Thank you! Very nicely explained!
@benjolin1623 Жыл бұрын
I like the video. Although everyone is at different levels. Id like to see some stuff tricks, ways to use xml to generate html documents, ect.
@anawadtom60113 жыл бұрын
Good video. I'm still processing how this works. Thanks
@dawnhuttoe7204 Жыл бұрын
Thank you so much 💓
@advancewebdevelopment98022 жыл бұрын
Thanks
@hhbbhvvbjhbbyjj3 жыл бұрын
excellent video
@abcxyz66063 жыл бұрын
Great videos, and very nicely explained. Please do more. TY!
@DanielHernandezCa Жыл бұрын
Thank yoj
@hadireg4 жыл бұрын
thanks for this!! II got it all ! you made my day!👍🙏
@JamesOliver4 жыл бұрын
My pleasure. Appreciate the positive feedback.
@mattcoleman67803 жыл бұрын
Beautiful
@KgRu1eS2 жыл бұрын
Amazing! 🤯
@kosmipologe4 жыл бұрын
Awesome! I like the recursive stuff! Great! Thanks a lot for this!
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@老王-d5d4 жыл бұрын
Very good video, wish I saw this before the died interview LOL
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@dalton_hfg2 жыл бұрын
Great tutorial. Thanks.
@ruoxima37732 жыл бұрын
EXCELLENT!!!!
@hadibq2 жыл бұрын
👍👍
@sriniwaasvemula93494 жыл бұрын
so helpful tutorial....thanks for share...if possible plz share data in SQL format to practice....
@mertcancoskun46584 жыл бұрын
Top level content, thank you moneygrip.
@JamesOliver4 жыл бұрын
Thanks! I really appreciate it.
@snowglider4003 жыл бұрын
this is great
@nilohernandez7508 Жыл бұрын
Sir excelent. Can you share the database so that i can follow what you are doing. Thanks
@foysalmamun51064 жыл бұрын
Nice Thank you lot
@vipin_thegame4 жыл бұрын
Thank you, very useful!
@JamesOliver4 жыл бұрын
You're very welcome! :)
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@basharjirjees88152 жыл бұрын
I honestly don't get the recursive example as for it to work the EmployeeHierachy has to always change for it to check and find the next boss and their employees, and also how some employees are on same level but have different bosses?
@50tigres792 жыл бұрын
Wish the videos are higher definition. Other than that the channel is awesome.
@drillcream Жыл бұрын
great video! But I can hear the keyboard screaming after every stroke lol
@biljam9724 жыл бұрын
Thank you for this! I am still struggling with recursion and partition so this is very helpfull for me.
@JamesOliver4 жыл бұрын
You're very welcome. Glad to help! :)
@granand3 жыл бұрын
Thank you very much. Please let me know if you have a full-fledged course? Looking to write user-defined functions with user input and create reports comparing databases from two different environments to show 2-way differences.
@taweesakarchawamaitreekool40783 жыл бұрын
Thank you :)
@syednayyar20 күн бұрын
what do mean by materialized at 12:29
@standom2390 Жыл бұрын
Where to get a database for drills?
@chriskeo3922 жыл бұрын
Montana!
@walkermom1002 жыл бұрын
Why are there 2 different tables with the same type of data. Should be 1 table with a column identifying the order type. Online or store.
@djp_video Жыл бұрын
04:15 That should really be a NULL, not an empty string. And adding matching aliases to any columns without names or dissimilar names is best practice.
@kaicheng72714 жыл бұрын
Thanks for the great video! A quick question, arround 22:09 where are doing the PctTotal, can't we replace the 3rd line "TotalDue/Sum(TotalDue) OVER (PARTITION BY OrderDat) as PctTotal" with ""TotalDue/TotalSales as PctTotal" since we already aliased "Sum(TotalDue) OVER (PARTITION BY OrderDat)" as TotalSales? Thank you again!
@JamesOliver4 жыл бұрын
I'm glad you enjoyed. In this video I'm using SQL Server and the alias cannot be reused, however, in certain databases you are absolutely right and this can be done.
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@siddharthseksaria4 жыл бұрын
If I couldn't find the top of the hierarchy, How do I write Anchor query in this case?
@wenkexu63633 жыл бұрын
Why Level has [ ]? how to use eh. exactly? I need some help here
@zackjones86814 жыл бұрын
Nice samples. It's a little confusing because you have the same employee name assigned to two different employeeKeys (David Bradley is 7 & 8 for example)
@fun2badult3 жыл бұрын
How about the fact that there are duplicate names of employees with different employeekey numbers??
@ajtaffy3 жыл бұрын
Looks like he used UNION ALL which will contain duplicates. If he'd had just used UNION there wouldn't have been duplicates. I'm not sure why he used UNION ALL...
@hadireg4 жыл бұрын
loved these examples!! Many Thanks!! (sub #755 😊)
@JamesOliver4 жыл бұрын
Thank you very much. I appreciate every sub! :)
@anthonyrc66184 жыл бұрын
Just wondering: is there an official list of detailed skills by level for SQL? Thanks for the video btw :D
@JamesOliver4 жыл бұрын
Good question. Not that I know of but if you find one let me know! :) Thanks for watching.
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@ivanbzg89554 жыл бұрын
Can someone explain to me whats the advantage of SQL vs dplyr package from R?
@lennovo95254 жыл бұрын
I'm just starting out, but my observations have been that R is data science research tool that offers great data transformation and visualization options, that Sql won't do or does very tediously. SQL can store large data very well, it's stable. Its an enterprise level product where R could not do, not very well any how. I think its not a question of which is better but how you can leverage both. Go easy on me, i am a Jr analyst.
@tiagosilva8562 жыл бұрын
That's expert level? Sooo, I must be God in SQL!
@benjolin1623 Жыл бұрын
It is pretty advanced stuff. Although I am also hoping to see some stuff, union, except, intercepts and XML.
@TechMarketers4 жыл бұрын
Hi James, have you ever thought about creating sql intermediate/advanced course? I learn sql, use mysql workbench but I need new database and good examples, so It would be very useful for me :)
@JamesOliver4 жыл бұрын
As a matter of fact recently I have thought about creating a class. I started putting together a course outline. Anything specific you would be interested in learning?
@TheDataMaestro4 жыл бұрын
Great idea! I'm in the middle of each of 3 SQL courses and we never get to the meaty stuff. The instructors struggle with explaining self-joins, for instance.
@findthetruth30214 жыл бұрын
I have a question. I have 200 rows, and I want to delete from row 150 until 200. So, how can I choose from 150 to 200?. I will appreciate that if anyone can help me coz there is not such video on KZbin.
@Ramreddy-kq5or4 жыл бұрын
This can be done in multiple ways. Apply row_numbers to each row, then write delete statement with where row_number>50, Im just a intermediate in in SQL. I guess this works for you
@benjolin1623 Жыл бұрын
@@Ramreddy-kq5or select top 50 blah... offset 150
@adventureswithfrodo27214 жыл бұрын
The two sales tables are poor. It should all be in one table with a sales type flag. The you really need to have a star table structure etc.........
@JamesOliver4 жыл бұрын
This was intentional and only to give context to the demonstration. The tables are not meant to reflect a realistic design.
@pdro2833 жыл бұрын
This is Very Basic actually
@ConcernedCitizenFiveTowns3 жыл бұрын
This is expert? Seems level 4 of 10 difficulty
@joyo21222 жыл бұрын
more like noob lvl sql
@JamesOliver2 жыл бұрын
Tell me.. what do you consider advanced?
@MrCoder1014 жыл бұрын
Please get microphone away from keyboard or use a quieter keyboard or don't hit the keys so hard. I want to hear you and I turn it up and then I have to turn it down when you start hitting enter.
@JamesOliver4 жыл бұрын
Sorry about that. Will keep that in mind for future videos. I have a thing for mechanical keyboards but unfortunately they can be loud.
@TheDataMaestro4 жыл бұрын
Actually, the noise keeps me focused as if I'm in the same room with James.
@danicarovo88184 жыл бұрын
I'm binging your videos at 1.5 speed 1 week before my database exam.:D Thanks a lot, great explanation, esp about the recursion, I needed that one!
@JamesOliver4 жыл бұрын
You're very welcome. Good luck with the exam!
@justinrocky66454 жыл бұрын
kzbin.info/www/bejne/aqu9maKlfLFge9k
@theway52584 жыл бұрын
Thank you Oliver! Would you mind to add more examples of the expert SQL level, please?
@JamesOliver4 жыл бұрын
The Way sure!
@leodigiacomo Жыл бұрын
Hi James, do you have any recommendation for courses (free or paid) on backend SQL Development?
@Helloimtheshiieet Жыл бұрын
1) this isn’t expert level at all 2) if this is expert level I’m on god mode tier
@codyhayes21212 жыл бұрын
I feel like Amy Albert actually is real.
@eb_reviews3 жыл бұрын
This helped me a lot! Thanks for the explaining it so clearly!
@Irina_M19894 жыл бұрын
clear and to the point explanations with easy to understand examples. Thanks!
@chandramouli19932 жыл бұрын
Could you help with writing a query to find the total sales of employees reporting to each employee? Emp_Id Total sales of employees reporting to Emp_Id
@sinvalfelisberto Жыл бұрын
Thank you kindly! Greetings from Brazil!
@MrTxematrix4 жыл бұрын
RATIO_TO_REPORT
@johndimartino44533 жыл бұрын
Thanks for the videos. I'mportant information for sure.
@sunilsingh-ji8iz5 жыл бұрын
Thanks a lot for this video
@sohailalam4993 жыл бұрын
I m having a problem. Need help in SQL. Can anyone help me?
@piyushrajmishra2 жыл бұрын
Very Informative. Thanks.
@AnthonyDev3 жыл бұрын
Thanks, man. Great videos, I'm recycling my sql skills.
@gracehe97924 жыл бұрын
Thanks James. It's a helpful video. Looking forward to more of them in your channel.
@medhannioui11673 жыл бұрын
where can I download the datasets?
@michellefitzpatrick82963 жыл бұрын
So well explained! Thank you
@DatzAdam4 жыл бұрын
I don't like you Ken Sanchez, James Oliver is the only NULL I want
@JamesOliver4 жыл бұрын
:)
@Ramreddy-kq5or4 жыл бұрын
Love you bro :)
@JamesOliver4 жыл бұрын
Haha appreciate it :)
@anastasiosvitsios63114 жыл бұрын
Thank you James! Where can I find this table in order to practice myself?
@JamesOliver4 жыл бұрын
You can download the AdventureWorks2012 SQL Server database for free from Microsoft.
@Hawkeye100003 жыл бұрын
@@JamesOliver can we use this SQL database for practice on mobile?
@JamesOliver3 жыл бұрын
@@Hawkeye10000 what do you mean by mobile sql?
@Hawkeye100003 жыл бұрын
@@JamesOliver what I meant to ask was "Can I download this sql database practice application adventureworks2012 on mobile for sql practice?" The thing is: my laptop has gone for repairs and it's gonna take A WHILE. So can we download this Microsoft sql application on mobile for practice? Thanks. Regards.
@JamesOliver3 жыл бұрын
@@Hawkeye10000 That would be really cool but I’m not sure that can be done.
@j.maginnenu62914 жыл бұрын
Do you do Oracle SQL lang instead? I dont see that
@JamesOliver4 жыл бұрын
This is t-sql so will work on like a SQL Server.
@abhidhatrak14 жыл бұрын
you dont explain the queries in detail. and the annoying noise of your keypress..
@JamesOliver4 жыл бұрын
I thought I explained them enough. Sorry you feel that way.
@TheDataMaestro4 жыл бұрын
There is a lot going on. I struggle with understanding it also, but I would suggest watching the video a few times and write your own similar queries against your own database.