<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Himanshu Kumar Tiwari</title>
    <description>The latest articles on Forem by Himanshu Kumar Tiwari (@darkworldprogrammer).</description>
    <link>https://forem.com/darkworldprogrammer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1995689%2Fe9cfe72f-0ca2-4a42-9507-d6e01c72be24.png</url>
      <title>Forem: Himanshu Kumar Tiwari</title>
      <link>https://forem.com/darkworldprogrammer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/darkworldprogrammer"/>
    <language>en</language>
    <item>
      <title>CSS Grid</title>
      <dc:creator>Himanshu Kumar Tiwari</dc:creator>
      <pubDate>Mon, 28 Oct 2024 20:57:03 +0000</pubDate>
      <link>https://forem.com/darkworldprogrammer/css-grid-7eo</link>
      <guid>https://forem.com/darkworldprogrammer/css-grid-7eo</guid>
      <description>&lt;p&gt;The&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
[CSS(https://developer.mozilla.org/en-US/docs/Web/CSS) property is a [shorthand](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties) property that sets all of the explicit and implicit grid properties in a single declaration.


Using

 ```grid```

 you specify one axis using [grid-template-rows](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows) or [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns), you then specify how content should auto-repeat in the other axis using the implicit grid properties: [grid-auto-rows](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows), [grid-auto-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns), and [grid-auto-flow](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow).


**Try it**

## CSS Demo: grid
`

```
grid: auto-flow / 1fr 1fr 1fr;
```
`



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;grid: auto-flow dense / 40px 40px 1fr;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;grid: repeat(3, 80px) / auto-flow;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>css</category>
    </item>
    <item>
      <title>Introduction to SQL</title>
      <dc:creator>Himanshu Kumar Tiwari</dc:creator>
      <pubDate>Fri, 30 Aug 2024 06:16:17 +0000</pubDate>
      <link>https://forem.com/darkworldprogrammer/introduction-to-sql-381j</link>
      <guid>https://forem.com/darkworldprogrammer/introduction-to-sql-381j</guid>
      <description>&lt;p&gt;SQL is a standard language for accessing and manipulating databases.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is SQL?&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;SQL stands for Structured Query Language&lt;/li&gt;
&lt;li&gt;SQL lets you access and manipulate databases&lt;/li&gt;
&lt;li&gt;SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;SQL is a Standard - BUT....&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Although SQL is an ANSI/ISO standard, there are different versions of the SQL language.&lt;/p&gt;

&lt;p&gt;However, to be compliant with the ANSI standard, they all support at least the major commands (such as &lt;code&gt;SELECT&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;INSERT&lt;/code&gt;, &lt;code&gt;WHERE&lt;/code&gt;) in a similar manner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;These SQL commands are mainly categorized into five categories:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foegiwr951r9x5l21m09w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foegiwr951r9x5l21m09w.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DDL&lt;/strong&gt; – Data Definition Language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DQL&lt;/strong&gt; – Data Query Language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DML&lt;/strong&gt; – Data Manipulation Language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DCL&lt;/strong&gt; – Data Control Language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TCL&lt;/strong&gt; – Transaction Control Language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DQL&lt;/strong&gt; – Data Query Language&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data Definition Language&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;DDL&lt;/strong&gt; is the short name for Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CREATE&lt;/strong&gt;: to create a database and its objects like (table, index, views, store procedure, function, and triggers)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALTER&lt;/strong&gt;: alters the structure of the existing database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DROP&lt;/strong&gt;: delete objects from the database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TRUNCATE&lt;/strong&gt;: remove all records from a table, including all spaces allocated for the records are removed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;COMMENT&lt;/strong&gt;: add comments to the data dictionary&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RENAME&lt;/strong&gt;: rename an object&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data Manipulation Language&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;DML&lt;/strong&gt; is the short name for Data Manipulation Language which deals with data manipulation and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE, etc., and it is used to store, modify, retrieve, delete and update data in a database.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SELECT&lt;/strong&gt;: retrieve data from a database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;INSERT&lt;/strong&gt;: insert data into a table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPDATE&lt;/strong&gt;: updates existing data within a table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt;: Delete all records from a database table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MERGE&lt;/strong&gt;: UPSERT operation (insert or update)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data Control Language&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;DCL&lt;/strong&gt; is short for Data Control Language which acts as an access specifier to the database.(basically to grant and revoke permissions to users in the database&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GRANT&lt;/strong&gt;: grant permissions to the user for running DML(SELECT, INSERT, DELETE,…) commands on the table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;REVOKE&lt;/strong&gt;: revoke permissions to the user for running DML(SELECT, INSERT, DELETE,…) command on the specified table&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Transactional Control Language&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;TCL&lt;/strong&gt; is short for Transactional Control Language which acts as an manager for all types of transactional data and all transactions. Some of the command of TCL are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Roll Back&lt;/strong&gt;: Used to cancel  or Undo changes made in the database &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commit&lt;/strong&gt;: It is used to apply or save changes in the database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Save Point&lt;/strong&gt;: It is used to save the data on the temporary basis in the database&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data Query Language (DQL)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data query language(DQL)&lt;/strong&gt; is the subset of “&lt;strong&gt;Data Manipulation Language&lt;/strong&gt;”. The most common command of DQL is 1the &lt;strong&gt;SELECT statement&lt;/strong&gt;. SELECT statement helps us in retrieving the data from the table without changing anything or modifying the table. DQL is very important for retrieval of essential data from a database.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Some of The Most Important SQL Commands&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;SELECT&lt;/code&gt; - extracts data from a database&lt;br&gt;
&lt;code&gt;UPDATE&lt;/code&gt; - updates data in a database&lt;br&gt;
&lt;code&gt;DELETE&lt;/code&gt; - deletes data from a database&lt;br&gt;
&lt;code&gt;INSERT INTO&lt;/code&gt; - inserts new data into a database&lt;br&gt;
&lt;code&gt;CREATE DATABASE&lt;/code&gt; - creates a new database&lt;br&gt;
&lt;code&gt;ALTER DATABASE&lt;/code&gt; - modifies a database&lt;br&gt;
&lt;code&gt;CREATE TABLE&lt;/code&gt; - creates a new table&lt;br&gt;
&lt;code&gt;ALTER TABLE&lt;/code&gt; - modifies a table&lt;br&gt;
&lt;code&gt;DROP TABLE&lt;/code&gt; - deletes a table&lt;br&gt;
&lt;code&gt;CREATE INDEX&lt;/code&gt; - creates an index (search key)&lt;br&gt;
&lt;code&gt;DROP INDEX&lt;/code&gt; - deletes an index&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using SQL in Your Web Site&lt;/strong&gt;&lt;br&gt;
To build a web site that shows data from a database, you will need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An RDBMS database program (i.e. MS Access, SQL Server, MySQL)&lt;/li&gt;
&lt;li&gt;To use a server-side scripting language, like PHP or ASP&lt;/li&gt;
&lt;li&gt;To use SQL to get the data you want&lt;/li&gt;
&lt;li&gt;To use HTML / CSS to style the page&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>sql</category>
    </item>
  </channel>
</rss>
