{"id":19712,"date":"2025-08-29T09:51:38","date_gmt":"2025-08-29T04:21:38","guid":{"rendered":"https:\/\/vinish.dev\/?p=19712"},"modified":"2025-08-29T14:55:08","modified_gmt":"2025-08-29T09:25:08","slug":"select-oracle-23ai","status":"publish","type":"post","link":"https:\/\/vinish.dev\/select-oracle-23ai","title":{"rendered":"How to Use SELECT Queries in Oracle Database 23ai"},"content":{"rendered":"\n<p>Working with a database is all about getting useful information out of it. <a href=\"https:\/\/vinish.dev\/oracle-23ai-tutorials\">Oracle Database 23ai<\/a> gives you a powerful way to do this with the <strong>SELECT<\/strong> statement. This tutorial explains in detail how to write SELECT queries, step by step, in a way even a beginner can understand. You will also see how Oracle 23ai brings new features like JSON querying and vector search into SELECT statements, making data retrieval more intelligent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preparing Sample Data<\/h2>\n\n\n\n<p>Before we start writing queries, let us <a href=\"https:\/\/vinish.dev\/create-table-oracle-23ai\">create some tables<\/a> and <a href=\"https:\/\/vinish.dev\/insert-data-into-table-oracle-23ai\">insert data<\/a> so that the examples in this tutorial return real results.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-- Create employees table\nCREATE TABLE employees (\n  employee_id NUMBER PRIMARY KEY,\n  first_name VARCHAR2(50),\n  last_name VARCHAR2(50),\n  hire_date DATE,\n  salary NUMBER(10,2),\n  department_id NUMBER,\n  commission_pct NUMBER\n);\n\n-- Insert sample employees\nINSERT INTO employees VALUES (1, 'John', 'Smith', DATE '2020-01-15', 8000, 10, NULL);\nINSERT INTO employees VALUES (2, 'Alice', 'Johnson', DATE '2019-03-10', 12000, 20, 0.10);\nINSERT INTO employees VALUES (3, 'Michael', 'Brown', DATE '2021-06-20', 4500, 10, NULL);\nINSERT INTO employees VALUES (4, 'Sophia', 'Davis', DATE '2022-11-05', 6000, 30, 0.05);\nINSERT INTO employees VALUES (5, 'David', 'Wilson', DATE '2021-02-18', 9500, 20, NULL);\n\n-- Create departments table\nCREATE TABLE departments (\n  department_id NUMBER PRIMARY KEY,\n  department_name VARCHAR2(100)\n);\n\n-- Insert sample departments\nINSERT INTO departments VALUES (10, 'Sales');\nINSERT INTO departments VALUES (20, 'HR');\nINSERT INTO departments VALUES (30, 'IT');\n\nCOMMIT;\n<\/pre>\n\n\n\n<p>We now have an <strong>employees<\/strong> table with five rows and a <strong>departments<\/strong> table with three rows. These will be used throughout the tutorial.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Selecting All Columns<\/h2>\n\n\n\n<p>If you want to see everything from a table, use the asterisk symbol <code>*<\/code>. This returns all columns in the table.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT * \nFROM employees;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>EMPLOYEE_ID<\/th><th>FIRST_NAME<\/th><th>LAST_NAME<\/th><th>HIRE_DATE<\/th><th>SALARY<\/th><th>DEPARTMENT_ID<\/th><th>COMMISSION_PCT<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>John<\/td><td>Smith<\/td><td>15-JAN-20<\/td><td>8000<\/td><td>10<\/td><td>NULL<\/td><\/tr><tr><td>2<\/td><td>Alice<\/td><td>Johnson<\/td><td>10-MAR-19<\/td><td>12000<\/td><td>20<\/td><td>0.10<\/td><\/tr><tr><td>3<\/td><td>Michael<\/td><td>Brown<\/td><td>20-JUN-21<\/td><td>4500<\/td><td>10<\/td><td>NULL<\/td><\/tr><tr><td>4<\/td><td>Sophia<\/td><td>Davis<\/td><td>05-NOV-22<\/td><td>6000<\/td><td>30<\/td><td>0.05<\/td><\/tr><tr><td>5<\/td><td>David<\/td><td>Wilson<\/td><td>18-FEB-21<\/td><td>9500<\/td><td>20<\/td><td>NULL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Selecting Specific Columns<\/h2>\n\n\n\n<p>To view only chosen details, list the column names after SELECT.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, last_name, hire_date \nFROM employees;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>FIRST_NAME<\/th><th>LAST_NAME<\/th><th>HIRE_DATE<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>Smith<\/td><td>15-JAN-20<\/td><\/tr><tr><td>Alice<\/td><td>Johnson<\/td><td>10-MAR-19<\/td><\/tr><tr><td>Michael<\/td><td>Brown<\/td><td>20-JUN-21<\/td><\/tr><tr><td>Sophia<\/td><td>Davis<\/td><td>05-NOV-22<\/td><\/tr><tr><td>David<\/td><td>Wilson<\/td><td>18-FEB-21<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Using WHERE to Filter Data<\/h2>\n\n\n\n<p>The <code>WHERE<\/code> clause narrows down rows to those that meet a condition.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, last_name, salary \nFROM employees\nWHERE salary &gt; 5000;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>FIRST_NAME<\/th><th>LAST_NAME<\/th><th>SALARY<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>Smith<\/td><td>8000<\/td><\/tr><tr><td>Alice<\/td><td>Johnson<\/td><td>12000<\/td><\/tr><tr><td>Sophia<\/td><td>Davis<\/td><td>6000<\/td><\/tr><tr><td>David<\/td><td>Wilson<\/td><td>9500<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sorting Results with ORDER BY<\/h2>\n\n\n\n<p>The <code>ORDER BY<\/code> clause organizes results. You can sort in ascending (<code>ASC<\/code>, default) or descending (<code>DESC<\/code>) order.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, last_name, salary \nFROM employees\nORDER BY salary DESC;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>FIRST_NAME<\/th><th>LAST_NAME<\/th><th>SALARY<\/th><\/tr><\/thead><tbody><tr><td>Alice<\/td><td>Johnson<\/td><td>12000<\/td><\/tr><tr><td>David<\/td><td>Wilson<\/td><td>9500<\/td><\/tr><tr><td>John<\/td><td>Smith<\/td><td>8000<\/td><\/tr><tr><td>Sophia<\/td><td>Davis<\/td><td>6000<\/td><\/tr><tr><td>Michael<\/td><td>Brown<\/td><td>4500<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Using Aliases for Readability<\/h2>\n\n\n\n<p>Aliases rename columns or tables in the result for clarity.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name AS fname, last_name AS lname, salary AS monthly_pay\nFROM employees;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>FNAME<\/th><th>LNAME<\/th><th>MONTHLY_PAY<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>Smith<\/td><td>8000<\/td><\/tr><tr><td>Alice<\/td><td>Johnson<\/td><td>12000<\/td><\/tr><tr><td>Michael<\/td><td>Brown<\/td><td>4500<\/td><\/tr><tr><td>Sophia<\/td><td>Davis<\/td><td>6000<\/td><\/tr><tr><td>David<\/td><td>Wilson<\/td><td>9500<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Combining Conditions with AND and OR<\/h2>\n\n\n\n<p>Conditions can be combined to make queries more precise.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, department_id, salary\nFROM employees\nWHERE department_id = 10 AND salary &gt; 6000;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>FIRST_NAME<\/th><th>DEPARTMENT_ID<\/th><th>SALARY<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>10<\/td><td>8000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Aggregating Data with GROUP BY<\/h2>\n\n\n\n<p>The <code>GROUP BY<\/code> clause groups rows that have the same values and allows use of aggregate functions like <code>COUNT<\/code>, <code>SUM<\/code>, <code>AVG<\/code>, <code>MIN<\/code>, and <code>MAX<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT department_id, AVG(salary) AS avg_salary\nFROM employees\nGROUP BY department_id;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>DEPARTMENT_ID<\/th><th>AVG_SALARY<\/th><\/tr><\/thead><tbody><tr><td>10<\/td><td>6250<\/td><\/tr><tr><td>20<\/td><td>10750<\/td><\/tr><tr><td>30<\/td><td>6000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Filtering Groups with HAVING<\/h2>\n\n\n\n<p>When using <code>GROUP BY<\/code>, the <code>HAVING<\/code> clause filters results after aggregation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT department_id, COUNT(*) AS total_employees\nFROM employees\nGROUP BY department_id\nHAVING COUNT(*) &gt; 1;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>DEPARTMENT_ID<\/th><th>TOTAL_EMPLOYEES<\/th><\/tr><\/thead><tbody><tr><td>10<\/td><td>2<\/td><\/tr><tr><td>20<\/td><td>2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Joining Multiple Tables<\/h2>\n\n\n\n<p>SELECT queries often need data from more than one table. Joins combine rows from two or more tables using related columns.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT e.first_name, d.department_name\nFROM employees e\nJOIN departments d\nON e.department_id = d.department_id;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>FIRST_NAME<\/th><th>DEPARTMENT_NAME<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>Sales<\/td><\/tr><tr><td>Alice<\/td><td>HR<\/td><\/tr><tr><td>Michael<\/td><td>Sales<\/td><\/tr><tr><td>Sophia<\/td><td>IT<\/td><\/tr><tr><td>David<\/td><td>HR<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Subqueries in SELECT<\/h2>\n\n\n\n<p>A subquery is a query inside another query. It can provide data for filtering.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, last_name\nFROM employees\nWHERE salary &gt; (SELECT AVG(salary) FROM employees);\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>FIRST_NAME<\/th><th>LAST_NAME<\/th><\/tr><\/thead><tbody><tr><td>Alice<\/td><td>Johnson<\/td><\/tr><tr><td>David<\/td><td>Wilson<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SELECT with DISTINCT<\/h2>\n\n\n\n<p><code>DISTINCT<\/code> removes duplicates from results.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT DISTINCT department_id\nFROM employees;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>DEPARTMENT_ID<\/th><\/tr><\/thead><tbody><tr><td>10<\/td><\/tr><tr><td>20<\/td><\/tr><tr><td>30<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SELECT and NULL Handling<\/h2>\n\n\n\n<p>NULL represents missing or unknown values. To check for NULL, use <code>IS NULL<\/code> or <code>IS NOT NULL<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, commission_pct\nFROM employees\nWHERE commission_pct IS NULL;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>FIRST_NAME<\/th><th>COMMISSION_PCT<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>NULL<\/td><\/tr><tr><td>Michael<\/td><td>NULL<\/td><\/tr><tr><td>David<\/td><td>NULL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Limiting Results with FETCH<\/h2>\n\n\n\n<p>Oracle allows limiting rows with <code>FETCH FIRST<\/code> syntax.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, last_name, salary\nFROM employees\nORDER BY salary DESC\nFETCH FIRST 3 ROWS ONLY;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>FIRST_NAME<\/th><th>LAST_NAME<\/th><th>SALARY<\/th><\/tr><\/thead><tbody><tr><td>Alice<\/td><td>Johnson<\/td><td>12000<\/td><\/tr><tr><td>David<\/td><td>Wilson<\/td><td>9500<\/td><\/tr><tr><td>John<\/td><td>Smith<\/td><td>8000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Using SELECT for JSON Data in Oracle 23ai<\/h2>\n\n\n\n<p>Oracle 23ai enhances working with JSON directly inside tables. Suppose you store product details in a JSON column:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CREATE TABLE products (\n  product_id NUMBER PRIMARY KEY,\n  product_data JSON\n);\n\nINSERT INTO products VALUES (\n  1,\n  '{\"name\":\"Laptop\",\"specs\":{\"cpu\":\"Intel i7\",\"ram\":\"16GB\"}}'\n);\n\nINSERT INTO products VALUES (\n  2,\n  '{\"name\":\"Phone\",\"specs\":{\"cpu\":\"Snapdragon\",\"ram\":\"8GB\"}}'\n);\n<\/pre>\n\n\n\n<p>You can query JSON with simple operators:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT<br>  JSON_VALUE(product_data, '$.name')         AS product_name,<br>  JSON_VALUE(product_data, '$.specs.cpu')    AS cpu_type<br>FROM products;<br><\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>PRODUCT_NAME<\/th><th>CPU_TYPE<\/th><\/tr><\/thead><tbody><tr><td>Laptop<\/td><td>Intel i7<\/td><\/tr><tr><td>Phone<\/td><td>Snapdragon<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SELECT with Vector Search in Oracle 23ai<\/h2>\n\n\n\n<p>Oracle 23ai introduces <strong>vector data types<\/strong> for AI-powered search. This is useful when finding similar items based on embeddings.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-- Create table with VECTOR column<br>CREATE TABLE documents (<br>  doc_id     NUMBER PRIMARY KEY,<br>  content    CLOB,<br>  embedding  VECTOR(3)<br>);<br><br>-- Insert multiple rows using MULTIVALUE INSERT (Oracle 23ai feature)<br>INSERT INTO documents (doc_id, content, embedding)<br>VALUES <br>  (1, 'Oracle Database 23ai introduces AI features', TO_VECTOR('[0.1, 0.8, 0.5]')),<br>  (2, 'Learn how to run SQL queries effectively', TO_VECTOR('[0.2, 0.7, 0.6]'));<br><br>COMMIT;<br><\/pre>\n\n\n\n<p>Now you can run a similarity search:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT doc_id, content,<br>       VECTOR_DISTANCE(embedding, TO_VECTOR('[0.1, 0.75, 0.55]')) AS similarity<br>FROM documents<br>ORDER BY similarity ASC<br>FETCH FIRST 2 ROWS ONLY;<br><\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"917\" height=\"639\" src=\"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/vector-result.png\" alt=\"Oracle 23ai Select query result for vector.\" class=\"wp-image-19714\" srcset=\"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/vector-result.png 917w, https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/vector-result-300x209.png 300w, https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/vector-result-768x535.png 768w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SELECT with Analytical Functions<\/h2>\n\n\n\n<p>Analytical functions let you perform calculations across sets of rows while still showing detailed data.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, salary,\n       RANK() OVER (ORDER BY salary DESC) AS rank_position\nFROM employees;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>FIRST_NAME<\/th><th>SALARY<\/th><th>RANK_POSITION<\/th><\/tr><\/thead><tbody><tr><td>Alice<\/td><td>12000<\/td><td>1<\/td><\/tr><tr><td>David<\/td><td>9500<\/td><td>2<\/td><\/tr><tr><td>John<\/td><td>8000<\/td><td>3<\/td><\/tr><tr><td>Sophia<\/td><td>6000<\/td><td>4<\/td><\/tr><tr><td>Michael<\/td><td>4500<\/td><td>5<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SELECT with CASE Expressions<\/h2>\n\n\n\n<p>CASE provides conditional logic inside SELECT.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT first_name, salary,\n       CASE \n         WHEN salary &gt; 10000 THEN 'High'\n         WHEN salary BETWEEN 5000 AND 10000 THEN 'Medium'\n         ELSE 'Low'\n       END AS salary_category\nFROM employees;\n<\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>FIRST_NAME<\/th><th>SALARY<\/th><th>SALARY_CATEGORY<\/th><\/tr><\/thead><tbody><tr><td>John<\/td><td>8000<\/td><td>Medium<\/td><\/tr><tr><td>Alice<\/td><td>12000<\/td><td>High<\/td><\/tr><tr><td>Michael<\/td><td>4500<\/td><td>Low<\/td><\/tr><tr><td>Sophia<\/td><td>6000<\/td><td>Medium<\/td><\/tr><tr><td>David<\/td><td>9500<\/td><td>Medium<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The SELECT statement in Oracle Database 23ai remains the most important tool for extracting meaningful information. From simple column retrieval to advanced AI-driven queries with JSON and vector data, SELECT adapts to both traditional business needs and modern AI-powered applications. With these skills, you can analyze data faster, design smarter queries, and take full advantage of the innovations in Oracle 23ai.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><em>Note: All the SQL examples provided in this tutorial were tested and verified on <strong>Oracle Database 23ai<\/strong> using <strong>Oracle SQL Developer version 24<\/strong>.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">See also:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/vinish.dev\/install-oracle-database-23ai-windows\">How to Install Oracle Database 23ai on Windows<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vinish.dev\/oracle-sql-developer-install-windows\">Installing Oracle SQL Developer on Windows<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Working with a database is all about getting useful information out of it. Oracle Database 23ai gives you a powerful way to do this with the SELECT statement. This tutorial explains in detail how to write SELECT queries, step by step, in a way even a beginner can understand. You will also see how Oracle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19715,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1819,1807],"tags":[],"class_list":["post-19712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oracle-23ai","category-oracle-sql"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Use SELECT Queries in Oracle 23ai &#8226; Vinish.Dev<\/title>\n<meta name=\"description\" content=\"Learn how to use SELECT queries in Oracle Database 23ai with examples, including JSON and vector search features.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vinish.dev\/select-oracle-23ai\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use SELECT Queries in Oracle 23ai &#8226; Vinish.Dev\" \/>\n<meta property=\"og:description\" content=\"Learn how to use SELECT queries in Oracle Database 23ai with examples, including JSON and vector search features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vinish.dev\/select-oracle-23ai\" \/>\n<meta property=\"og:site_name\" content=\"Vinish.Dev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/foxinfotech2014\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-29T04:21:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-29T09:25:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/select-query-23ai.png\" \/>\n\t<meta property=\"og:image:width\" content=\"921\" \/>\n\t<meta property=\"og:image:height\" content=\"643\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vinish Kapoor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/x.com\/vinish_kapoor\" \/>\n<meta name=\"twitter:site\" content=\"@foxinfotech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vinish Kapoor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai\"},\"author\":{\"name\":\"Vinish Kapoor\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/a7790479716d2a54131ca873f8483d3f\"},\"headline\":\"How to Use SELECT Queries in Oracle Database 23ai\",\"datePublished\":\"2025-08-29T04:21:38+00:00\",\"dateModified\":\"2025-08-29T09:25:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai\"},\"wordCount\":738,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/df5e5ca816f6f4302efc03cf58dc97b4\"},\"image\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/select-query-23ai.png\",\"articleSection\":[\"Oracle Database 23ai\",\"Oracle SQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai\",\"url\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai\",\"name\":\"How to Use SELECT Queries in Oracle 23ai &#8226; Vinish.Dev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/select-query-23ai.png\",\"datePublished\":\"2025-08-29T04:21:38+00:00\",\"dateModified\":\"2025-08-29T09:25:08+00:00\",\"description\":\"Learn how to use SELECT queries in Oracle Database 23ai with examples, including JSON and vector search features.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#primaryimage\",\"url\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/select-query-23ai.png\",\"contentUrl\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/select-query-23ai.png\",\"width\":921,\"height\":643,\"caption\":\"SELECT Statements in Oracle Database 23ai\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/select-oracle-23ai#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vinish.dev\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle Database 23ai\",\"item\":\"https:\\\/\\\/vinish.dev\\\/category\\\/oracle-23ai\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use SELECT Queries in Oracle Database 23ai\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/#website\",\"url\":\"https:\\\/\\\/vinish.dev\\\/\",\"name\":\"Vinish.Dev\",\"description\":\"Vinish Kapoor&#039;s Blog: Best Oracle Blog for Developers\",\"publisher\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/df5e5ca816f6f4302efc03cf58dc97b4\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vinish.dev\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/df5e5ca816f6f4302efc03cf58dc97b4\",\"name\":\"Vinish Kapoor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\",\"url\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\",\"contentUrl\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\",\"width\":192,\"height\":192,\"caption\":\"Vinish Kapoor\"},\"logo\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\"},\"description\":\"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.\",\"sameAs\":[\"https:\\\/\\\/vinish.dev\\\/\",\"https:\\\/\\\/www.facebook.com\\\/foxinfotech2014\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vinish-kapoor\\\/\",\"https:\\\/\\\/x.com\\\/foxinfotech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/a7790479716d2a54131ca873f8483d3f\",\"name\":\"Vinish Kapoor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g\",\"caption\":\"Vinish Kapoor\"},\"description\":\"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.\",\"sameAs\":[\"https:\\\/\\\/vinish.dev\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vinish-kapoor\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/x.com\\\/vinish_kapoor\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use SELECT Queries in Oracle 23ai &#8226; Vinish.Dev","description":"Learn how to use SELECT queries in Oracle Database 23ai with examples, including JSON and vector search features.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vinish.dev\/select-oracle-23ai","og_locale":"en_US","og_type":"article","og_title":"How to Use SELECT Queries in Oracle 23ai &#8226; Vinish.Dev","og_description":"Learn how to use SELECT queries in Oracle Database 23ai with examples, including JSON and vector search features.","og_url":"https:\/\/vinish.dev\/select-oracle-23ai","og_site_name":"Vinish.Dev","article_publisher":"https:\/\/www.facebook.com\/foxinfotech2014","article_published_time":"2025-08-29T04:21:38+00:00","article_modified_time":"2025-08-29T09:25:08+00:00","og_image":[{"width":921,"height":643,"url":"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/select-query-23ai.png","type":"image\/png"}],"author":"Vinish Kapoor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/x.com\/vinish_kapoor","twitter_site":"@foxinfotech","twitter_misc":{"Written by":"Vinish Kapoor","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vinish.dev\/select-oracle-23ai#article","isPartOf":{"@id":"https:\/\/vinish.dev\/select-oracle-23ai"},"author":{"name":"Vinish Kapoor","@id":"https:\/\/vinish.dev\/#\/schema\/person\/a7790479716d2a54131ca873f8483d3f"},"headline":"How to Use SELECT Queries in Oracle Database 23ai","datePublished":"2025-08-29T04:21:38+00:00","dateModified":"2025-08-29T09:25:08+00:00","mainEntityOfPage":{"@id":"https:\/\/vinish.dev\/select-oracle-23ai"},"wordCount":738,"commentCount":0,"publisher":{"@id":"https:\/\/vinish.dev\/#\/schema\/person\/df5e5ca816f6f4302efc03cf58dc97b4"},"image":{"@id":"https:\/\/vinish.dev\/select-oracle-23ai#primaryimage"},"thumbnailUrl":"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/select-query-23ai.png","articleSection":["Oracle Database 23ai","Oracle SQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vinish.dev\/select-oracle-23ai#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vinish.dev\/select-oracle-23ai","url":"https:\/\/vinish.dev\/select-oracle-23ai","name":"How to Use SELECT Queries in Oracle 23ai &#8226; Vinish.Dev","isPartOf":{"@id":"https:\/\/vinish.dev\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vinish.dev\/select-oracle-23ai#primaryimage"},"image":{"@id":"https:\/\/vinish.dev\/select-oracle-23ai#primaryimage"},"thumbnailUrl":"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/select-query-23ai.png","datePublished":"2025-08-29T04:21:38+00:00","dateModified":"2025-08-29T09:25:08+00:00","description":"Learn how to use SELECT queries in Oracle Database 23ai with examples, including JSON and vector search features.","breadcrumb":{"@id":"https:\/\/vinish.dev\/select-oracle-23ai#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vinish.dev\/select-oracle-23ai"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vinish.dev\/select-oracle-23ai#primaryimage","url":"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/select-query-23ai.png","contentUrl":"https:\/\/vinish.dev\/wp-content\/uploads\/2025\/08\/select-query-23ai.png","width":921,"height":643,"caption":"SELECT Statements in Oracle Database 23ai"},{"@type":"BreadcrumbList","@id":"https:\/\/vinish.dev\/select-oracle-23ai#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vinish.dev\/"},{"@type":"ListItem","position":2,"name":"Oracle Database 23ai","item":"https:\/\/vinish.dev\/category\/oracle-23ai"},{"@type":"ListItem","position":3,"name":"How to Use SELECT Queries in Oracle Database 23ai"}]},{"@type":"WebSite","@id":"https:\/\/vinish.dev\/#website","url":"https:\/\/vinish.dev\/","name":"Vinish.Dev","description":"Vinish Kapoor&#039;s Blog: Best Oracle Blog for Developers","publisher":{"@id":"https:\/\/vinish.dev\/#\/schema\/person\/df5e5ca816f6f4302efc03cf58dc97b4"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vinish.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/vinish.dev\/#\/schema\/person\/df5e5ca816f6f4302efc03cf58dc97b4","name":"Vinish Kapoor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png","url":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png","contentUrl":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png","width":192,"height":192,"caption":"Vinish Kapoor"},"logo":{"@id":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png"},"description":"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.","sameAs":["https:\/\/vinish.dev\/","https:\/\/www.facebook.com\/foxinfotech2014","https:\/\/www.linkedin.com\/in\/vinish-kapoor\/","https:\/\/x.com\/foxinfotech"]},{"@type":"Person","@id":"https:\/\/vinish.dev\/#\/schema\/person\/a7790479716d2a54131ca873f8483d3f","name":"Vinish Kapoor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g","caption":"Vinish Kapoor"},"description":"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.","sameAs":["https:\/\/vinish.dev\/","https:\/\/www.linkedin.com\/in\/vinish-kapoor\/","https:\/\/x.com\/https:\/\/x.com\/vinish_kapoor"]}]}},"_links":{"self":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts\/19712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/comments?post=19712"}],"version-history":[{"count":4,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts\/19712\/revisions"}],"predecessor-version":[{"id":19718,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts\/19712\/revisions\/19718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/media\/19715"}],"wp:attachment":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/media?parent=19712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/categories?post=19712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/tags?post=19712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}