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.
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?
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!
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.
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.
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.
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?
@@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.
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
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 :)
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?
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.
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)
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...
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.
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 RUclips.
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
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.
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.
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.
@aa
@@
I have been writing SQL for a long time and it's so refreshing to learn something new AND useful for work! Thank you!
I took, and passed, my 70-761 a few months ago; however, your tutorial would have made studying a lot easier. Great Job!
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!
You're very welcome. Good luck with the exam!
ruclips.net/video/4zZhooGL-Ew/видео.html
Thanks for sharing. I learned a lot. Been working with sql server since 2000.
You teach incredibly great..... expert level but yet so simple and easy the way you teach. awesome James Oliver
Thank you kindly!
Greetings from Brazil!
U were at top notch in explanation and ur clarity throughout 🔥
excellent video
Very Informative. Thanks.
Thanks for the videos. I'mportant information for sure.
Your videos are a privilege. Your channel is a rich source of knowledge.
Thanks so much for the kind words. I really appreciate it. Keeps me motivated! :)
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?
Great Presentation, learned something new. Great Job Oliver. Thank you
Thank you Oliver for this great educative video
so much admire , thank you
great work, expert explanation of expert level concepts.
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.
clear and to the point explanations with easy to understand examples. Thanks!
Beautiful
Great content! I know this is a older video but do you have a link to the datasets?
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!
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.
ruclips.net/video/4zZhooGL-Ew/видео.html
Thanks so much for this video. This is very useful and helpful
Awesome tutorials especially partition by, this will definitely help me my work.
Thank you Oliver! Would you mind to add more examples of the expert SQL level, please?
The Way sure!
Thank you! Very nicely explained!
Thanks James. It's a helpful video. Looking forward to more of them in your channel.
This helped me a lot! Thanks for the explaining it so clearly!
So well explained! Thank you
Great videos, and very nicely explained. Please do more. TY!
Excellent video! I was researching recursive queries for a future problem but now I will refactor another weird query using partitioning instead. 😄
github.com/sagittaracc/suql/blob/master/README.md
ruclips.net/video/4zZhooGL-Ew/видео.html
Great tutorial. Thanks.
Amazing! 🤯
Thank you so much 💓
so helpful tutorial....thanks for share...if possible plz share data in SQL format to practice....
Good video. I'm still processing how this works. Thanks
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.
EXCELLENT!!!!
Awesome! I like the recursive stuff! Great! Thanks a lot for this!
ruclips.net/video/4zZhooGL-Ew/видео.html
Finally I get it!!
Thanks a lot for this video
Thanks, man. Great videos, I'm recycling my sql skills.
what do mean by materialized at 12:29
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.
Nice
Thank you lot
thanks for this!! II got it all ! you made my day!👍🙏
My pleasure. Appreciate the positive feedback.
Thanks
this is great
Top level content, thank you moneygrip.
Thanks! I really appreciate it.
Wish the videos are higher definition. Other than that the channel is awesome.
Sir excelent. Can you share the database so that i can follow what you are doing. Thanks
Thank you, very useful!
You're very welcome! :)
ruclips.net/video/4zZhooGL-Ew/видео.html
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?
👍👍
Love you bro :)
Haha appreciate it :)
Thank you James! Where can I find this table in order to practice myself?
You can download the AdventureWorks2012 SQL Server database for free from Microsoft.
@@JamesOliver can we use this SQL database for practice on mobile?
@@Hawkeye10000 what do you mean by mobile sql?
@@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.
@@Hawkeye10000 That would be really cool but I’m not sure that can be done.
Very good video, wish I saw this before the died interview LOL
ruclips.net/video/4zZhooGL-Ew/видео.html
Where to get a database for drills?
Thank yoj
Thank you for this! I am still struggling with recursion and partition so this is very helpfull for me.
You're very welcome. Glad to help! :)
Hi James, do you have any recommendation for courses (free or paid) on backend SQL Development?
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
If I couldn't find the top of the hierarchy, How do I write Anchor query in this case?
Why Level has [ ]? how to use eh. exactly? I need some help here
Thank you :)
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 :)
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?
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.
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)
Just wondering: is there an official list of detailed skills by level for SQL?
Thanks for the video btw :D
Good question. Not that I know of but if you find one let me know! :) Thanks for watching.
ruclips.net/video/4zZhooGL-Ew/видео.html
where can I download the datasets?
How about the fact that there are duplicate names of employees with different employeekey numbers??
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...
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.
great video! But I can hear the keyboard screaming after every stroke lol
I m having a problem. Need help in SQL. Can anyone help me?
Montana!
Can someone explain to me whats the advantage of SQL vs dplyr package from R?
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.
Do you do Oracle SQL lang instead? I dont see that
This is t-sql so will work on like a SQL Server.
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 RUclips.
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
@@Ramreddy-kq5or select top 50 blah... offset 150
loved these examples!! Many Thanks!! (sub #755 😊)
Thank you very much. I appreciate every sub! :)
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.........
This was intentional and only to give context to the demonstration. The tables are not meant to reflect a realistic design.
That's expert level? Sooo, I must be God in SQL!
It is pretty advanced stuff. Although I am also hoping to see some stuff, union, except, intercepts and XML.
RATIO_TO_REPORT
I feel like Amy Albert actually is real.
This is Very Basic actually
I don't like you Ken Sanchez, James Oliver is the only NULL I want
:)
1) this isn’t expert level at all 2) if this is expert level I’m on god mode tier
This is expert? Seems level 4 of 10 difficulty
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.
Sorry about that. Will keep that in mind for future videos. I have a thing for mechanical keyboards but unfortunately they can be loud.
Actually, the noise keeps me focused as if I'm in the same room with James.
more like noob lvl sql
Tell me.. what do you consider advanced?
you dont explain the queries in detail. and the annoying noise of your keypress..
I thought I explained them enough. Sorry you feel that way.
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.