[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572558-105":53,"doc-detail-572558-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","sql-cheat-sheet-read-online","SQL Cheat Sheet - read online","","Concise SQL reference covering core concepts and common operators for querying and manipulating relational data. Explains database essentials such as databases, DBMS, schemas, datatypes, and primary keys, then focuses on filtering via WHERE with comparison and logical operators (AND, OR, IN, NOT). Summarizes widely used data manipulation functions including string extraction and case conversion, type casting, date retrieval and components, numeric absolute value, and basic math/trigonometric functions, with notes about function portability across DBMS.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/sql-cheat-sheet-read-online/572558/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/sql-cheat-sheet-read-online/572558.png","ImageObject",442,249,{"name":88,"@type":89},"supergirl","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-22","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",8,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What are databases, DBMS, schemas, datatypes, and primary keys in SQL?","Question",{"text":109,"@type":110},"A database stores organized data. A DBMS manipulates that database, schemas describe layout and properties, datatypes define allowed values per column, and primary keys uniquely identify each row (not mandatory, but commonly used).","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How do you filter rows in SQL using WHERE?",{"text":114,"@type":110},"WHERE is placed right after the table name (before ORDER BY) to filter results. It can use comparison operators and logical operators like AND, OR, plus constructs like IN for value lists and NOT to negate a condition.",{"name":116,"@type":107,"acceptedAnswer":117},"Which data manipulation functions are commonly listed, and why do they vary by DBMS?",{"text":118,"@type":110},"The sheet lists functions for string operations (e.g., SUBSTR/CONVERT, UPPER/LOWER), type conversion (CAST/CONVERT), current date retrieval, date parts (EXTRACT/DATEPART/YEAR-MONTH-DAY style), and numeric/math functions (ABS, COS, SIN, TAN, SQRT, PI). It notes that SQL functions are not portable because they differ between DBMS, so comments near functions are recommended.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},572558,1792014843,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":79,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":73},962088121634,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","SQL Cheat Sheet  \n[by](by Remidy08 via cheatography.com/159206/cs/33576/)[ Remidy08](by Remidy08 via cheatography.com/159206/cs/33576/)[ via](by Remidy08 via cheatography.com/159206/cs/33576/)[ cheatography.com/159206/cs/33576/](by Remidy08 via cheatography.com/159206/cs/33576/)  \nUnderstanding SQL  \n\n| Database: |  | container to store organized data |\n| --- | --- | --- |\n| Database Management System (DBMS):\u003Cbr>Table: |  | manipulates the database\u003Cbr>structured list of data of a specific type. There cannot be repeated names for |\n| Schema: |  | tables in the same database Information about database and table layout and\u003Cbr>properties |\n| Datatype: |  | A type of allowed dat in a certain column |\n| Primary Keys: |  | A column whose values uniquely identify every row in a table. They are not mandatory but most people that create a database use them. These should never\u003Cbr>be updated or reused |\n| Filtering Data |  |  |\n| WHERE | specified right after the table name (before ORDER BY. It is used to filter the data |  |\n| Operators | used in the WHERE clause. They can be: = (equality); \u003C> or != (nonequality) , \u003C (less than) , \u003C= (less than or equal) , !\u003C (not less than) , > (greater than) , >= (greater or equal than) , !> (not greater than) , BETWEEN , IS NULL |  |\n| AND | used to append conditions to the WHERE clause. |  |\n\nBy Remidy08  \n[cheatography.com/remidy08/](cheatography.com/remidy08/)  \nFiltering Data (cont)  \n\n| OR instructs the database management system to retrieve rows that match either condition.\u003Cbr>IN used to specify a range of condit‐ ions , any of which can be matched. It takes a comma-delimited list of valid values , all enclosed within parentheses.\u003Cbr>NOT can be used before the column to filter on , not just after it. Negates whatever condition comes next to it. |  |\n| --- | --- |\n| We can do the same with the IN and OR operators , but the IN has the advantage of being easier to read; is easier to use in conjuction with other AND and OR operators; In often executes more quickly; it allows to build subqueries.\u003Cbr>Data Manipulation Functions |  |\n| SUBSTR() (DB2 , Oracle , PostgreSQL , and SQLITE) or SUBSTRING() (MariaDB , MySQL and SQL Server) | Extract part of a string |\n| CAST() (DB2 , PostgreSQL , SQL Server) or CONVERT() | Data type conversion. |\n| (MariaDB , MySQL , and SQL Server [appears in both]) | Oracle has multiple functions , one for\u003Cbr>each type |\n| CURRET_DATE (DB2 and PostgreSQL) or CURDATE()(MariaDB and MySQL) or SYSDATE (Oracle) or | Get current date |\n| GETDATE() (SQL Server) or DATE() (SQLite) |  |\n| UPPER() | converts text to uppercase |\n\nNot published yet.  \nLast updated 12th September, 2022. Page 1 of 4.  \nData Manipulation Functions (cont)  \n\n| LEFT() | returns characters from the left of a\u003Cbr>string |\n| --- | --- |\n| LENGTH() or | returns the length of |\n| DATALENGTH() or LEN() | a string |\n| LOWER() | converts a string to lower case |\n| RIGHT() | returns characters from the right of a string |\n| SOUNDEX() | returns a string's |\n| (PostgreSQL) | SOUNDEX value , like the name says , it returns strings with simmilar sounds |\n| DATEPART(yy , column)) (SQL Server) or DATE_PART('y‐ ear' , column)(PostgreSQL)) | returns the part of the date that we want to use |\n| EXTRACT(year\u003Cbr>FROM column) | extracts part of the date with year specifying what part of the date to extract |\n| to_date(date ,\u003Cbr>'yyyy-mm-dd') | converts strings into dates. It can be used in a BETWEEN statement |\n| YEAR() (DB2 , | extracts the year from |\n| MySQL , and MariaDB) | date. |\n| MONTH() (DB2 , | extracts the month |\n| MySQL , and MariaDB) | from date. |\n| DAY() (DB2 , | extracts the day from |\n| MySQL , and MariaDB) | date. |\n| strftime('%Y' , column) | extracts part of a date. |\n| ABS() | returns a number's absolute value |\n\nSponsored by Readable.com Measure your website readability!  \n[https://readable.com](https://readable.com)  \nSQL Cheat Sheet  \n[by](by Remidy08 via cheatography.com/159206/cs/33576/)[ Remidy08](by R","cbCaic3kH0LVjudW","https://ap.wps.com/l/cbCaic3kH0LVjudW","pdf",62299,"English","# Understanding SQL\n## Filtering Data\n## Data Manipulation Functions\n## Retrieving Data","[{\"question\":\"What are databases, DBMS, schemas, datatypes, and primary keys in SQL?\",\"answer\":\"A database stores organized data. A DBMS manipulates that database, schemas describe layout and properties, datatypes define allowed values per column, and primary keys uniquely identify each row (not mandatory, but commonly used).\"},{\"question\":\"How do you filter rows in SQL using WHERE?\",\"answer\":\"WHERE is placed right after the table name (before ORDER BY) to filter results. It can use comparison operators and logical operators like AND, OR, plus constructs like IN for value lists and NOT to negate a condition.\"},{\"question\":\"Which data manipulation functions are commonly listed, and why do they vary by DBMS?\",\"answer\":\"The sheet lists functions for string operations (e.g., SUBSTR/CONVERT, UPPER/LOWER), type conversion (CAST/CONVERT), current date retrieval, date parts (EXTRACT/DATEPART/YEAR-MONTH-DAY style), and numeric/math functions (ABS, COS, SIN, TAN, SQRT, PI). It notes that SQL functions are not portable because they differ between DBMS, so comments near functions are recommended.\"}]","SQL Cheat Sheet - read online | PDF",1791928076]