Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- __init__
- train/test
- polynomial regression
- PROJECT
- start exercise
- error
- self parameter
- Github
- line color
- AS
- line width
- variables
- matplotlib
- pie charts
- break
- Else
- machine learning
- Text Analytics
- PANDAS
- Python
- iterates
- data distribution
- Text mining
- Default X points
- multiple lines
- matplotlib.pyplot
- MySQL
- SQL
- continue
- For loops
Archives
- Today
- Total
Data Science Explorer
[Basic Grammar] SQL SELECT Statement 본문
반응형
SELECT statement is used to select data from a database.
Example
SELECT CustomerName, City FROM Customers;
- Syntax
SELECT column1, column2, ...
FROM table_name;
- Select all columns
Example
SELECT * FROM Customers;
Let's solve the following exercises together.
Exercises
- Write an SQL query to retrieve all the records from a table named "Employees."
- SELECT * FROM Employees;
- Create an SQL query to fetch the titles and publication dates of all books from a table named "Books."
- SELECT title, publication_date FROM Books;
- Write an SQL query to retrieve the product IDs and names of all products from a table named "Products."
- SELECT product_id, product_name FROM Products;
'SQL' 카테고리의 다른 글
[Basic Grammar] SQL ORDER BY (0) | 2023.10.12 |
---|---|
[Basic Grammar] SQL WHERE Clause (0) | 2023.10.12 |
SQL Code Analysis (0) | 2023.10.11 |
SQL Code Analysis (0) | 2023.10.10 |
SQL Code Analysis (0) | 2023.10.10 |