<?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>DEV Community: Adam</title>
    <description>The latest articles on DEV Community by Adam (@jibberjabber159).</description>
    <link>https://dev.to/jibberjabber159</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%2F1353430%2Ff881a1f3-f598-4cd2-abc9-16fb9c3ac442.png</url>
      <title>DEV Community: Adam</title>
      <link>https://dev.to/jibberjabber159</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jibberjabber159"/>
    <language>en</language>
    <item>
      <title>Angular Pipes</title>
      <dc:creator>Adam</dc:creator>
      <pubDate>Wed, 10 Apr 2024 02:29:36 +0000</pubDate>
      <link>https://dev.to/jibberjabber159/angular-pipes-3o0f</link>
      <guid>https://dev.to/jibberjabber159/angular-pipes-3o0f</guid>
      <description>&lt;p&gt;Pipes are functions that are used in your UI to transform your data in a simple way. You have the option to create your own pipes to your desired output, and Angular has already built in pipes that you can use.&lt;/p&gt;

&lt;p&gt;DatePipe - Formates a date value&lt;/p&gt;

&lt;p&gt;UpperCasePipe - Transforms text to uppercase&lt;/p&gt;

&lt;p&gt;LowerCasePipe - Transforms text to lowercase&lt;/p&gt;

&lt;p&gt;CurrencyPipe - Transform a number to a currency value&lt;/p&gt;

&lt;p&gt;PercentPipe - Transforms a number to the percentage string.&lt;/p&gt;

&lt;p&gt;DecimalPipe - transforms into a decimal point string&lt;/p&gt;

&lt;p&gt;You create your pipes by using the "@Pipe" decorator in your typescript class, your typescript class implements the "PipeTransform" interface to create your transform methods.&lt;/p&gt;

&lt;p&gt;You use your pipes, or build-in pipes by using the "|" with your binding variable in your HTML template&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;{{ 'Your Text Here' | uppercase }}&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pure Pipes &lt;/p&gt;

&lt;p&gt;By default when using pipes, they are pure pipes by default. A pure pipe is only called when angular detects changes in a values or parameters to a pipe.&lt;/p&gt;

&lt;p&gt;is only called when angular detects change in the value or the parameters passed to a pipe. it only executes only when a Pure change to the input is detected. They are only execute when property has changed. if a objects property has changed, the pipe will no execute because the object reference is still the same. It executed only when the component is loaded&lt;/p&gt;

&lt;p&gt;Inpure Pipe&lt;/p&gt;

&lt;p&gt;It detects inpure changes. It detects change to composite objects. when adding an element to an existing array, or making changes to objects, that impure pipe will detect those changes to that object. it detects any change. it executes every change with in the component.&lt;/p&gt;

&lt;p&gt;The transform method only calls when the angular change detection cycle runs, whether the input data changes.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>SQL Aggretate functions</title>
      <dc:creator>Adam</dc:creator>
      <pubDate>Mon, 25 Mar 2024 01:51:58 +0000</pubDate>
      <link>https://dev.to/jibberjabber159/sql-aggretate-functions-n40</link>
      <guid>https://dev.to/jibberjabber159/sql-aggretate-functions-n40</guid>
      <description>&lt;p&gt;The purpose of using Aggregate functions in sql is to combinding data to perform and return a single value, there are multiple ways to you can manipulate large amounts of data to simplify to one single value.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AVG() - Calculates the average or mean of values for a specific column, mostly used for integer based columns.&lt;/li&gt;
&lt;li&gt;COUNT() - Returns a number of records from a particular column. &lt;/li&gt;
&lt;li&gt;MIN() - This function returns the smallest value of a selected column&lt;/li&gt;
&lt;li&gt;MAX() - This function returns the largest value of a selected column&lt;/li&gt;
&lt;li&gt;SUM() - This adds all values on a numeric column&lt;/li&gt;
&lt;li&gt;FIRST() - This will return the first value of a selected column.&lt;/li&gt;
&lt;li&gt;LAST() - grabs the last value/element of a particular column in your table&lt;/li&gt;
&lt;li&gt;LEN() - This calculates the length of a string of a particular column&lt;/li&gt;
&lt;li&gt;UCASE() - This takes string values of a column and uppercase the string&lt;/li&gt;
&lt;li&gt;LCASE() - This takes the string of a column and lowercases the value&lt;/li&gt;
&lt;li&gt;MID() - extracts the substring of string values in a collection&lt;/li&gt;
&lt;li&gt;CONCAT() - combines two or more strings&lt;/li&gt;
&lt;li&gt;RAND() - generates a random number from a given range&lt;/li&gt;
&lt;li&gt;ROUND() - this rounds a number from a given user defined number&lt;/li&gt;
&lt;li&gt;NOW() - This returns the current date and time&lt;/li&gt;
&lt;li&gt;FORMAT() - formats a value with a specific format&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>SQL Table Structure</title>
      <dc:creator>Adam</dc:creator>
      <pubDate>Wed, 20 Mar 2024 00:43:09 +0000</pubDate>
      <link>https://dev.to/jibberjabber159/sql-table-structure-3pno</link>
      <guid>https://dev.to/jibberjabber159/sql-table-structure-3pno</guid>
      <description>&lt;p&gt;Tables are an organized collection of data is stored and represented by a form of columns and rows. Fields are what represents columns in your table. When writing your CREATE sql statement how many columns and what the data type are are specified on the business needs of your application&lt;/p&gt;

&lt;p&gt;Shown below a sql statement on creating a table.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE tbl_name (
    id INT NOT NULL AUTO INCREMENT,
    column_Name VARCHAR(50)
    ...
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Columns&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you create a table, you have the flexibility on how your table is structured. This will be come a representation on how your data is organized.&lt;/p&gt;

&lt;p&gt;A column type is a data type that is how it its going to be stored in each data cell. You can have Numeric, Date time and String data types for your columns&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONSTRAINTS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Constraints are used for ensuring the logical, and physical data is stored consistent in your tables. You can specify what type of rules of how records are entered, and updated. This helps with data integrity of your Database. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOT NULL&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This constraint is used to specify a particular column on your table cannot allow NULL values. This rule is used to enforce your application that a particular column needs/require a certain value.&lt;br&gt;
This example shown below "column_name" has a data type of INTEGER, and it cannot be null when you insert or update a record in your table&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column_name INT NOT NULL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is used to set a default value on a column if there is no data specified when persisting data to a particular column.&lt;/p&gt;

&lt;p&gt;This example shown below the column "column_name" has a data type of VARCHAR, with a default value of "Test default text" when you enter a null value when inserting a new record in a table&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column_name VARCHAR "Test default text"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;INDEX&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Indexes are used to retrieve data from a database more quickly. Its mostly used to speed up process when making a query off of a particular index column&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE_INDEX idx_name 
ON tbl_name (column1, column2, ...)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;PRIMARY KEY&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This constraint is used for specify the main indicator of a table for the record, it has a unique value, and most of the time it is usually an integer value and it auto increments when entering new data in a particular table.&lt;/p&gt;

&lt;p&gt;Check and make sure what database are you using. Each database has its own syntax on how a primary key is created when generating your tables.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE tbl_name (
    id INT NOT NULL AUTO INCREMENT,
    column_Name VARCHAR(50)
    ... ,
    PRIMARY KEY (id)
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;FOREIGN KEY&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A foreign key is used to reference a primary key from a different table. It is usually associated with defining relationships between other tables in your database. It is also used to bring a constraint to prevent from disrupting relationships between different entities in your database&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE tbl_name (
    id INT NOT NULL AUTO INCREMENT,
    column_Name VARCHAR(50)
    tble_name_2_id: INT
    ... ,
    PRIMARY KEY (id),
    FOREIGN KEY (tble_name_2_id) REFERENCES tble_name_2(id)
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;UNIQUE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is to specify a column is only allowed to have unique values from one row to another. This will prevent any duplicated content if you try to enter the same data from a particular column&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE tbl_name (
    id INT NOT NULL AUTO INCREMENT,
    column_Name VARCHAR(50) UNIQUE
    ... ,
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CHECK&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is used to put a condition or limits value ranges on a column you specify when creating your table.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE tbl_name (
    id INT NOT NULL AUTO INCREMENT,
    column_name INT
    ... ,
    CHECK (column_name &amp;gt; 18)
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>SQL Stored Procedures</title>
      <dc:creator>Adam</dc:creator>
      <pubDate>Tue, 19 Mar 2024 00:34:05 +0000</pubDate>
      <link>https://dev.to/jibberjabber159/sql-stored-procedures-15ca</link>
      <guid>https://dev.to/jibberjabber159/sql-stored-procedures-15ca</guid>
      <description>&lt;p&gt;Stored Procedures is a collection of SQL statements that can executed in a single unit or function. It is used mostly for encapsulate info, and perform the same tasks multiple time.&lt;/p&gt;

&lt;p&gt;You can specify what your procedure name, write as many sql statements that suits your needs within a stored procedure. It is like writing a method/function in SQL, but they don't return a value. its just an easier way to execute multiple sql statements into one location.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`CREATE PROCEDURE procedure_name
AS
BEGIN
    SELECT * FROM tbl_name;
    ... 
END;

EXEC procedure_name;`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can write Stored Procedures with parameters to pass conditional values, which makes your stored procedure more flexible when quering data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`CREATE PROCEDURE procedure_name_with_param @ParamName nvarchar(32)
AS
BEGIN
    SELECT * FROM tbl_name WHERE column_name = @ParamName;
    ... 
END;

EXEC procedure_name_with_param @ParamName='param_value';`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>SQL Table Relationships</title>
      <dc:creator>Adam</dc:creator>
      <pubDate>Mon, 18 Mar 2024 00:14:00 +0000</pubDate>
      <link>https://dev.to/jibberjabber159/sql-table-relationships-30cd</link>
      <guid>https://dev.to/jibberjabber159/sql-table-relationships-30cd</guid>
      <description>&lt;p&gt;Joins is where you execute a query to retrieve table by combining two or more tables based on relationships of column ids.&lt;/p&gt;

&lt;p&gt;There are multiple joins that you can achieve when retrieving data from your database&lt;/p&gt;

&lt;p&gt;INNER JOIN&lt;/p&gt;

&lt;p&gt;an Inner join is where you joining two tables and that record will appear if there is a matching records between two tables based on a condition if two columns have matching data. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT column1, column2, ... FROM tbl_name_1&lt;br&gt;
INNER JOIN tbl_name_2&lt;br&gt;
ON tbl_name_1.matching_column = tbl_name_2.matching_column&lt;br&gt;
LEFT JOIN&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;a Left join will show all rows from left side, and any matching results, it will be displayed on the right side of your result list. If there is no match in a row, it will return NULL. In this case, the left table in your join takes precedence over the right join, so make sure which table you are trying to select when finding matches in your data.&lt;/p&gt;

&lt;p&gt;Left join is most used when trying to find matches&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT column1, column2, ... FROM tbl_name_1&lt;br&gt;
LEFT JOIN tbl_name_2&lt;br&gt;
ON tbl_name_1.matching_column = tbl_name_2.matching_column&lt;br&gt;
RIGHT JOIN&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A right join is where all records show on your right table, any matching records that you are trying to compare will show on the left side, if there is no match on a particular record, it will display NULL on the left side&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT column1, column2, ... FROM tbl_name_1&lt;br&gt;
RIGHT JOIN tbl_name_2&lt;br&gt;
ON tbl_name_1.matching_column = tbl_name_2.matching_column&lt;br&gt;
FULL JOIN&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A full join will return all records when there is a match on the left or right side. This is shows all data whether there is a match or not.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT column1, column2, ... FROM tbl_name_1&lt;br&gt;
FULL JOIN tbl_name_2&lt;br&gt;
ON tbl_name_1.matching_column = tbl_name_2.matching_column&lt;br&gt;
SELF JOIN&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>SQL CRUD Operations</title>
      <dc:creator>Adam</dc:creator>
      <pubDate>Fri, 15 Mar 2024 01:00:47 +0000</pubDate>
      <link>https://dev.to/jibberjabber159/sql-crud-operations-51be</link>
      <guid>https://dev.to/jibberjabber159/sql-crud-operations-51be</guid>
      <description>&lt;p&gt;&lt;strong&gt;(C)REATE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Creating is for inserting information in your tables, this is where you specify how your data is going to represent in table or "entity". It starts with the column names that is going to be inserted, followed by the values that need to be inserted. the end results it enter a new row in your table&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`INSERT INTO tbl_name (column_name_one, column_name_two)
VALUES (column_value_one, column_value_two)`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;(R)ETREIVE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;this is used for quering, or selecting data from a particular table you are looking to retrieve. In your select statement you can specify what the data is stored by selecting what columns you want to display.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`SELECT * FROM tbl_name`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the "*" selector you see shown above will display all columns that is structured in that entity. You can specify what columns you want to see just by specifying a particular column shown below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`SELECT column_name FROM tbl_name`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Conditional Statements&lt;/p&gt;

&lt;p&gt;You can also retrieve data from your database by using conditional statements. Using conditional statements, it returns records from your tables that will display records that have a match from what condition you are specifying &lt;/p&gt;

&lt;p&gt;Shown below is an example using the "WHERE" clause to specify quering your data based on a condition.&lt;/p&gt;

&lt;p&gt;There are also cases when you need to use aggregated functions in your SELECT statement, in this case the WHERE clause won't recognize how to run conditions off of what aggregated function you are using.&lt;br&gt;
This example shown below, this query is using the COUNT() aggregate function, and its using the "HAVING" clause to execute this condition correctly.&lt;/p&gt;

&lt;p&gt;There will also be cases when there are going to be similarities in your data, and you need to find a way to group and associate those similarities. The example shown below, this query is grouping the similarities of "column_name" and grouping them by that column while displaying "column_name_two" with that group&lt;/p&gt;

&lt;p&gt;Another case to similiaries in your data. if you need to retrieve data (such as text, string) it would be beneficial querying data if a sub strings contains a certain text. Shown below is a query executing a condition if "column_name" contains a substring. In return it will return a list of records where it finds a match. &lt;/p&gt;

&lt;p&gt;Using the LIKE clause in this query, you specify your wild card (%).&lt;br&gt;
In this scenario its telling the LIKE clause that "column_name" has a pattern of "substring"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(U)PDATE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is used to modify current records in your table. When updating records, you can run a query to update all records, or update records based on a condition (i.e. WHERE clauses). It is all based on your business needs on what functionality are you trying to achieve. Shown below this query is updating "tble_name" using a condition to specify what record to update. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(D)ELETE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is where you are removing tables from a table, you can remove all records from a table&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
