[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573235-105":53,"doc-detail-573235-en":126},{"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":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","sql-processing-with-sas-tip-sheet-advanced-programming-using-sas-94","SQL Processing with SAS - Tip Sheet - Advanced Programming Using SAS 9.4","","Concise tip sheet for SAS® Certified Professional Prep Guide Advanced Programming Using SAS® 9.4, focusing on SQL processing and SAS macro language. Covers core PROC SQL query structure and the order of execution across SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY. Includes table and view management commands (CREATE, DESCRIBE, DROP), column and row modification patterns, duplicate elimination and row filtering conditions, join examples, subqueries, set operators (INTERSECT, EXCEPT, UNION, OUTER UNION), and DBMS pass-through usage.",{"@graph":63,"@context":118},[64,80,101],{"@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-processing-with-sas-tip-sheet-advanced-programming-using-sas-94/573235/",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-processing-with-sas-tip-sheet-advanced-programming-using-sas-94/573235.png","ImageObject",442,249,{"name":88,"@type":89},"Taylor Morgan","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-18","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":73},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"What is the execution order of clauses in PROC SQL?","Question",{"text":108,"@type":109},"The tip sheet lists SQL Query Order of Execution as SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How can you modify columns and filter calculated columns in SAS SQL?",{"text":113,"@type":109},"It shows using SELECT column expressions with LABEL= and FORMAT=, creating new columns with AS, and filtering new columns using WHERE CALCULATED new-col-name.",{"name":115,"@type":106,"acceptedAnswer":116},"How do you connect to and query DBMS data using PROC SQL pass-through?",{"text":117,"@type":109},"It provides the PROC SQL pass-through pattern: CONNECT TO DBMS-name (options), run SELECT from CONNECTION TO DBMS-name|alias (dbms-query), then DISCONNECT and QUIT.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},573235,1792337793,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":73,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":135,"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},1099523885336,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","| SQL Processing with SAS ® Tip Sheet |\n| --- |\n| This tip sheet is associated with the SAS® Certiﬁed Professional Prep Guide Advanced Programming Using SAS® 9.4. For more information, [visit www.sas.com/certify](visit www.sas.com/certify) |\n\nBasic Queries  \nPROC SQL \u003Coptions >;  \nSELECT column-1 \u003C, ...column-n>  \nFROM input-table \u003CWHERE expression >\u003CGROUP BY col-name>\u003CHAVING expression >  \n\u003CORDER BY col-name> \u003CDESC> \u003C,...col-name>; SQL Query Order of Execution:  \n\n| Clause Description |  |\n| --- | --- |\n| SELECT | Retrieve data from a table |\n| FROM | Choose and join tables |\n| WHERE | Filter the data |\n| GROUP BY | Aggregate the data |\n| HAVING | Filter the aggregate data |\n| ORDER BY | Sort the ﬁnal data |\n\nManaging Tables  \n\n| CREATE TABLE | CREATE TABLE table-name (column-speciﬁcation-1\u003C,...column-speciﬁcation-n >); |\n| --- | --- |\n| DESCRIBE TABLE | DESCRIBE TABLE table-name-1 \u003C,...table-name-n>; |\n| DROP TABLE | DROP TABLE table-name-1 \u003C,...table-name-n>; |\n\nManaging Views  \n\n| CREATE VIEW | CREATE VIEW table-name AS query; |\n| --- | --- |\n| DESCRIBE VIEW | DESCRIBE VIEW view-name-1 \u003C,...view-name-n>; |\n| DROP VIEW | DROP VIEW view-name-1 |\n|  | \u003C,...view-name-n>; |\n\nModifying Columns  \n\n| LABEL= | SELECT col-name LABEL=’column label’ |\n| --- | --- |\n| FORMAT= | SELECT col-name\u003Cbr>FORMAT=format. |\n| Creating a\u003Cbr>new column | SELECT col-name AS new-col-name |\n| Filtering\u003Cbr>new columns | WHERE CALCULATED\u003Cbr>new-col-name |\n\nModifying Rows  \n\n| Inserting rows\u003Cbr>into tables | INSERT INTO table\u003Cbr>SET column-name =value \u003C, ...column-name =value>;\u003Cbr>INSERT INTO table \u003C(column-list)> VALUES (value\u003C,...value>);\u003Cbr>INSERT INTO table \u003C(column-list)>\u003Cbr>SELECT column-1 \u003C,...column-n> FROM input-table; |\n| --- | --- |\n| Eliminating duplicate rows | SELECT DISTINCT\u003Cbr>col-name\u003C,...col-name> |\n| Filtering\u003Cbr>rows | WHERE col-name IN (value1, value2, ... )\u003Cbr>WHERE col-name LIKE“_string%”\u003Cbr>WHERE col-name BETWEEN value AND value\u003Cbr>WHERE col-name IS NULL\u003Cbr>WHERE date-value“\u003C01JAN2019>”d\u003Cbr>WHERE time-value“\u003C 14:45:35>”t\u003Cbr>WHERE datetime-value“\u003C01JAN201914:45:35>”dt |\n\nRemerging Summary Statistics  \nSELECT col-name, summary function(argument) FROM input table;  \nCopyright © 2019 SAS Institute Inc. Cary, NC, USA. All rights reserved.  \n| SQL Processing with SAS ® Tip Sheet |\n| --- |\n| This tip sheet is associated with the SAS® Certiﬁed Professional Prep Guide Advanced Programming Using SAS® 9.4. For more information, [visit www.sas.com/certify](visit www.sas.com/certify) |\n\nJoins Summary  \nSELECT \u003Clist>  \nFROM table-A INNER JOIN table-BON A.Key=B.Key;  \nSELECT \u003Clist>  \nFROM table-A FULL JOIN table-BON A.Key=B.Key;  \nSELECT \u003Clist>  \nFROM table-A RIGHT JOIN table-BON A.Key=B.Key;  \nSELECT \u003Clist>  \nFROM table-A LEFT JOIN table-BON A.Key=B.Key;  \nCreating Macro Variables  \nStoring a value in a macro variable using SQL:  \nSELECT col-name-1 \u003C,...col-name-n> INTO:macrvar_ 1 \u003C,...macvar-n> FROM input-table;  \nStoring a list of values in a macro variable using SQL:  \nSELECT col-name-1 \u003C,...col-name-n> INTO:macrvar_ 1 SEPARATED BY‘delimiter’FROM input-table;  \nViewing the value of the macro variable in the SAS Log:%PUT &=macvar;  \nSubqueries  \nSELECT col-name,  \n(SELECT function(argument) FROM input-table)  \nFROM input-table;  \nSELECT col-name, \u003C,...col-name> FROM input-table  \nWHERE col-name  \n(SELECT function(argument) FROM input-table)  \nSet Operators  \nThe INTERSECT operator selects unique rows that are common to both tables.  \nA  \nB  \nSELECT \u003Clist>  \nFROM table-A INTERSECT SELECT \u003Clist>  \nFROM table-B;  \nThe EXCEPT operator selects unique rows from table A that are not found in table B.  \nA  \nB  \nSELECT \u003Clist>  \nFROM table-A EXCEPT SELECT \u003Clist>  \nFROM table-B;  \nThe UNION operator selects unique rows from both tables.  \nA  \nB  \nSELECT \u003Clist>  \nFROM table-A UNION SELECT \u003Clist>  \nFROM table-B;  \nThe OUTER UNION operator selects all rows from both tables.  \nSELECT \u003Clist>  \nFROM table-A OUTER UNION SELECT \u003Clist>  \nFROM table-B;  \nAccessin","cbCaivNjhCe3pVrs","https://ap.wps.com/l/cbCaivNjhCe3pVrs","pdf",1300822,6,"English","# Basic Queries\n# Managing Tables\n# Managing Views\n# Modifying Columns\n## Modifying Rows\n# Remerging Summary Statistics\n# Joins Summary\n# Creating Macro Variables\n# Subqueries\n# Set Operators\n# Accessing DBMS Data\n# SAS Macro Facility","[{\"question\":\"What is the execution order of clauses in PROC SQL?\",\"answer\":\"The tip sheet lists SQL Query Order of Execution as SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY.\"},{\"question\":\"How can you modify columns and filter calculated columns in SAS SQL?\",\"answer\":\"It shows using SELECT column expressions with LABEL= and FORMAT=, creating new columns with AS, and filtering new columns using WHERE CALCULATED new-col-name.\"},{\"question\":\"How do you connect to and query DBMS data using PROC SQL pass-through?\",\"answer\":\"It provides the PROC SQL pass-through pattern: CONNECT TO DBMS-name (options), run SELECT from CONNECTION TO DBMS-name|alias (dbms-query), then DISCONNECT and QUIT.\"}]","SQL Processing with SAS - Tip Sheet - Advanced Programming Using SAS 9.4 | PDF",1791935283]