https://www.linkedin.com/in/danielown/
SQL
Structured Query Language
• Mengakses
• Mengubah
• Memanipulasi
DATABAS
E
RDBMS (Relational Data Base Management System)
SQL Command
• Create • Insert
• Alter • Select
• Drop • Update
• Delete
Query Best Practice
Format penulisan query yang baik dengan tujuan memudahkan pembaca untuk dimengerti :
1. Konsistensi Penulisan Query
2. Menggunakan UPPER CASE terhadap query Syntax
3. Membuat baris baru terhadap Major Syntax :
• SELECT
• FROM
• WHERE
• GROUP BY
• ORDER BY
• LIMIT
Query Best Practice
1. Nama Table
2. Nama Kolom
3. Sub-query
Tujuan Menggunakan Alias
The WHERE clause can be combined with AND, OR, and NOT operators.
The AND and OR operators are used to filter records based on more than one condition:
● The AND operator displays a record if all the conditions separated by AND are TRUE.
● The OR operator displays a record if any of the conditions separated by OR is TRUE.
The NOT operator displays a record if the condition(s) is NOT TRUE.
HTTPS://WWW.W3SCHOOLS.COM/SQL/SQL_SELECT.ASP