The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
SQL CHEAT SHEET👩‍💻
By Guest on 16th May 2023 12:47:09 PM | Syntax: TEXT | Views: 1



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. SQL is a language used to communicate with databases it stands for Structured Query Language and is used by database administrators and developers alike to write queries that are used to interact with the database. Here is a quick cheat sheet of some of the most essential SQL commands:
  2.  
  3. SELECT - Retrieves data from a database
  4.  
  5. UPDATE - Updates existing data in a database
  6.  
  7. DELETE - Removes data from a database
  8.  
  9. INSERT - Adds data to a database
  10.  
  11. CREATE - Creates an object such as a database or table
  12.  
  13. ALTER - Modifies an existing object in a database
  14.  
  15. DROP -Deletes an entire table or database
  16.  
  17. ORDER BY - Sorts the selected data in an ascending or descending order
  18.  
  19. WHERE – Condition used to filter a specific set of records from the database
  20.  
  21. GROUP BY - Groups a set of data by a common parameter
  22.  
  23. HAVING - Allows the use of aggregate functions within the query
  24.  
  25. JOIN - Joins two or more tables together to retrieve data
  26.  
  27. INDEX - Creates an index on a table, to speed up search times.



  • Recent Pastes