[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-692254-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-692254-en":130,"doc-similar-692254":174},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","oraclesql-tutorial-1","Oracle/SQL Tutorial 1","","Oracle/SQL Tutorial 1 provides an introductory foundation for SQL and the Oracle relational database management system. It introduces relational concepts such as tables, rows (tuples), and columns (attributes), then explains table structure, schema, and the role of data types. The tutorial covers practical Oracle data types like CHAR, VARCHAR2, NUMBER, DATE, and LONG, including limits, padding/storage behavior, and the handling of NULL values. It also outlines subsequent topics through a detailed contents overview.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/oraclesql-tutorial-1/692254/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/oraclesql-tutorial-1/692254.png","ImageObject",300,407,{"name":42,"@type":43},"jayni","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-12","2026-11-09",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What are the basic relational concepts used in this tutorial?","Question",{"text":62,"@type":63},"The tutorial explains that data is represented with tables, and that queries against a database also return a table. It uses table, row, and column terms to correspond to relation, tuple, and attribute.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the tutorial define the structure of a table?",{"text":67,"@type":63},"A table is uniquely identified by its name and is described by its columns’ attributes and data types. The schema (relation schema) is defined by these attributes at creation time.",{"name":69,"@type":60,"acceptedAnswer":70},"What Oracle data types are introduced, and what is their key difference?",{"text":71,"@type":63},"It introduces CHAR(n) as fixed-length padded strings, VARCHAR2(n) as variable-length strings, NUMBER(o;d) for numeric values with digit controls, DATE for date and time values, and LONG for large character data with one LONG column per table.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},692254,1794187824,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":105,"preview_urls":145},3985747859343,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Oracle/SQL Tutorial 1  \nMichael Gertz  \nDatabase and Information Systems Group Department of Computer Science  \nUniversity of California, Davis  \n[gertz@cs.ucdavis.edu](gertz@cs.ucdavis.edu)  \n[http://www. db. cs. ucdavis. edu](http://www. db. cs. ucdavis. edu)  \nThis Oracle/SQL tutorial provides a detailed introduction to the SQL query language and the Oracle Relational Database Management System. Further information about Oracle and SQL can be found on the web site [www. db. cs. ucdavis. edu/dbs](www. db. cs. ucdavis. edu/dbs).  \nComments, corrections, or additions to these notes are welcome. Many thanks to Christina Chung for comments on the previous version.  \nRecommended Literature  \nGeorge Koch and Kevin Loney: Oracle8 The Complete Reference (The Single Most Comprehensive Sourcebook for Oracle Server, Includes CD with electronic version of the book), 1299 pages, McGraw-Hill/Osborne, 1997 .  \nMichael Abbey and Michael Corey: Oracle8 : A Beginner's Guide [A Thorough Introduction for First-time Users], 767 pages, McGraw-Hill/Osborne, 1997 .  \nSteven Feuerstein, Bill Pribyl, Debby Russell: Oracle PL/SQL Programming (2nd Edition), O'Reilly & Associates, 1028 pages, 1997 .  \nC.J. Date and Hugh Darwen: A Guide to the SQL Standard (4th Edition), Addison-Wesley, 1997.  \nJim Melton and Alan R. Simon: Understanding the New SQL: A Complete Guide (2nd Edition, Dec 2000), The Morgan Kaufmann Series in Data Management Systems, 2000 .  \n1 revised Version 1 .01, January 2000, Michael Gertz, Copyright 2000 .  \nContents  \n1. SQL { Structured Query Language  \n1.1. Tables 1  \n1.2. Queries (Part I) 3  \n1.3. Data De􀀌nition in SQL 6  \n1.4. Data Modi􀀌cations in SQL 9  \n1.5. Queries (Part II) 11  \n1.6. Views 19  \n2. SQL*Plus (Minimal User Guide, Editor Commands, Help System) 20  \n3. Oracle Data Dictionary 23  \n4. Application Programming  \n4.1. PL/SQL  \n4.1.1 Introduction 26  \n4.1.2 Structure of PL/SQL Blocks 27  \n4.1.3 Declarations 27  \n4.1.4 Language Elements 28  \n4.1.5 Exception Handling 32  \n4.1.6 Procedures and Functions 34  \n4.1.7 Packages 36  \n4.1.8 Programming in PL/SQL 38  \n4.2. Embedded SQL and Pro*C 39  \n5. Integrity Constraints and Triggers  \n5.1. Integrity Constraints  \n5.1.1 Check Constraints 46  \n5.1.2 Foreign Key Constraints 47  \n5.1.3 More About Column-and Table Constraints 49  \n5.2. Triggers  \n5.2.1 Overview 50  \n5.2.2 Structure of Triggers 50  \n5.2.3 Example Triggers 53  \n5.2.4 Programming Triggers 55  \n6. System Architecture  \n6.1. Storage Management and Processes 58  \n6.2. Logical Database Structures 60  \n6.3. Physical Database Structures 61  \n6.4. Steps in Processing an SQL Statement 63  \n6.5. Creating Database Objects 63  \n1 SQL { Structured Query Language  \n1.1 Tables  \nIn relational database systems (DBS) data are represented using tables (relations) . A query issued against the DBS also results in a table. A table has the following structure:  \n\n| Column 1 | Column 2 | . . . | Column n |\n| --- | --- | --- | --- |\n|  |  |  |  |\n|  |  |  |  |\n|  |  |  |  |\n| . . . | . . . | . . . | . . . |\n\n􀀀 Tuple (or Record)  \nA table is uniquely identi􀀌ed by its name and consists of rows that contain the stored information, each row containing exactly one tuple (or record) . A table can have one or more columns. A column is made up of a column name and a data type, and it describes an attribute of the tuples. The structure of a table, also called relation schema, thus is de􀀌ned by its attributes. The type of information to be stored in a table is de􀀌ned by the data types of the attributes at table creation time.  \nSQL uses the terms table, row, and column for relation, tuple, and attribute, respectively. In this tutorial we will use the terms interchangeably.  \nA table can have up to 254 columns which may have di􀀋erent or same data types and sets of values (domains), respectively. Possible domains are alphanumeric data (strings), numbers and date formats. Oracle o􀀋ers the following basic data types:  \n􀀏 char (n): Fixed-length character d","cbCaipAkYZUrZdPr","https://ap.wps.com/l/cbCaipAkYZUrZdPr","pdf",329233,66,"English","# Contents\n## SQL - Structured Query Language\n## SQL*Plus (Minimal User Guide, Editor Commands, Help System)\n## Oracle Data Dictionary\n## Application Programming\n## Integrity Constraints and Triggers\n## System Architecture","[{\"question\":\"What are the basic relational concepts used in this tutorial?\",\"answer\":\"The tutorial explains that data is represented with tables, and that queries against a database also return a table. It uses table, row, and column terms to correspond to relation, tuple, and attribute.\"},{\"question\":\"How does the tutorial define the structure of a table?\",\"answer\":\"A table is uniquely identified by its name and is described by its columns’ attributes and data types. The schema (relation schema) is defined by these attributes at creation time.\"},{\"question\":\"What Oracle data types are introduced, and what is their key difference?\",\"answer\":\"It introduces CHAR(n) as fixed-length padded strings, VARCHAR2(n) as variable-length strings, NUMBER(o;d) for numeric values with digit controls, DATE for date and time values, and LONG for large character data with one LONG column per table.\"}]","Oracle/SQL Tutorial 1 | PDF",166,[146,150,154,158,162,166,170],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/bfe152d2432bf780962359e01285fa37.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/589732dfb411981cce76c0baf0eba86a.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/25ee5b66c4b554b5922bb5d4c8ebe51c.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e603492cba8c3d70502785bdba5ffe32.webp",980,1268,{"page_no":96,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3c77aa5d1afbac4d50d15bffcae582ca.webp",979,1267,{"page_no":101,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3e26ab4adab5e87a1b57e82946b9ba60.webp",978,1265,{"page_no":105,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/fc4d407c7631082aeeb270f91c1c1a9f.webp",977,1264,{"list":175,"token":11},[176,182,188,194,200,206,212,218,225,231],{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":33,"category_name":29,"create_tm":181},692258,"SQL - Quick Guide - SQL Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003050421/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Kk1SyLS2ALCaqDOEF%2B9o2%2BEQy7k%3D","sql-quick-guide-sql-basics",1794187831,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":110,"category_name":29,"create_tm":187},656142,"01-HoffmanSQL - Introduction to Structured Query Language - Version 4.66","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785935/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=37RUz9IitVSZb7IMQjMCnb%2BuYx4%3D","01-hoffmansql-introduction-to-structured-query-language-version-466",1792966698,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":33,"category_name":29,"create_tm":193},692256,"Cancer Analysis System (CAS) Guidance - Getting started with SQL and extracting data","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003050380/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=vm7%2B%2FOb0q7u48iod13yroQxHK7E%3D","cancer-analysis-system-cas-guidance-getting-started-with-sql-and-extracting-data",1794187826,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":115,"category_name":29,"create_tm":199},656114,"Chapter 1 - SQL and Data - Chapter Objectives and Lab 1.1 Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300708/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=GbfZ4T7a%2B9lG21nGTRWxdtYDlHw%3D","chapter-1-sql-and-data-chapter-objectives-and-lab-11-overview",1792966468,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":115,"category_name":29,"create_tm":205},656115,"ORACLE SQL DEVELOPER DATA MODELER - Key Features and Benefits","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300707/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=zUCDKQcuaa8STiuCAU%2F6FcWVF%2Bk%3D","oracle-sql-developer-data-modeler-key-features-and-benefits",1792966469,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":101,"category_name":29,"create_tm":211},678105,"Generating database schema from requirement specification based on natural language processing and large language model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994799695/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Wqx6eKlp457kCRo5n7Fzuc2cCaI%3D","generating-database-schema-from-requirement-specification-based-on-natural-language-processing-and-large-language-model",1793784439,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":123,"category_name":29,"create_tm":217},656139,"3 Most Frequently Asked SQL Join Interview Questions - SQL JOIN","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785903/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=73mRWYVf1BuYadvcX%2BUeOBRy5z8%3D","3-most-frequently-asked-sql-join-interview-questions-sql-join",1792966691,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":29,"create_tm":224},656122,"Translating Entity-Relationship to Relational Tables - Fall 2026 - David Toman","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=EA16KgsRRqSbjBRxnEZgX3tp2GE%3D","translating-entity-relationship-to-relational-tables-fall-2026-david-toman",11,1792966526,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":33,"category_name":29,"create_tm":230},693583,"An Introduction to SQL in SAS®","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005517124/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=ZzzVQkzgF9YSEltWubZzD0sCvPQ%3D","an-introduction-to-sql-in-sas",1794290693,{"doc_id":232,"doc_title":233,"file_type":137,"home_preview_img_url":234,"slug":235,"view_count":110,"category_name":29,"create_tm":236},656141,"A Visual Introductionto SQL - by J. Harvey Trimble Jr. and David Chappell","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785931/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=k0IwiId127jwAZjHA65YaO0FDl0%3D","a-visual-introductionto-sql-by-j-harvey-trimble-jr-and-david-chappell",1792966697]