<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=SQL_Overview_%28en%29</id>
	<title>SQL Overview (en) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=SQL_Overview_%28en%29"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=SQL_Overview_(en)&amp;action=history"/>
	<updated>2026-04-20T11:59:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=SQL_Overview_(en)&amp;diff=71824&amp;oldid=prev</id>
		<title>Unknown user at 22:54, 2 February 2025</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=SQL_Overview_(en)&amp;diff=71824&amp;oldid=prev"/>
		<updated>2025-02-02T22:54:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:54, 2 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Sure! Here&#039;s the translation into English while retaining the wiki format:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;SQL (Structured Query Language)&amp;#039;&amp;#039;&amp;#039; is the standard language used for managing and manipulating data in relational databases. A relational database itself is a system for organizing data in the form of interconnected tables.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;SQL (Structured Query Language)&amp;#039;&amp;#039;&amp;#039; is the standard language used for managing and manipulating data in relational databases. A relational database itself is a system for organizing data in the form of interconnected tables.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=SQL_Overview_(en)&amp;diff=71000&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;Sure! Here&#039;s the translation into English while retaining the wiki format:  &#039;&#039;&#039;SQL (Structured Query Language)&#039;&#039;&#039; is the standard language used for managing and manipulating d...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=SQL_Overview_(en)&amp;diff=71000&amp;oldid=prev"/>
		<updated>2024-10-20T12:31:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sure! Here&amp;#039;s the translation into English while retaining the wiki format:  &amp;#039;&amp;#039;&amp;#039;SQL (Structured Query Language)&amp;#039;&amp;#039;&amp;#039; is the standard language used for managing and manipulating d...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sure! Here&amp;#039;s the translation into English while retaining the wiki format:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SQL (Structured Query Language)&amp;#039;&amp;#039;&amp;#039; is the standard language used for managing and manipulating data in relational databases. A relational database itself is a system for organizing data in the form of interconnected tables.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts of SQL==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Table:&amp;#039;&amp;#039;&amp;#039; A structure consisting of rows (records) and columns (fields). Each row represents a single piece of data, while each column represents a data attribute.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Row (Record):&amp;#039;&amp;#039;&amp;#039; A complete data entry in a table.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Column (Field):&amp;#039;&amp;#039;&amp;#039; A single data attribute in a table.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Query:&amp;#039;&amp;#039;&amp;#039; An SQL command used to retrieve, insert, update, or delete data from a database.&lt;br /&gt;
&lt;br /&gt;
==Example of Using SQL on Ubuntu Server (using MySQL)==&lt;br /&gt;
&lt;br /&gt;
===Connecting to the Database===&lt;br /&gt;
&lt;br /&gt;
Before we can execute SQL queries, we need to connect to the database first. For example, we have a database named `mydatabase` with the username `root` and password `password`.&lt;br /&gt;
&lt;br /&gt;
 mysql -u root -p mydatabase&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The system will prompt you to enter the password.&lt;br /&gt;
&lt;br /&gt;
===Creating a Table===&lt;br /&gt;
&lt;br /&gt;
To create a new table named `users` with columns `id`, `username`, and `password`, we can use the following query:&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE users (&lt;br /&gt;
   id INT PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;
   username VARCHAR(50),&lt;br /&gt;
   password VARCHAR(50)&lt;br /&gt;
 );&lt;br /&gt;
&lt;br /&gt;
===Inserting Data===&lt;br /&gt;
&lt;br /&gt;
To insert data into the `users` table, we use the `INSERT INTO` command:&lt;br /&gt;
&lt;br /&gt;
 INSERT INTO users (username, password)&lt;br /&gt;
 VALUES (&amp;#039;john_doe&amp;#039;, &amp;#039;password123&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Retrieving Data===&lt;br /&gt;
&lt;br /&gt;
To retrieve all data from the `users` table, we use the `SELECT` command:&lt;br /&gt;
&lt;br /&gt;
 SELECT * FROM users;&lt;br /&gt;
&lt;br /&gt;
If we want to retrieve specific data, for example, just the username and password, we can write:&lt;br /&gt;
&lt;br /&gt;
 SELECT username, password FROM users;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating Data===&lt;br /&gt;
&lt;br /&gt;
To update data in a specific row, we use the `UPDATE` command:&lt;br /&gt;
&lt;br /&gt;
 UPDATE users&lt;br /&gt;
 SET password = &amp;#039;newpassword&amp;#039;&lt;br /&gt;
 WHERE id = 1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above command will change the password of the user with ID 1 to &amp;#039;newpassword&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
===Deleting Data===&lt;br /&gt;
&lt;br /&gt;
To delete data from a table, we use the `DELETE` command:&lt;br /&gt;
&lt;br /&gt;
 DELETE FROM users WHERE id = 1;&lt;br /&gt;
&lt;br /&gt;
The above command will delete the user with ID 1.&lt;br /&gt;
&lt;br /&gt;
==Other Important SQL Commands:==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;WHERE:&amp;#039;&amp;#039;&amp;#039; Used to filter data based on certain conditions.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ORDER BY:&amp;#039;&amp;#039;&amp;#039; Used to sort the results of a query.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GROUP BY:&amp;#039;&amp;#039;&amp;#039; Used to group data based on specific columns.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;HAVING:&amp;#039;&amp;#039;&amp;#039; Used to filter results after grouping.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;JOIN:&amp;#039;&amp;#039;&amp;#039; Used to combine data from two or more tables.&lt;br /&gt;
&lt;br /&gt;
==More Complex Example==&lt;br /&gt;
&lt;br /&gt;
For example, if we want to find all users whose usernames start with the letter &amp;#039;j&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
 SELECT * FROM users&lt;br /&gt;
 WHERE username LIKE &amp;#039;j%&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
SQL is a powerful and flexible language for managing databases. By understanding the basics of SQL, you can easily perform various operations on databases, from creating tables to executing complex queries.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* MySQL is one of many database management systems that support SQL. There are also PostgreSQL, Oracle, SQL Server, and many others.&lt;br /&gt;
* SQL syntax may vary slightly between database systems, but the fundamental concepts remain the same.&lt;br /&gt;
&lt;br /&gt;
==Interesting Links==&lt;br /&gt;
&lt;br /&gt;
* [[Forensic: IT]]&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>