Website logo
⌘K
🏠Homepage
👋Introduction
Key Concepts & Architecture
🚀Run Oxla in 2 minutes
🏃‍♂️Run Oxla on S3
🛫Multi-node Deployment
👨‍💻SQL Reference
SQL Queries
SQL Clauses
SQL Data Types
SQL Functions
Schema
Comment Support
⛓️SQL Mutations
DELETE
UPDATE
🚨Error Handling
🆚Differences Between Oxla vs. PostgreSQL
🔄Understanding Transactions
📈Public Metrics
⚙️Oxla Configuration File
✨Changelog
Docs powered by Archbee
SQL Reference

SQL Queries

3min

What is a Query? 🤨

A query is an action/request for data from a database.

The request should come from a table or a combination of tables using a code known as the query. The system will understand and process the request accordingly, whether to extract data from multiple tables, insert data, or display data in the form of the table itself.

How does a Query work? 🧐

Let’s say that you want to order a cake at a bakery. You request by saying, “Can I have a chocolate cake with a happy birthday wish on top of it?” The baker will understand what you want and give you the cake with a wish on top as requested.

A query works the same way – it adds meaning to the code to understand and perform an action accordingly.

A database can store data in multiple tables. Tables consist of columns that store the data’s attributes and rows or records of data. A query helps to retrieve data from different tables, organize them, and display them according to the commands.



The following articles will explain the queries that we support, with examples:

<style>

  .buttons-sql a{
    display: flex;
    margin: 1rem;
  }

  .buttons-sql {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }


  .button-6 {
  padding: 15px;
  white-space: normal;
  background-color: #20bdff;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.25;
  height: 70px;
  max-width: 150px;
  text-decoration: none;
  transition: all 250ms;
}

.button-6:hover,
.button-6:focus {
  background-color: #351ad2;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.button-6:hover {
  transform: translateY(-1px);
}

.button-6:active {
  background-color: #351ad2;
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  transform: translateY(0);
}

@media (max-width: 600px) {
    .buttons-sql {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

    .button-6 {
      width: 200px;
      text-align: center;
      margin: 1rem;
    }
  }



</style>
<div class="buttons-sql">
    <a href="https://docs.oxla.com/create-table-statement">
        <button class="button-6">
        CREATE TABLE statement
        </button>
    </a>
    <a href="https://docs.oxla.com/create-index-statement">
        <button class="button-6">
        CREATE INDEX statement
        </button>
    </a>
   <a href="https://docs.oxla.com/drop-statement">
        <button class="button-6">
        DROP statement
        </button>
    </a>
    <a href="https://docs.oxla.com/select-statement">
        <button class="button-6">
        SELECT statement
        </button>
  </a>
  <a href="https://docs.oxla.com/show-tables-statement">
        <button class="button-6">
        SHOW TABLES statement
        </button>
    </a>
    <a href="https://docs.oxla.com/describe-statement">
        <button class="button-6">
        DESCRIBE statement
        </button>
    </a>
    <a href="https://docs.oxla.com/show-nodes-statement">
        <button class="button-6">
        SHOW NODES statement
        </button>
    </a>
    <a href="https://docs.oxla.com/copy-from">
        <button class="button-6">
        COPY FROM statement
        </button>
    </a>
</div>


Updated 30 Nov 2023
Did this page help you?
PREVIOUS
SQL Reference
NEXT
SQL TABLE
Docs powered by Archbee
TABLE OF CONTENTS
What is a Query? 🤨
How does a Query work? 🧐
Docs powered by Archbee

©2023 Oxla