Selecting Data in SQL
To retrieve data from a table, we use the SELECT statement. Here's an example:
sql
SELECT name, department
FROM employees
WHERE age > 30;
In this example, we're selecting the name and department columns from the "employees" table where the age is greater than 30.
No comments:
Post a Comment