Study Note/SQL
Understanding database and SQL
jhleeatl
2024. 3. 19. 22:02
What is SQL and database
SQL stands for Structured Query Language, a standardized programming language used to manage data in relational database management systems (RDBMS). A database is an organized collection of data stored electronically, designed to efficiently manage and retrieve data for applications and users.
I learned about handling tables, which gather data, and the way columns, which are the internal classifications, are dealt with.
I covered querying, sorting, renaming attributes (columns), and proposed ways to utilize them.
As an example,
select * or select 'column' --This is the line to select the column in the data
from 'Name of table'
where 'column' = (Indexing specified data values) (range and filter <, >, <=, >=, <>)
Practice exercise: Filtering data with multiple conditions
Retrieve records from the food_orders table where the cuisine is Korean and the price is 30,000 won or more.
SELECT *
FROM food_orders fo
WHERE cuisine_type='Korean'
and price>=30000
Question:
Would it be possible to use a formula on a created column?
+Yes it is possible to use newly created column by using Subquery