Professional Documents
Culture Documents
Here's an example of
a basic SELECT query:
sqlCopy code
SELECT: This keyword specifies the columns you want to retrieve from the table.
column1, column2, ...: Specify the columns you want to select. You can use * to select all
columns.
FROM: This keyword specifies the table from which you want to retrieve the data.
table_name: Replace this with the name of the table you want to query.
WHERE: This keyword is optional and is used to specify conditions for filtering the data.
condition: Replace this with the specific condition(s) you want to apply to filter the data.
Here's an example that selects all columns from a table called "employees" where the "salary" column is
greater than 5000:
sqlCopy code
Remember to replace "employees" with the actual name of your table and adjust the condition based
on your requirements.