├── 800+ SQL Interview Questions .pdf ├── 800+ SQL Server Interview Questions and Answers .pdf ├── A great collection of SQL Interview Questions.pdf ├── Advance SLQ in 10 days 💯.pdf ├── Advanced SQL Concepts .pdf ├── Advanced SQL.pdf ├── All about SQL.pdf ├── Complex SQL Queries.pdf ├── DBMS Interview Questions.pdf ├── DBMS-U2.pdf ├── DBMSI-III.pdf ├── Datsbase in SQL 💡.pdf ├── Master SQL in 16 Pages.pdf ├── PostgreSQL Notes.pdf ├── README.md ├── SQL Basic Cheat Sheet.pdf ├── SQL Basics ├── SQL chapter - page 1.jfif ├── SQL chapter - page 2.jfif ├── SQL chapter - page 3.jfif ├── SQL chapter - page 4.jfif ├── SQL chapter - page 5.jfif ├── SQL chapter - page 6.jfif ├── SQL chapter - page 7.jfif ├── SQL chapter - page 8.jfif └── SQL chapter - page 9.jfif ├── SQL Cheat-Sheet .pdf ├── SQL Cheatsheet .pdf ├── SQL Commands .pdf ├── SQL Complete Notes .pdf ├── SQL Complex Queries Solutions For Interview Preparation.pdf ├── SQL Concise Interview Notes.pdf ├── SQL FREQUENT ASKED INTERVIEW QUESTIONS.pdf ├── SQL Handwritten Notes .pdf ├── SQL Handwritten Notes 📜.pdf ├── SQL INTERVIEW .pdf ├── SQL Interview Pdf.pdf ├── SQL Interview Questions & answer.pdf ├── SQL Notes (1).pdf ├── SQL Notes .pdf ├── SQL Operators ├── SQL operators - page 1.JPG ├── SQL operators - page 2.JPG ├── SQL operators - page 3.JPG ├── SQL operators - page 4.JPG ├── SQL operators - page 5.JPG ├── SQL operators - page 6.JPG ├── SQL operators - page 7.JPG ├── SQL operators - page 8.JPG └── SQL operators - page 9.JPG ├── SQL PDF .pdf ├── SQL Practice Sheet.pdf ├── SQL cheatshset.jpg ├── SQL commands.pdf ├── SQL complete guide 💡.pdf ├── SQL interview questions .pdf ├── SQL mindmap.jpg ├── SQL placement preparation.pdf ├── SQL with practice exercises.pdf ├── SQL-Most Important Concepts .pdf ├── SQL.pdf ├── SQLNotesForProfessionals.pdf ├── SQL_ notes_ for_ interview.pdf.pdf ├── Top 100 SQL Interview Questions and Answers .pdf ├── Tricky SQL interview Questions.pdf ├── dbms.pdf ├── sql injection.pdf ├── 𝐒𝐐𝐋_𝐁𝐀𝐒𝐈𝐂𝐒_𝐀𝐍𝐃_𝐀𝐃𝐕𝐀𝐍𝐂𝐄𝐃_𝐍𝐎𝐓𝐄𝐒.pdf └── 𝗦𝗤𝗟_𝗡𝗼𝘁𝗲𝘀_𝗙𝗼𝗿_𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄.pdf /800+ SQL Interview Questions .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/800+ SQL Interview Questions .pdf -------------------------------------------------------------------------------- /800+ SQL Server Interview Questions and Answers .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/800+ SQL Server Interview Questions and Answers .pdf -------------------------------------------------------------------------------- /A great collection of SQL Interview Questions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/A great collection of SQL Interview Questions.pdf -------------------------------------------------------------------------------- /Advance SLQ in 10 days 💯.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Advance SLQ in 10 days 💯.pdf -------------------------------------------------------------------------------- /Advanced SQL Concepts .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Advanced SQL Concepts .pdf -------------------------------------------------------------------------------- /Advanced SQL.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Advanced SQL.pdf -------------------------------------------------------------------------------- /All about SQL.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/All about SQL.pdf -------------------------------------------------------------------------------- /Complex SQL Queries.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Complex SQL Queries.pdf -------------------------------------------------------------------------------- /DBMS Interview Questions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/DBMS Interview Questions.pdf -------------------------------------------------------------------------------- /DBMS-U2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/DBMS-U2.pdf -------------------------------------------------------------------------------- /DBMSI-III.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/DBMSI-III.pdf -------------------------------------------------------------------------------- /Datsbase in SQL 💡.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Datsbase in SQL 💡.pdf -------------------------------------------------------------------------------- /Master SQL in 16 Pages.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Master SQL in 16 Pages.pdf -------------------------------------------------------------------------------- /PostgreSQL Notes.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/PostgreSQL Notes.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SQL-Tutorials ❤️ 2 | 3 | ![](https://img.shields.io/github/languages/count/gowthamrajk/SQL-Tutorials) ![](https://img.shields.io/github/languages/top/gowthamrajk/SQL-Tutorials) 4 | 5 | In this module, I will be updating the topic wise SQL tutorial notes which is very useful for a fresher to start with MYSQL from basics 6 | 7 | # Introduction 👋 8 | 9 | - SQL stands for Structured Query Language. 10 | - This tutorial will give you a quick start to SQL. 11 | - It covers most of the topics required for a basic understanding of SQL and to get a feel of how it works. 12 | 13 | # A Brief History of SQL ⌚ 14 | 15 | **1970** − Dr. Edgar F. "Ted" Codd of IBM is known as the father of relational databases. He described a relational model for databases. 16 | 17 | **1974** − Structured Query Language appeared. 18 | 19 | **1978** − IBM worked to develop Codd's ideas and released a product named System/R. 20 | 21 | **1986** − IBM developed the first prototype of relational database and standardized by ANSI. The first relational database was released by Relational Software which later came to be known as Oracle. 22 | 23 | # Why to Learn SQL 🤔 24 | 25 | - SQL is the standard language for Relational Database System. 26 | - All the Relational Database Management Systems (RDMS) like MySQL, MS Access, Oracle, Sybase, Informix, Postgres and SQL Server use SQL as their standard database language. 27 | 28 | Also, they are using different dialects, such as − 29 | 30 | ### 1) MS SQL Server using T-SQL, 31 | ### 2) Oracle using PL/SQL, 32 | ### 3) MS Access version of SQL is called JET SQL (native format) etc. 33 | 34 | # Features of MYSQL 🚀 35 | 36 | **1) High Performance** 37 | 38 | **2) High Availability** 39 | 40 | **3) Database mirroring** 41 | 42 | **4) Database snapshots** 43 | 44 | **5) CLR integration** 45 | 46 | **6) Service Broker** 47 | 48 | **7) DDL triggers** 49 | 50 | **8) Ranking functions** 51 | 52 | **9) Row version-based isolation levels** 53 | 54 | **10) XML integration** 55 | 56 | **11) TRY...CATCH** 57 | 58 | **12) Database Mail** 59 | 60 | # Applications of SQL ✔️ 61 | 62 | - SQL is one of the most widely used query language over the databases. 63 | - I'm going to list few of them here: 64 | 65 | ### - Allows users to access data in the relational database management systems. 66 | 67 | ### - Allows users to describe the data. 68 | 69 | ### - Allows users to define the data in a database and manipulate that data. 70 | 71 | ### - Allows to embed within other languages using SQL modules, libraries & pre-compilers. 72 | 73 | ### - Allows users to create and drop databases and tables. 74 | 75 | ### - Allows users to create view, stored procedure, functions in a database. 76 | 77 | ### - Allows users to set permissions on tables, procedures and views. 78 | 79 | # SQL Process ⌛ 80 | 81 | - When you are executing an SQL command for any RDBMS, the system determines the best way to carry out your request and SQL engine figures out how to interpret the task. 82 | - There are various components included in this process. 83 | These components are − 84 | 85 | **1) Query Dispatcher** 86 | 87 | **2) Optimization Engines** 88 | 89 | **3) Classic Query Engine** 90 | 91 | **4) SQL Query Engine, etc.** 92 | 93 | **5) A classic query engine handles all the non-SQL queries, but a SQL query engine won't handle logical files.** 94 | 95 | ![image](https://user-images.githubusercontent.com/43011442/127163328-b05a4947-7865-4839-bbe0-18259b48b42e.png) 96 | 97 | # SQL Commands 📌 98 | 99 | - The standard SQL commands to interact with relational databases are CREATE, SELECT, INSERT, UPDATE, DELETE and DROP. 100 | - These commands can be classified into the following groups based on their nature − 101 | 102 | ![image](https://user-images.githubusercontent.com/43011442/127164103-88c322ea-a2c0-4c6e-a0ad-40a8426ee826.png) 103 | 104 | 105 | ## DDL - Data Definition Language 😀 106 | 107 | ### CREATE 108 | - Creates a new table, a view of a table, or other object in the database. 109 | 110 | ### ALTER 111 | - Modifies an existing database object, such as a table. 112 | 113 | ### DROP 114 | - Deletes an entire table, a view of a table or other objects in the database. 115 | 116 | ## DML - Data Manipulation Language 😀 117 | 118 | ### INSERT 119 | - Creates a record. 120 | 121 | ### UPDATE 122 | = Modifies records. 123 | 124 | ### DELETE 125 | - Deletes records. 126 | 127 | # DCL - Data Control Language 😀 128 | 129 | ### GRANT 130 | - Gives a privilege to user. 131 | 132 | ### REVOKE 133 | - Takes back privileges granted from user. 134 | 135 | # TCL - Transaction Control Language 😀 136 | 137 | ### COMMIT 138 | - Save all the transactions to the database. 139 | 140 | ### ROLLBACK 141 | - Undo transactions that have not already been saved to the database. 142 | 143 | ### SAVEPOINT 144 | - Roll the transaction back to a certain point without rolling back the entire transaction. 145 | 146 | ## Data Query Language 😀 147 | 148 | ### SELECT 149 | - select the attribute based on the condition described by WHERE clause. 150 | 151 | # RDBMS ⌛ 152 | 153 | - RDBMS stands for Relational Database Management System. 154 | - RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access. 155 | - A Relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd. 156 | 157 | ## Tables 🎰 158 | 159 | - The data in an RDBMS is stored in database objects which are called as tables. 160 | - This table is basically a collection of related data entries and it consists of numerous columns and rows. 161 | 162 | ## Field 🎯 163 | 164 | - Every table is broken up into smaller entities called fields. 165 | - The fields in the CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY. 166 | - A field is a column in a table that is designed to maintain specific information about every record in the table. 167 | 168 | ## Record 🎲 169 | 170 | - A record is also called as a row of data is each individual entry that exists in a table. 171 | 172 | ## Column 🏹 173 | 174 | - A column is a vertical entity in a table that contains all information associated with a specific field in a table. 175 | 176 | ## NULL value 🚫 177 | 178 | - A NULL value in a table is a value in a field that appears to be blank, which means a field with a NULL value is a field with no value. 179 | - It is very important to understand that a NULL value is different than a zero value or a field that contains spaces. 180 | - A field with a NULL value is the one that has been left blank during a record creation. 181 | 182 | # SQL Constraints 🚩 183 | 184 | - Constraints are the rules enforced on data columns on a table. 185 | - These are used to limit the type of data that can go into a table. 186 | - This ensures the accuracy and reliability of the data in the database. 187 | - Constraints can either be column level or table level. 188 | - Column level constraints are applied only to one column whereas, table level constraints are applied to the entire table. 189 | 190 | Following are some of the most commonly used constraints available in SQL − 191 | 192 | ### !) NOT NULL Constraint 193 | − Ensures that a column cannot have a NULL value. 194 | 195 | ### 2) DEFAULT Constraint 196 | − Provides a default value for a column when none is specified. 197 | 198 | ### 3) UNIQUE Constraint 199 | − Ensures that all the values in a column are different. 200 | 201 | ### 4) PRIMARY Key 202 | − Uniquely identifies each row/record in a database table. 203 | 204 | ### 5) FOREIGN Key 205 | − Uniquely identifies a row/record in any another database table. 206 | 207 | ### 6) CHECK Constraint 208 | − The CHECK constraint ensures that all values in a column satisfy certain conditions. 209 | 210 | ### 7) INDEX 211 | − Used to create and retrieve data from the database very quickly. 212 | 213 | # Data Integrity 🚧 214 | 215 | - The following categories of data integrity exist with each RDBMS − 216 | 217 | **Entity Integrity − There are no duplicate rows in a table.** 218 | 219 | **Domain Integrity − Enforces valid entries for a given column by restricting the type, the format, or the range of values.** 220 | 221 | **Referential integrity − Rows cannot be deleted, which are used by other records.** 222 | 223 | **User-Defined Integrity − Enforces some specific business rules that do not fall into entity, domain or referential integrity.** 224 | 225 | # Database Normalization 🚀 226 | 227 | - Database normalization is the process of efficiently organizing data in a database. 228 | - There are two reasons of this normalization process − 229 | 230 | **1) Eliminating redundant data, for example, storing the same data in more than one table.** 231 | 232 | **2) Ensuring data dependencies make sense.** 233 | 234 | - Both these reasons are worthy goals as they reduce the amount of space a database consumes and ensures that data is logically stored. 235 | - Normalization consists of a series of guidelines that help guide you in creating a good database structure. 236 | - Normalization guidelines are divided into normal forms; think of a form as the format or the way a database structure is laid out. 237 | - The aim of normal forms is to organize the database structure, so that it complies with the rules of first normal form, then second normal form and finally the third normal form. 238 | 239 | - It is your choice to take it further and go to the fourth normal form, fifth normal form and so on, but in general, the third normal form is more than enough. 240 | 241 | **First Normal Form (1NF)** 242 | **Second Normal Form (2NF)** 243 | **Third Normal Form (3NF)** 244 | 245 | # Various Syntax in SQL 🚨 246 | 247 | ### SQL SELECT Statement 248 | SELECT column1, column2....columnN 249 | FROM table_name; 250 | 251 | ### SQL DISTINCT Clause 252 | SELECT DISTINCT column1, column2....columnN 253 | FROM table_name; 254 | 255 | ### SQL WHERE Clause 256 | SELECT column1, column2....columnN 257 | FROM table_name 258 | WHERE CONDITION; 259 | 260 | ### SQL AND/OR Clause 261 | SELECT column1, column2....columnN 262 | FROM table_name 263 | WHERE CONDITION-1 {AND|OR} CONDITION-2; 264 | 265 | ### SQL IN Clause 266 | SELECT column1, column2....columnN 267 | FROM table_name 268 | WHERE column_name IN (val-1, val-2,...val-N); 269 | 270 | ### SQL BETWEEN Clause 271 | SELECT column1, column2....columnN 272 | FROM table_name 273 | WHERE column_name BETWEEN val-1 AND val-2; 274 | 275 | ### SQL LIKE Clause 276 | SELECT column1, column2....columnN 277 | FROM table_name 278 | WHERE column_name LIKE { PATTERN }; 279 | 280 | ### SQL ORDER BY Clause 281 | SELECT column1, column2....columnN 282 | FROM table_name 283 | WHERE CONDITION 284 | ORDER BY column_name {ASC|DESC}; 285 | 286 | ### SQL GROUP BY Clause 287 | SELECT SUM(column_name) 288 | FROM table_name 289 | WHERE CONDITION 290 | GROUP BY column_name; 291 | 292 | ### SQL COUNT Clause 293 | SELECT COUNT(column_name) 294 | FROM table_name 295 | WHERE CONDITION; 296 | 297 | ### SQL HAVING Clause 298 | SELECT SUM(column_name) 299 | FROM table_name 300 | WHERE CONDITION 301 | GROUP BY column_name 302 | HAVING (arithematic function condition); 303 | 304 | ### SQL CREATE TABLE Statement 305 | CREATE TABLE table_name( 306 | column1 datatype, 307 | column2 datatype, 308 | column3 datatype, 309 | ..... 310 | columnN datatype, 311 | PRIMARY KEY( one or more columns ) 312 | ); 313 | 314 | ### SQL DROP TABLE Statement 315 | DROP TABLE table_name; 316 | 317 | ### SQL CREATE INDEX Statement 318 | CREATE UNIQUE INDEX index_name 319 | ON table_name ( column1, column2,...columnN); 320 | 321 | ### SQL DROP INDEX Statement 322 | ALTER TABLE table_name 323 | DROP INDEX index_name; 324 | 325 | ### SQL DESC Statement 326 | DESC table_name; 327 | 328 | ### SQL TRUNCATE TABLE Statement 329 | TRUNCATE TABLE table_name; 330 | 331 | ### SQL ALTER TABLE Statement 332 | ALTER TABLE table_name {ADD|DROP|MODIFY} column_name {data_ype}; 333 | 334 | ### SQL ALTER TABLE Statement (Rename) 335 | ALTER TABLE table_name RENAME TO new_table_name; 336 | 337 | ### SQL INSERT INTO Statement 338 | INSERT INTO table_name( column1, column2....columnN) 339 | VALUES ( value1, value2....valueN); 340 | 341 | ### SQL UPDATE Statement 342 | UPDATE table_name 343 | SET column1 = value1, column2 = value2....columnN=valueN 344 | [ WHERE CONDITION ]; 345 | 346 | ### SQL DELETE Statement 347 | DELETE FROM table_name 348 | WHERE {CONDITION}; 349 | 350 | ### SQL CREATE DATABASE Statement 351 | CREATE DATABASE database_name; 352 | 353 | ### SQL DROP DATABASE Statement 354 | DROP DATABASE database_name; 355 | 356 | ### SQL USE Statement 357 | USE database_name; 358 | 359 | ### SQL COMMIT Statement 360 | COMMIT; 361 | 362 | ### SQL ROLLBACK Statement 363 | ROLLBACK; 364 | 365 | # SQL - Data Types 🧐 366 | 367 | - SQL Data Type is an attribute that specifies the type of data of any object. 368 | - Each column, variable and expression has a related data type in SQL. 369 | - You can use these data types while creating your tables. 370 | - You can choose a data type for a table column based on your requirement. 371 | - SQL Server offers six categories of data types for your use which are listed below − 372 | 373 | ## 1) Exact Numeric Data Types 374 | 375 | ![image](https://user-images.githubusercontent.com/43011442/127181387-5c8a3c74-b852-4de7-a3f9-12903a6be7c9.png) 376 | 377 | ## 2) Approximate Numeric Data Types 378 | 379 | ![image](https://user-images.githubusercontent.com/43011442/127271215-c79c162d-b983-4e70-902b-a43929e805a6.png) 380 | 381 | ## 3) Date and Time Data Types 382 | 383 | ![image](https://user-images.githubusercontent.com/43011442/127271285-779bde09-bd62-4d0f-8045-4665634b6fea.png) 384 | 385 | ## 4) Character Strings Data Types 386 | 387 | ![image](https://user-images.githubusercontent.com/43011442/127271776-4527e3c4-4678-4ec5-af5b-da91ad8fb2c2.png) 388 | 389 | ## 5) Unicode Character Strings Data Types 390 | 391 | ![image](https://user-images.githubusercontent.com/43011442/127271707-44cf339e-fb15-4159-b992-926415df6031.png) 392 | 393 | ## 6) Binary Data Types 394 | 395 | ![image](https://user-images.githubusercontent.com/43011442/127271659-85b26188-5043-4a31-a537-a5be85882ebd.png) 396 | 397 | ## 7) Misc Data Types 398 | 399 | ![image](https://user-images.githubusercontent.com/43011442/127271918-8bf12f0f-d137-4373-bb2a-2c46436c06c7.png) 400 | 401 | # Operator in SQL ⚡ 402 | 403 | - An operator is a reserved word or a character used primarily in an SQL statement's WHERE clause to perform operation(s), such as comparisons and arithmetic operations. 404 | - These Operators are used to specify conditions in an SQL statement and to serve as conjunctions for multiple conditions in a statement. 405 | 406 | **- Arithmetic operators** 407 | 408 | **- Comparison operators** 409 | 410 | **- Logical operators** 411 | 412 | **- Operators used to negate conditions** 413 | 414 | ## SQL Arithmetic Operators ✨ 415 | 416 | ### + (Addition) 417 | - Adds values on either side of the operator. 418 | ### - (Subtraction) 419 | - Subtracts right hand operand from left hand operand. 420 | ### * (Multiplication) 421 | - Multiplies values on either side of the operator. 422 | ### / (Division) 423 | - Divides left hand operand by right hand operand. 424 | ### % (Modulus) 425 | - Divides left hand operand by right hand operand and returns remainder. 426 | 427 | ## SQL Comparison Operators ⭐ 428 | 429 | ### = (Equals) 430 | - Checks if the values of two operands are equal or not, if yes then condition becomes true. 431 | ### != (NotEquals) 432 | - Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. 433 | ### <> (Equality) 434 | - Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. 435 | ### > (Greater than) 436 | - Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true. 437 | ### < (Lesser than) 438 | - Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true. 439 | ### >= (Greater than or Equal to) 440 | - Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true. 441 | ### <= (Lesser than or Equal to) 442 | - Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true. 443 | ### !< (Not Less than) 444 | - Checks if the value of left operand is not less than the value of right operand, if yes then condition becomes true. 445 | ### !> (Not Greater than) 446 | - Checks if the value of left operand is not greater than the value of right operand, if yes then condition becomes true. 447 | 448 | ## SQL Logical Operators ❗ 449 | 450 | ### ALL 451 | - The ALL operator is used to compare a value to all values in another value set. 452 | ### AND 453 | - The AND operator allows the existence of multiple conditions in an SQL statement's WHERE clause. 454 | ### ANY 455 | - The ANY operator is used to compare a value to any applicable value in the list as per the condition. 456 | ### BETWEEN 457 | - The BETWEEN operator is used to search for values that are within a set of values, given the minimum value and the maximum value. 458 | ### EXISTS 459 | - The EXISTS operator is used to search for the presence of a row in a specified table that meets a certain criterion. 460 | ### IN 461 | - The IN operator is used to compare a value to a list of literal values that have been specified. 462 | ### LIKE 463 | - The LIKE operator is used to compare a value to similar values using wildcard operators. 464 | ### NOT 465 | - The NOT operator reverses the meaning of the logical operator with which it is used. Eg: NOT EXISTS, NOT BETWEEN, NOT IN, etc. This is a negate operator. 466 | ### OR 467 | - The OR operator is used to combine multiple conditions in an SQL statement's WHERE clause. 468 | ### IS NULL 469 | - The NULL operator is used to compare a value with a NULL value. 470 | ### UNIQUE 471 | - The UNIQUE operator searches every row of a specified table for uniqueness (no duplicates). 472 | 473 | # SQL - Expressions ✍ 474 | 475 | - SQL EXPRESSIONs are like formulae and they are written in query language. You can also use them to query the database for a specific set of data. 476 | 477 | SELECT column1, column2, columnN 478 | FROM table_name 479 | WHERE [CONDITION|EXPRESSION]; 480 | 481 | - There are different types of SQL expressions, which are mentioned below − 482 | 483 | **1) Boolean** 484 | 485 | **2) Numeric** 486 | 487 | **3) Date** 488 | 489 | ## Boolean Expressions 490 | 491 | SELECT column1, column2, columnN 492 | FROM table_name 493 | WHERE SINGLE VALUE MATCHING EXPRESSION; 494 | 495 | ## Numeric Expression 496 | 497 | SELECT numerical_expression as OPERATION_NAME 498 | [FROM table_name 499 | WHERE CONDITION] ; 500 | 501 | ## Date Expressions 502 | 503 | SELECT CURRENT_TIMESTAMP; 504 | 505 | SELECT GETDATE(); 506 | 507 | # SQL - Using Joins ⭕ 508 | 509 | - The SQL Joins clause is used to combine records from two or more tables in a database. 510 | - A JOIN is a means for combining fields from two tables by using values common to each. 511 | - It is noticeable that the join is performed in the WHERE clause. 512 | - Several operators can be used to join tables, such as =, <, >, <>, <=, >=, !=, BETWEEN, LIKE, and NOT; they can all be used to join tables. 513 | - However, the most common operator is the equal to symbol. 514 | 515 | There are different types of joins available in SQL − 516 | 517 | **1) INNER JOIN − returns rows when there is a match in both tables.** 518 | 519 | **2) LEFT JOIN − returns all rows from the left table, even if there are no matches in the right table.** 520 | 521 | **3) RIGHT JOIN − returns all rows from the right table, even if there are no matches in the left table.** 522 | 523 | **4) FULL JOIN − returns rows when there is a match in one of the tables.** 524 | 525 | **5) SELF JOIN − is used to join a table to itself as if the table were two tables, temporarily renaming at least one table in the SQL statement.** 526 | 527 | **6) CARTESIAN JOIN − returns the Cartesian product of the sets of records from the two or more joined tables.** 528 | 529 | # Various Syntax for Joins 🚨 530 | 531 | ## 1) INNER JOIN 532 | 533 | SELECT table1.column1,table1.column2,table2.column1,.... 534 | FROM table1 535 | INNER JOIN table2 536 | ON table1.matching_column = table2.matching_column; 537 | 538 | 539 | table1: First table. 540 | table2: Second table 541 | matching_column: Column common to both the tables. 542 | 543 | ## 2) LEFT JOIN 544 | 545 | SELECT table1.column1,table1.column2,table2.column1,.... 546 | FROM table1 547 | LEFT JOIN table2 548 | ON table1.matching_column = table2.matching_column; 549 | 550 | 551 | table1: First table. 552 | table2: Second table 553 | matching_column: Column common to both the tables. 554 | 555 | ## 3) RIGHT JOIN 556 | 557 | SELECT table1.column1,table1.column2,table2.column1,.... 558 | FROM table1 559 | RIGHT JOIN table2 560 | ON table1.matching_column = table2.matching_column; 561 | 562 | 563 | table1: First table. 564 | table2: Second table 565 | matching_column: Column common to both the tables. 566 | 567 | ## 4) FULL JOIN 568 | 569 | SELECT table1.column1,table1.column2,table2.column1,.... 570 | FROM table1 571 | FULL JOIN table2 572 | ON table1.matching_column = table2.matching_column; 573 | 574 | 575 | table1: First table. 576 | table2: Second table 577 | matching_column: Column common to both the tables. 578 | 579 | ## 5) SELF JOIN 580 | 581 | SELECT a.coulmn1 , b.column2 582 | FROM table_name a, table_name b 583 | WHERE some_condition; 584 | 585 | table_name: Name of the table. 586 | some_condition: Condition for selecting the rows. 587 | 588 | ## 6) CARTESIAN JOIN 589 | 590 | SELECT table1.column1 , table1.column2, table2.column1... 591 | FROM table1 592 | CROSS JOIN table2; 593 | 594 | 595 | table1: First table. 596 | table2: Second table 597 | 598 | # SQL - UNIONS CLAUSE ✅ 599 | 600 | - The SQL UNION clause/operator is used to combine the results of two or more SELECT statements without returning any duplicate rows. 601 | - To use this UNION clause, each SELECT statement must have 602 | 603 | **- The same number of columns selected** 604 | 605 | **- The same number of column expressions** 606 | 607 | **- The same data type and have them in the same order** 608 | 609 | ## UNION 610 | 611 | SELECT column1 [, column2 ] 612 | FROM table1 [, table2 ] 613 | [WHERE condition] 614 | UNION 615 | SELECT column1 [, column2 ] 616 | FROM table1 [, table2 ] 617 | [WHERE condition] 618 | 619 | ## UNION ALL 620 | 621 | SELECT column1 [, column2 ] 622 | FROM table1 [, table2 ] 623 | [WHERE condition] 624 | UNION ALL 625 | SELECT column1 [, column2 ] 626 | FROM table1 [, table2 ] 627 | [WHERE condition] 628 | 629 | ## INTERSECT 630 | 631 | SELECT column1 [, column2 ] 632 | FROM table1 [, table2 ] 633 | [WHERE condition] 634 | INTERSECT 635 | SELECT column1 [, column2 ] 636 | FROM table1 [, table2 ] 637 | [WHERE condition] 638 | 639 | ## EXCEPT 640 | 641 | SELECT column1 [, column2 ] 642 | FROM table1 [, table2 ] 643 | [WHERE condition] 644 | EXCEPT 645 | SELECT column1 [, column2 ] 646 | FROM table1 [, table2 ] 647 | [WHERE condition] 648 | 649 | # SQL - NULL Values ⛔ 650 | 651 | - SQL NULL is the term used to represent a missing value. 652 | - A NULL value in a table is a value in a field that appears to be blank. 653 | - A field with a NULL value is a field with no value. 654 | - It is very important to understand that a NULL value is different than a zero value or a field that contains spaces. 655 | 656 | CREATE TABLE CUSTOMERS( 657 | ID INT NOT NULL, 658 | NAME VARCHAR (20) NOT NULL, 659 | AGE INT NOT NULL, 660 | ADDRESS CHAR (25) , 661 | SALARY DECIMAL (18, 2), 662 | PRIMARY KEY (ID) 663 | ); 664 | 665 | # SQL - Alias ✍ 666 | 667 | - The use of table aliases is to rename a table in a specific SQL statement. 668 | - The renaming is a temporary change and the actual table name does not change in the database. 669 | - The column aliases are used to rename a table's columns for the purpose of a particular SQL query. 670 | 671 | SELECT column1, column2.... 672 | FROM table_name AS alias_name 673 | WHERE [condition]; 674 | 675 | # SQL - Indexes ✌ 676 | 677 | - Indexes are special lookup tables that the database search engine can use to speed up data retrieval. 678 | - Simply put, an index is a pointer to data in a table. 679 | - An index in a database is very similar to an index in the back of a book. 680 | 681 | The following guidelines indicate when the use of an index should be reconsidered. 682 | 683 | **- Indexes should not be used on small tables.** 684 | 685 | **- Tables that have frequent, large batch updates or insert operations.** 686 | 687 | **- Indexes should not be used on columns that contain a high number of NULL values.** 688 | 689 | **- Columns that are frequently manipulated should not be indexed.** 690 | 691 | ### CREATE INDEX 692 | 693 | CREATE INDEX index_name ON table_name; 694 | 695 | ### Single-Column Indexes 696 | - A single-column index is created based on only one table column. 697 | 698 | CREATE INDEX index_name 699 | ON table_name (column_name); 700 | 701 | ### Unique Indexes 702 | - Unique indexes are used not only for performance, but also for data integrity. 703 | - A unique index does not allow any duplicate values to be inserted into the table. 704 | 705 | CREATE UNIQUE INDEX index_name 706 | on table_name (column_name); 707 | 708 | ### Composite Indexes 709 | - A composite index is an index on two or more columns of a table. 710 | 711 | CREATE INDEX index_name 712 | on table_name (column1, column2); 713 | 714 | ### Implicit Indexes 715 | - Implicit indexes are indexes that are automatically created by the database server when an object is created. 716 | - Indexes are automatically created for primary key constraints and unique constraints. 717 | 718 | ### DROP INDEX 719 | 720 | DROP INDEX index_name; 721 | 722 | # SQL - ALTER TABLE ✍ 723 | 724 | - The SQL ALTER TABLE command is used to add, delete or modify columns in an existing table. 725 | - You should also use the ALTER TABLE command to add and drop various constraints on an existing table. 726 | 727 | ### New Column 728 | 729 | ALTER TABLE table_name ADD column_name datatype; 730 | 731 | ### DROP COLUMN 732 | 733 | ALTER TABLE table_name DROP COLUMN column_name; 734 | 735 | ### Change DATA TYPE 736 | 737 | ALTER TABLE table_name MODIFY COLUMN column_name datatype; 738 | 739 | ### NOT NULL 740 | 741 | ALTER TABLE table_name MODIFY column_name datatype NOT NULL; 742 | 743 | ### ADD UNIQUE CONSTRAINT 744 | 745 | ALTER TABLE table_name 746 | ADD CONSTRAINT MyUniqueConstraint UNIQUE(column1, column2...); 747 | 748 | ### ADD CHECK CONSTRAINT 749 | 750 | ALTER TABLE table_name 751 | ADD CONSTRAINT MyUniqueConstraint CHECK (CONDITION); 752 | 753 | ### ADD PRIMARY KEY 754 | 755 | ALTER TABLE table_name 756 | ADD CONSTRAINT MyPrimaryKey PRIMARY KEY (column1, column2...); 757 | 758 | ### DROP CONSTRAINT 759 | 760 | ALTER TABLE table_name 761 | DROP CONSTRAINT MyUniqueConstraint; 762 | 763 | ALTER TABLE table_name 764 | DROP INDEX MyUniqueConstraint; 765 | 766 | ### DROP PRIMARY KEY 767 | 768 | ALTER TABLE table_name 769 | DROP CONSTRAINT MyPrimaryKey; 770 | 771 | ALTER TABLE table_name 772 | DROP PRIMARY KEY; 773 | 774 | # SQL - TRUNCATE TABLE 🎲 775 | 776 | - The SQL TRUNCATE TABLE command is used to delete complete data from an existing table. 777 | - You can also use DROP TABLE command to delete complete table but it would remove complete table structure form the database and you would need to re-create this table once again if you wish you store some data. 778 | 779 | TRUNCATE TABLE table_name; 780 | 781 | # SQL - Using Views ⭐ 782 | 783 | - A view is nothing more than a SQL statement that is stored in the database with an associated name. 784 | - A view is actually a composition of a table in the form of a predefined SQL query. 785 | - A view can contain all rows of a table or select rows from a table. 786 | - A view can be created from one or many tables which depends on the written SQL query to create a view. 787 | - 788 | Views, which are a type of virtual tables allow users to do the following − 789 | 790 | **- Structure data in a way that users or classes of users find natural or intuitive.** 791 | 792 | **- Restrict access to the data in such a way that a user can see and (sometimes) modify exactly what they need and no more.** 793 | 794 | **- Summarize data from various tables which can be used to generate reports.** 795 | 796 | ## Creating Views 797 | 798 | CREATE VIEW view_name AS 799 | SELECT column1, column2..... 800 | FROM table_name 801 | WHERE [condition]; 802 | 803 | ## WITH CHECK OPTION 804 | 805 | - The WITH CHECK OPTION is a CREATE VIEW statement option. 806 | - The purpose of the WITH CHECK OPTION is to ensure that all UPDATE and INSERTs satisfy the condition(s) in the view definition. 807 | - If they do not satisfy the condition(s), the UPDATE or INSERT returns an error. 808 | 809 | CREATE VIEW CUSTOMERS_VIEW AS 810 | SELECT name, age 811 | FROM CUSTOMERS 812 | WHERE age IS NOT NULL 813 | WITH CHECK OPTION; 814 | 815 | ## Updating a View 816 | 817 | A view can be updated under certain conditions which are given below − 818 | 819 | **- The SELECT clause may not contain the keyword DISTINCT.** 820 | 821 | **- The SELECT clause may not contain summary functions.** 822 | 823 | **- The SELECT clause may not contain set functions.** 824 | 825 | **- The SELECT clause may not contain set operators.** 826 | 827 | **- The SELECT clause may not contain an ORDER BY clause.** 828 | 829 | **- The FROM clause may not contain multiple tables.** 830 | 831 | **- The WHERE clause may not contain subqueries.** 832 | 833 | **- The query may not contain GROUP BY or HAVING.** 834 | 835 | **- Calculated columns may not be updated.** 836 | 837 | **- All NOT NULL columns from the base table must be included in the view in order for the INSERT query to function.** 838 | 839 | ## Inserting Rows into a View 840 | 841 | - Rows of data can be inserted into a view. 842 | - The same rules that apply to the UPDATE command also apply to the INSERT command. 843 | 844 | ## Deleting Rows into a View 845 | 846 | - Rows of data can be deleted from a view. 847 | - The same rules that apply to the UPDATE and INSERT commands apply to the DELETE command. 848 | 849 | ## Dropping Views 850 | 851 | DROP VIEW view_name; 852 | 853 | # SQL - Having Clause 🚨 854 | 855 | - The HAVING Clause enables you to specify conditions that filter which group results appear in the results. 856 | - The WHERE clause places conditions on the selected columns, whereas the HAVING clause places conditions on groups created by the GROUP BY clause. 857 | 858 | SELECT column1, column2 859 | FROM table1, table2 860 | WHERE [ conditions ] 861 | GROUP BY column1, column2 862 | HAVING [ conditions ] 863 | ORDER BY column1, column2 864 | 865 | # SQL - Transactions ⭐ 866 | 867 | - A transaction is a unit of work that is performed against a database. 868 | - Transactions are units or sequences of work accomplished in a logical order, whether in a manual fashion by a user or automatically by some sort of a database program. 869 | - A transaction is the propagation of one or more changes to the database. 870 | - For example, if you are creating a record or updating a record or deleting a record from the table, then you are performing a transaction on that table. 871 | - It is important to control these transactions to ensure the data integrity and to handle database errors. 872 | 873 | ## Properties of Transactions 874 | 875 | Transactions have the following four standard properties, usually referred to by the acronym ACID. 876 | 877 | **Atomicity** - ensures that all operations within the work unit are completed successfully.Otherwise, the transaction is aborted at the point of failure and all the previous operations are rolled back to their former state. 878 | 879 | **Consistency** − ensures that the database properly changes states upon a successfully committed transaction. 880 | 881 | **Isolation** − enables transactions to operate independently of and transparent to each other. 882 | 883 | **Durability** − ensures that the result or effect of a committed transaction persists in case of a system failure. 884 | 885 | ## Transaction Control Commands 886 | 887 | ### COMMIT − to save the changes. 888 | 889 | COMMIT; 890 | 891 | ### ROLLBACK − to roll back the changes. 892 | 893 | ROLLBACK; 894 | 895 | ### SAVEPOINT − creates points within the groups of transactions in which to ROLLBACK. 896 | 897 | SAVEPOINT SAVEPOINT_NAME; 898 | 899 | ROLLBACK TO SAVEPOINT_NAME; 900 | 901 | RELEASE SAVEPOINT SAVEPOINT_NAME; 902 | 903 | ### SET TRANSACTION − Places a name on a transaction. 904 | 905 | SET TRANSACTION [ READ WRITE | READ ONLY ]; 906 | 907 | # SQL - Wildcard Operators ✅ 908 | 909 | ### 1) The percent sign (%) 910 | 911 | - Matches one or more characters. 912 | 913 | **Note − MS Access uses the asterisk (*) wildcard character instead of the percent sign (%) wildcard character.** 914 | 915 | ### 2) The underscore (_) 916 | 917 | - Matches one character. 918 | 919 | **Note − MS Access uses a question mark (?) instead of the underscore (_) to match any one character.** 920 | 921 | ## Syntax 922 | 923 | SELECT * FROM table_name 924 | WHERE column LIKE 'XXXX%' 925 | 926 | (or) 927 | 928 | SELECT * FROM table_name 929 | WHERE column LIKE '%XXXX%' 930 | 931 | (or) 932 | 933 | SELECT * FROM table_name 934 | WHERE column LIKE 'XXXX_' 935 | 936 | (or) 937 | 938 | SELECT * FROM table_name 939 | WHERE column LIKE '_XXXX' 940 | 941 | (or) 942 | 943 | SELECT * FROM table_name 944 | WHERE column LIKE '_XXXX_' 945 | 946 | ### WHERE SALARY LIKE '200%' 947 | 948 | - Finds any values that start with 200. 949 | 950 | ### WHERE SALARY LIKE '%200%' 951 | 952 | - Finds any values that have 200 in any position. 953 | 954 | ### WHERE SALARY LIKE '_00%' 955 | 956 | - Finds any values that have 00 in the second and third positions. 957 | 958 | ### WHERE SALARY LIKE '2_%_%' 959 | 960 | - Finds any values that start with 2 and are at least 3 characters in length. 961 | 962 | ### WHERE SALARY LIKE '%2' 963 | 964 | - Finds any values that end with 2. 965 | 966 | ### WHERE SALARY LIKE '_2%3' 967 | 968 | - Finds any values that have a 2 in the second position and end with a 3. 969 | 970 | ### WHERE SALARY LIKE '2___3' 971 | 972 | - Finds any values in a five-digit number that start with 2 and end with 3. 973 | 974 | # SQL - Date Functions 📅 975 | 976 | ### ADDDATE() - Adds dates 977 | 978 | ### ADDTIME() - Adds time 979 | 980 | ### CONVERT_TZ() - Converts from one timezone to another 981 | 982 | ### CURDATE() - Returns the current date 983 | 984 | ### CURRENT_DATE(), CURRENT_DATE - Synonyms for CURDATE() 985 | 986 | ### CURRENT_TIME(), CURRENT_TIME - Synonyms for CURTIME() 987 | 988 | ### CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP - Synonyms for NOW() 989 | 990 | ### CURTIME() - Returns the current time 991 | 992 | ### ATE_ADD() - Adds two dates 993 | 994 | ### DATE_FORMAT() - Formats date as specified 995 | 996 | ### DATE_SUB() - Subtracts two dates 997 | 998 | ### DATE() - Extracts the date part of a date or datetime expression 999 | 1000 | ### DATEDIFF() - Subtracts two dates 1001 | 1002 | ### DAY() - Synonym for DAYOFMONTH() 1003 | 1004 | ### DAYNAME() - Returns the name of the weekday 1005 | 1006 | ### DAYOFMONTH() - Returns the day of the month (1-31) 1007 | 1008 | ### DAYOFWEEK() - Returns the weekday index of the argument 1009 | 1010 | ### DAYOFYEAR() - Returns the day of the year (1-366) 1011 | 1012 | ### EXTRACT - Extracts part of a date 1013 | 1014 | ### FROM_DAYS() - Converts a day number to a date 1015 | 1016 | ### FROM_UNIXTIME() - Formats date as a UNIX timestamp 1017 | 1018 | ### HOUR() - Extracts the hour 1019 | 1020 | ### LAST_DAY - Returns the last day of the month for the argument 1021 | 1022 | ### LOCALTIME(), LOCALTIME - Synonym for NOW() 1023 | 1024 | ### LOCALTIMESTAMP, LOCALTIMESTAMP() - Synonym for NOW() 1025 | 1026 | ### MAKEDATE() - Creates a date from the year and day of year 1027 | 1028 | ### MAKETIME - MAKETIME() 1029 | 1030 | ### MICROSECOND() - Returns the microseconds from argument 1031 | 1032 | ### MINUTE() - Returns the minute from the argument 1033 | 1034 | ### MONTH() - Return the month from the date passed 1035 | 1036 | ### MONTHNAME() - Returns the name of the month 1037 | 1038 | ### NOW() - Returns the current date and time 1039 | 1040 | ### PERIOD_ADD() - Adds a period to a year-month 1041 | 1042 | ### PERIOD_DIFF() - Returns the number of months between periods 1043 | 1044 | ### QUARTER() - Returns the quarter from a date argument 1045 | 1046 | ### SEC_TO_TIME() - Converts seconds to 'HH:MM:SS' format 1047 | 1048 | ### SECOND() - Returns the second (0-59) 1049 | 1050 | ### STR_TO_DATE() - Converts a string to a date 1051 | 1052 | ### SUBDATE() - When invoked with three arguments a synonym for DATE_SUB() 1053 | 1054 | ### SUBTIME() - Subtracts times 1055 | 1056 | ### SYSDATE() - Returns the time at which the function executes 1057 | 1058 | ### TIME_FORMAT() - Formats as time 1059 | 1060 | ### TIME_TO_SEC() - Returns the argument converted to seconds 1061 | 1062 | ### TIME() - Extracts the time portion of the expression passed 1063 | 1064 | ### TIMEDIFF() - Subtracts time 1065 | 1066 | ### TIMESTAMP() - With a single argument this function returns the date or datetime expression. With two arguments, the sum of the arguments 1067 | 1068 | ### TIMESTAMPADD() - Adds an interval to a datetime expression 1069 | 1070 | ### IMESTAMPDIFF() - Subtracts an interval from a datetime expression 1071 | 1072 | ### TO_DAYS() - Returns the date argument converted to days 1073 | 1074 | ### UNIX_TIMESTAMP() - Returns a UNIX timestamp 1075 | 1076 | ### UTC_DATE() - Returns the current UTC date 1077 | 1078 | ### UTC_TIME() - Returns the current UTC time 1079 | 1080 | ### UTC_TIMESTAMP() - Returns the current UTC date and time 1081 | 1082 | ### WEEK() - Returns the week number 1083 | 1084 | ### WEEKDAY() - Returns the weekday index 1085 | 1086 | ### WEEKOFYEAR() - Returns the calendar week of the date (1-53) 1087 | 1088 | ### YEAR() - Returns the year 1089 | 1090 | ### YEARWEEK() - Returns the year and week 1091 | -------------------------------------------------------------------------------- /SQL Basic Cheat Sheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basic Cheat Sheet.pdf -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 1.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 1.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 2.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 2.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 3.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 3.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 4.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 4.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 5.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 5.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 6.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 6.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 7.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 7.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 8.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 8.jfif -------------------------------------------------------------------------------- /SQL Basics/SQL chapter - page 9.jfif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Basics/SQL chapter - page 9.jfif -------------------------------------------------------------------------------- /SQL Cheat-Sheet .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Cheat-Sheet .pdf -------------------------------------------------------------------------------- /SQL Cheatsheet .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Cheatsheet .pdf -------------------------------------------------------------------------------- /SQL Commands .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Commands .pdf -------------------------------------------------------------------------------- /SQL Complete Notes .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Complete Notes .pdf -------------------------------------------------------------------------------- /SQL Complex Queries Solutions For Interview Preparation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Complex Queries Solutions For Interview Preparation.pdf -------------------------------------------------------------------------------- /SQL Concise Interview Notes.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Concise Interview Notes.pdf -------------------------------------------------------------------------------- /SQL FREQUENT ASKED INTERVIEW QUESTIONS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL FREQUENT ASKED INTERVIEW QUESTIONS.pdf -------------------------------------------------------------------------------- /SQL Handwritten Notes .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Handwritten Notes .pdf -------------------------------------------------------------------------------- /SQL Handwritten Notes 📜.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Handwritten Notes 📜.pdf -------------------------------------------------------------------------------- /SQL INTERVIEW .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL INTERVIEW .pdf -------------------------------------------------------------------------------- /SQL Interview Pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Interview Pdf.pdf -------------------------------------------------------------------------------- /SQL Interview Questions & answer.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Interview Questions & answer.pdf -------------------------------------------------------------------------------- /SQL Notes (1).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Notes (1).pdf -------------------------------------------------------------------------------- /SQL Notes .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Notes .pdf -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 1.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 2.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 3.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 4.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 4.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 5.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 5.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 6.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 6.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 7.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 7.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 8.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 8.JPG -------------------------------------------------------------------------------- /SQL Operators/SQL operators - page 9.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Operators/SQL operators - page 9.JPG -------------------------------------------------------------------------------- /SQL PDF .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL PDF .pdf -------------------------------------------------------------------------------- /SQL Practice Sheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL Practice Sheet.pdf -------------------------------------------------------------------------------- /SQL cheatshset.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL cheatshset.jpg -------------------------------------------------------------------------------- /SQL commands.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL commands.pdf -------------------------------------------------------------------------------- /SQL complete guide 💡.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL complete guide 💡.pdf -------------------------------------------------------------------------------- /SQL interview questions .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL interview questions .pdf -------------------------------------------------------------------------------- /SQL mindmap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL mindmap.jpg -------------------------------------------------------------------------------- /SQL placement preparation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL placement preparation.pdf -------------------------------------------------------------------------------- /SQL with practice exercises.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL with practice exercises.pdf -------------------------------------------------------------------------------- /SQL-Most Important Concepts .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL-Most Important Concepts .pdf -------------------------------------------------------------------------------- /SQL.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL.pdf -------------------------------------------------------------------------------- /SQLNotesForProfessionals.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQLNotesForProfessionals.pdf -------------------------------------------------------------------------------- /SQL_ notes_ for_ interview.pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/SQL_ notes_ for_ interview.pdf.pdf -------------------------------------------------------------------------------- /Top 100 SQL Interview Questions and Answers .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Top 100 SQL Interview Questions and Answers .pdf -------------------------------------------------------------------------------- /Tricky SQL interview Questions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/Tricky SQL interview Questions.pdf -------------------------------------------------------------------------------- /dbms.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/dbms.pdf -------------------------------------------------------------------------------- /sql injection.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/sql injection.pdf -------------------------------------------------------------------------------- /𝐒𝐐𝐋_𝐁𝐀𝐒𝐈𝐂𝐒_𝐀𝐍𝐃_𝐀𝐃𝐕𝐀𝐍𝐂𝐄𝐃_𝐍𝐎𝐓𝐄𝐒.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/𝐒𝐐𝐋_𝐁𝐀𝐒𝐈𝐂𝐒_𝐀𝐍𝐃_𝐀𝐃𝐕𝐀𝐍𝐂𝐄𝐃_𝐍𝐎𝐓𝐄𝐒.pdf -------------------------------------------------------------------------------- /𝗦𝗤𝗟_𝗡𝗼𝘁𝗲𝘀_𝗙𝗼𝗿_𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rohanmistry231/SQL-From-Scratch/037ea5e921d70446c19a21cb0104801f5aaf73ef/𝗦𝗤𝗟_𝗡𝗼𝘁𝗲𝘀_𝗙𝗼𝗿_𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄.pdf --------------------------------------------------------------------------------