├── .gitignore ├── README.md ├── SQL Roadmap.ipynb └── Top 10 SQL Questions by Rishabh Mishra.pdf /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SQL Resources to Learn n Practice 2 | 3 | ## Watch SQL Interview Questions playlist: https://www.youtube.com/playlist?list=PLdOKnrf8EcP1y_LPEv7uBpzoRmlATjCVr 4 | -------------------------------------------------------------------------------- /SQL Roadmap.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": {}, 6 | "source": [ 7 | "# Learn SQL step by step in 30 days\n", 8 | "\n", 9 | "Following is a schedule to learn SQL step by step considering 2 hours of dedicated n focused study every single day. This program is perfect for beginners with no knowledge of SQL." 10 | ] 11 | }, 12 | { 13 | "cell_type": "markdown", 14 | "metadata": {}, 15 | "source": [ 16 | "## Complete SQL Course In Hindi:\n", 17 | "\n", 18 | "SQL Playlist: https://www.youtube.com/playlist?list=PLdOKnrf8EcP17p05q13WXbHO5Z_JfXNpw" 19 | ] 20 | }, 21 | { 22 | "cell_type": "markdown", 23 | "metadata": {}, 24 | "source": [ 25 | "## Let's Start Learning SQL :)" 26 | ] 27 | }, 28 | { 29 | "cell_type": "markdown", 30 | "metadata": {}, 31 | "source": [ 32 | "### SQL: Week 1\n", 33 | "**First week, focus on learning the basics to understand SQL and it's application.**\n", 34 | "\n", 35 | "SQL Topics to learn in first week: SQL Introduction, Data types, Create database and table, INSERT, UPDATE, DELETE, ALTER TABLE, DROP TABLE, TRUNCATE, SELECT STATEMENT n WHERE CLAUSE, Import files to SQL, Functions in SQL, String and Aggregae Functions + Solve Example and practice by writing queries." 36 | ] 37 | }, 38 | { 39 | "cell_type": "markdown", 40 | "metadata": {}, 41 | "source": [ 42 | "**Watch videos and learn:**\n", 43 | "\n", 44 | "1. Introduction to SQL-What Is SQL & Database: https://www.youtube.com/watch?v=yH1zCq-iaeU\n", 45 | "\n", 46 | "* Data Types, Primary-Foreign Keys & Constraints: https://www.youtube.com/watch?v=HmH-76_2Ak8\n", 47 | "\n", 48 | "* Install postgresql and pgadmin4: https://www.youtube.com/watch?v=E-Qn2tbcmDE\n", 49 | "\n", 50 | "* Create Table In SQL & Create Database: https://www.youtube.com/watch?v=v-2cIUgx_jw\n", 51 | "\n", 52 | "* INSERT UPDATE, DELETE & ALTER Table: https://www.youtube.com/watch?v=4YAAgrm8_ZI\n", 53 | "\n", 54 | "* SELECT Statement & WHERE Clause with Example : https://www.youtube.com/watch?v=eiLqDeDp7Oc\n", 55 | "\n", 56 | "* How To Import Excel File (CSV) to SQL: https://www.youtube.com/watch?v=rfWYbMd3ApA\n", 57 | "\n", 58 | "* Functions in SQL | String Functions: https://www.youtube.com/watch?v=55_UN5gVARs\n", 59 | "\n", 60 | "* Aggregate Functions: https://www.youtube.com/watch?v=9NfthspfXEo" 61 | ] 62 | }, 63 | { 64 | "cell_type": "markdown", 65 | "metadata": {}, 66 | "source": [ 67 | "### SQL: Week 2\n", 68 | "**Second week, focus on learning advance SQL and it's application.**\n", 69 | "\n", 70 | "SQL Topics to learn in second week: GROUP BY n HAVING clause, Timestamp and Extract Function- DateTime, SOL JOINS, Subquery, Window Function, CASE Statement and CTE + Solve Example and practice by writing queries.**" 71 | ] 72 | }, 73 | { 74 | "cell_type": "markdown", 75 | "metadata": {}, 76 | "source": [ 77 | "**Watch videos and learn:**\n", 78 | "10. Group By and Having Clause: https://www.youtube.com/watch?v=SvJLXj05cow\n", 79 | "\n", 80 | "* TimeStamp and Extract Function-Date Time Function: https://www.youtube.com/watch?v=kwGh6XvLrEk\n", 81 | "\n", 82 | "* Complete SQL JOINS For Beginners: https://www.youtube.com/watch?v=H6988OpZKTU\n", 83 | "\n", 84 | "* SELF JOIN | UNION & UNION ALL: https://www.youtube.com/watch?v=V3xjmBi1QQE\n", 85 | "\n", 86 | "* Subquery: https://www.youtube.com/watch?v=5O2OuN1ougU\n", 87 | "\n", 88 | "* Window Function: " 89 | ] 90 | }, 91 | { 92 | "cell_type": "markdown", 93 | "metadata": {}, 94 | "source": [ 95 | "### SQL: Week 3 & Week 4\n", 96 | "**Third n forth week, since now you know SQL properly (fundamentals, syntax, functions, operators, etc).** \n", 97 | "\n", 98 | "Now focus on learning how to solve complex SQL problems, solve same problems with different methods and how to optimize SQL query. Below we have shared list of FREE websites to WRITE and PRACTICE SQL queries. " 99 | ] 100 | }, 101 | { 102 | "cell_type": "markdown", 103 | "metadata": {}, 104 | "source": [ 105 | "**Watch videos and practice** (more videos to add)\n", 106 | "\n", 107 | "1. Most Asked SQL Interview Question - Solved Using 3 Methods | Complex SQL Query & Solution: https://www.youtube.com/watch?v=9gHIiuyySws\n", 108 | "2. SQL Interview Question" 109 | ] 110 | }, 111 | { 112 | "cell_type": "markdown", 113 | "metadata": {}, 114 | "source": [ 115 | "### Websites to practice SQL online:" 116 | ] 117 | }, 118 | { 119 | "cell_type": "markdown", 120 | "metadata": {}, 121 | "source": [ 122 | "* HackerRank: https://www.hackerrank.com/domains/sql\n", 123 | " \n", 124 | "* SQL Practice: https://www.sql-practice.com/\n", 125 | " \n", 126 | "* 8 week sql Challenge by Danny: https://8weeksqlchallenge.com/\n", 127 | " \n", 128 | "* data lemur by Nick: https://datalemur.com/" 129 | ] 130 | }, 131 | { 132 | "cell_type": "markdown", 133 | "metadata": {}, 134 | "source": [ 135 | "### SQL Course by Udemy:\n", 136 | "The Complete SQL Bootcamp 2022: https://www.udemy.com/course/the-complete-sql-bootcamp/" 137 | ] 138 | }, 139 | { 140 | "cell_type": "markdown", 141 | "metadata": {}, 142 | "source": [ 143 | "### Free Resources to Learn SQL (YouTube):" 144 | ] 145 | }, 146 | { 147 | "cell_type": "markdown", 148 | "metadata": {}, 149 | "source": [ 150 | "* MySQL Tutorial for Beginners [Full Course]: https://www.youtube.com/watch?v=7S_tz1z_5bA\n", 151 | " \n", 152 | "* SQL Tutorial - Full Database Course for Beginners: https://www.youtube.com/watch?v=HXV3zeQKqGY" 153 | ] 154 | } 155 | ], 156 | "metadata": { 157 | "kernelspec": { 158 | "display_name": "Python 3", 159 | "language": "python", 160 | "name": "python3" 161 | }, 162 | "language_info": { 163 | "codemirror_mode": { 164 | "name": "ipython", 165 | "version": 3 166 | }, 167 | "file_extension": ".py", 168 | "mimetype": "text/x-python", 169 | "name": "python", 170 | "nbconvert_exporter": "python", 171 | "pygments_lexer": "ipython3", 172 | "version": "3.8.3" 173 | } 174 | }, 175 | "nbformat": 4, 176 | "nbformat_minor": 4 177 | } 178 | -------------------------------------------------------------------------------- /Top 10 SQL Questions by Rishabh Mishra.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rishabhnmishra/SQL_Resources/7ff8284250ea39125088e0015a2b5019e86d07db/Top 10 SQL Questions by Rishabh Mishra.pdf --------------------------------------------------------------------------------