website logo
⌘K
🏠Homepage
👋Introduction
Key Concepts & Architecture
🚀Getting Started
👨‍💻SQL Reference
SQL Queries
SQL Clauses
SQL Data Types
SQL Functions
Schema
🚨Error Handling
🆚Differences Between Oxla vs. PostgreSQL
Docs powered by archbee 

SQL Queries

4min

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/copy-from">
        <button class="button-6">
        COPY FROM statement
        </button>
    </a>
</div>


Updated 11 May 2023
Did this page help you?
Yes
No
PREVIOUS
SQL Reference
NEXT
SQL TABLE
Docs powered by archbee 
TABLE OF CONTENTS
What is a Query? 🤨
How does a Query work? 🧐

Dedicated to data analytics that provides 10x faster execution of analytical queries than current state of the art solutions. We are launching SOON! Join the waiting list for more info.




©2022 Oxla