Giter Site home page Giter Site logo

sql-notes's Introduction

SQL Notes

This repository contains a collection of SQL notes and examples that demonstrate my proficiency in using SQL to manipulate and query data. The notes cover a range of topics, including common SQL commands, data types, and database concepts, and are designed to showcase my ability to effectively use SQL in a variety of settings.

Contents

Basic SQL

'CREATE TABLE' Statement - Creates a table.
'INSERT INTO' Statement - Inserts records into a database.
'SELECT' and 'FROM' Statements - Selects data from a database.
'WHERE' Statement - Extract only records that fulfill a specified condition.
'GROUP BY' and 'ORDER BY' Statements - Groups rows that have the same values into summary rows. Orders records in specified order.

Intermediate SQL

'JOIN' Statement - Combine rows from two or more tables, based on a related column.
'UNION' Statement - Combine two or more 'SELECT' statements.
'CASE' Statement - Evaluates conditions sequentially, similar to if/then/else.
'HAVING' Statement - Used because 'WHERE' cannot be used with aggregate functions.
'UPDATE' and 'DELETE' Statements - Modifies/Deletes existing records in a table.
'AS' Statement - Aliases give tables or columns temporary names, makes it more readable.
'PARTITION BY' Statement - Divides rows/query result set into small partitons. Similar to 'GROUP BY' except all rows are shown.

Advanced SQL

CTE 'WITH' Statement - Temporary table from a SELECT statement that can be used in a subsequent SELECT statement.
Temp Tables - Database table that exists temporarily on the database server.
Subqueries - Nested SELECT statement within another SELECT, INSERT, UPDATE, or DELETE statement.
'TRIM' Statement - Removes leading or trailing spaces from a string.
'CREATE PROCEDURE' Statement - Stores a precompiled collection of SQL statements in the database.
'ALTER PROCEDURE' Statement - Modifies it.

Additional Resources

sql-notes's People

Contributors

monophosphate avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.