Uploaded February 2023 | Updated September 2026, 1 hour ago
In this video, we'll tackle Google's 'File Contents Shuffle' hard SQL interview question that requires string manipulation skills. This tutorial will walk you through each step, including reformatting the data so that it can be easily manipulated, and aggregating the rows again. By the end of this video, you'll have a better understanding of how to manipulate strings in SQL, which is an essential skill for any data scientist.
Go to the question through the link below and follow along with meπ
platform.stratascratch.com/coding/9818-file-contents-shuffle?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation
______________________________________________________________________
π Subscribe to my channel: bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: bit.ly/3jifw81
π Playlist for data science interview tips: bit.ly/2G5hNoJ
π Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation
______________________________________________________________________
Timeline:
Intro: (0:00βββ)
Interview Question: (0:32)
Exploring and understanding the dataset: (0:46)
Writing out the approach: (1:36ββ)
Coding the solution: (3:22)
Conclusion: (β7:22)
______________________________________________________________________
About The Platform:
I'm using StrataScratch (platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.
So, if you want more interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.
______________________________________________________________________
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________
#SQLStringsManipulation #GoogleInterviewQuestion
In this video, we'll tackle Google's 'File Contents Shuffle' hard SQL interview question that requires string manipulation skills. This tutorial will walk you through each step, including reformatting the data so that it can be easily manipulated, and aggregating the rows again. By the end of this video, you'll have a better understanding of how to manipulate strings in SQL, which is an essential skill for any data scientist.
Go to the question through the link below and follow along with meπ
platform.stratascratch.com/coding/9818-file-contents-shuffle?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation
______________________________________________________________________
π Subscribe to my channel: bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: bit.ly/3jifw81
π Playlist for data science interview tips: bit.ly/2G5hNoJ
π Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation
______________________________________________________________________
Timeline:
Intro: (0:00βββ)
Interview Question: (0:32)
Exploring and understanding the dataset: (0:46)
Writing out the approach: (1:36ββ)
Coding the solution: (3:22)
Conclusion: (β7:22)
______________________________________________________________________
About The Platform:
I'm using StrataScratch (platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.
So, if you want more interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+google+sql+question+string+manipulation. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.
______________________________________________________________________
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________
#SQLStringsManipulation #GoogleInterviewQuestion


![Data Ranking: Python Pandas and SQL Equivalents [Part 2]
In this video, we dive deeper into ranking methods and functions in Python using data frames. We discuss additional parameters that can help refine the ranking function, making it more flexible and adaptable to different data sets. We also explore the SQL equivalence of ranking methods, which will be helpful for those familiar with SQL.
π Watch our previous tutorial:
How to Rank() Your Data In Python Pandas [Part 1]: https://youtu.be/2uu0prXMhfU
π§βπ» Go to the questions through the links below and follow along with us:
π Question 1: https://platform.stratascratch.com/coding/9611-find-the-80th-percentile-of-hours-studied?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking
π Question 2: https://platform.stratascratch.com/coding/10160-rank-guests-based-on-their-ages?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking
π Question 3: https://platform.stratascratch.com/coding/10161-ranking-hosts-by-beds?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking
π Question 4: https://platform.stratascratch.com/coding/10351-activity-rank?code_type=2&utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking
π Subscribe to my channel: https://bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: https://bit.ly/3jifw81
π Playlist for data science interview tips: https://bit.ly/2G5hNoJ
π Playlist for data science projects: https://bit.ly/StrataScratchProjectsYouTube
π Practice more real data science interview questions: https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking
Timeline:
Intro: (0:00βββ)
Percentage Ranking in Python: (0:43)
Ranking in SQL: (4:10)
Conclusion: (β7:26)
About The Platform:
Im using StrataScratch (https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.
So, if you want more interview practice with real data science interview questions, visit https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+python+sql+ranking. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
#pandaspythontutorial #pythondatascience #sqlrank Data Ranking: Python Pandas and SQL Equivalents [Part 2]](https://i.ytimg.com/vi/Cg66PLiW9L0/mqdefault.jpg)







