Intro SQL Server provides the REPLICATE function to create a sequence of a string in repetition. For example, we can tell SQL Server to repeat the character 0 3 times to get . In this article, we will…
Intro PostgreSQL provides the RIGHT function to select a number of characters starting from the right of the string. In this article, we will learn how to use right with PostgreSQL. The Syntax The…
Intro SQL Server provides the RIGHT function to select a number of characters starting from the right of the string. In this article, we will learn how to use right with SQL Server. The Syntax The…
Intro PostgreSQL provides the RTRIM function to remove extra white space to the right of the string. In this article, we will learn how to use RTRIM with PostgreSQL. The Syntax The basic syntax of a…
Intro SQL provides the RTRIM function to remove extra white space to the right of the string. In this article, we will learn how to use RTRIM with SQL Server. The Syntax The basic syntax of a RTRIM is…
Intro PostgreSQL provides the REPLACE string function which allows you to replace substrings in a string column. There is a REPLACE statement which works differently, so it is worth noting this is the…
Intro PostgreSQL provides the REPLACE string function which allows you to replace substrings in a string column. There is a REPLACE statement which works differently, so it is worth noting this is the…
Intro SQL Server provides the QUOTENAME function will add delimiters to a string. This is helpful when building dynamic sql queries in sql server. In this article, we will learn how to use QUOTENAME…
Intro MySQL provides the RTRIM function to remove extra white space to the right of the string. In this article, we will learn how to use RTRIM with MySQL. The Syntax The basic syntax of a RTRIM is as…
Intro MySQL provides the RIGHT function to select a number of characters starting from the right of the string. In this article, we will learn how to use right with MySQL. The Syntax The basic syntax…
Intro MySQL provides the REPLACE string function which allows you to replace substrings in a string column. There is a REPLACE statement which works differently, so it is worth noting this is the…
Intro SQL Server provides the PATINDEX function to return the first occurrence of a patter in a string. In this article, we will learn how to use PATINDEX in SQL Server. The Syntax The basic syntax of…
Intro Java has a nice ecosystem to get you started with testing. Libraries such as JUnit, Mokito, and Sprint test handle most of your day to day testing needs. In this article, we will learn how to…
Intro SQL Server provides the NCHAR function to return a unicode character from the number code. In this article, we will learn how to use NCHAR in SQL Server. The Syntax The basic syntax of a NCHAR…
Intro MySQL provides the LTRIM function to remove leading white space. In this article, we will learn how to use LTRIM in MySQL. The Syntax The basic syntax of a LTRIM is as follows: string: The…
Intro PostgreSQL provides the LTRIM function to remove leading white space. In this article, we will learn how to use LTRIM in PostgreSQL. The Syntax The basic syntax of a LTRIM is as follows: string…
Intro SQL Server provides the LTRIM function to remove leading white space. In this article, we will learn how to use LTRIM in SQL Server. The Syntax The basic syntax of a LTRIM is as follows: string…
Intro Recently while teaching, I started to compile a list of "day to day" activities that a React developer would do. One common activity is integrating a component with an api. This consists of…
Intro MySQL provides the lower function to transform a string into all lower case letters. In this article, we will learn how to use LOWER in MySQL. The Syntax The basic syntax of a LOWER is as…
Intro PostgreSQL provides the lower function to transform a string into all lower case letters. In this article, we will learn how to use LOWER in PostgreSQL. The Syntax The basic syntax of a LOWER is…
Intro SQL Server provides the lower function to transform a string into all lower case letters. In this article, we will learn how to use LOWER in SQL Server. The Syntax The basic syntax of a LOWER is…
Intro The LEN function is a string helper function in SQL Server that returns the number of characters in a string. The length function takes characters, varchar, or text and will return the count for…
Intro The left function provides a way to retrieve the first n (number you specify) characters from a string. One often use of this function is to extract dates from a string, although SQL Server does…
Intro Recently I was migrating a postgresql database to sql server. One issue I ran into was migrating the Id columns and keeping the same values as before. SQL server does not let you change a column…
Intro The SQL Server CONCAT_WS will allow you to join multiple strings using a separator. This is similar to CONCAT, however you can use a separator. In this article, we will learn how to use the…
Intro The SQL Server CONCAT function allows you to combine two or more strings into one single string. You can use this on strings or columns in a table. In this article, we will learn how to use the…
Intro The SQL Server DIFFERENCE function returns the a score from 0-4 based on how different two words sound. The DIFFERENCE function uses the SOUNDEX function to compare values of the input strings…
Intro The SQL Server CHARINDEX function will search for a substring inside a string and return it's position. In this article, we will learn how to use CHARINDEX in SQL Server. The Syntax The basic…
Intro The SQL Server ASCII function takes in a character and returns the ASCII value. If you pass in a unicode character or rune, the function will return the unicode value. The Syntax The basic…
Intro SQL Server provides an additional statement to limit rows, SELECT TOP. This statement allows you to specify the number of rows or percentage of rows to return from an ordered sql query. In this…
Intro SQL Server provides the Offset and Fetch keywords to paginate table results. If you are familiar with other SQL, this is similar to limit and offset. Using Offset and Fetch in combination with…
Intro SQL Server provides the Output keyword to return values after inserting. A common task is to insert data and return it immediately so we don't have to make multiple sql requests. In this article…
Intro MySQL provides the FORMAT function to convert numbers into a comma separated format and to round to a particular decimal format. For example, we can format 4500.56 to 4,500.6. n this article, we…
Intro MySQL provides a few ways to concatenate strings. We can use the CONCAT and CONCAT_WS function. In this article, we will learn how to concatenate strings in MySQL. The Syntax The basic syntax of…
Intro Constraints are rules you can place on tables to prevent invalid data from being inserted. By using constraints we can prevent columns from being empty, we can ensure values or unique, and much…
Intro Constraints are rules you can place on tables to prevent invalid data from being inserted. By using constraints we can prevent columns from being empty, we can ensure values or unique, and much…
Intro MySQL provides the function to allow us to convert numbers into characters. The function is simple, but helpful in string processing. In this article, we will learn how to use CHAR in MySQL…
Intro The MySQL ASCII function takes in a character and returns the ASCII value. If you pass in a unicode character or rune, the function will return the unicode value. The Syntax The basic syntax of…
Intro The length function is a string helper function in Postgresql that returns the number of characters or the number of bytes in a string. The length function takes characters, varchar, or text and…
Intro The left function provides a way to retrieve the first n (number you specify) characters from a string. One often use of this function is to extract dates from a string, although postgresql does…
Intro The initcap function provides a way to transform text in to proper or title case. The initcap is part of a number of helpful string formatting functions in Postgresql. In this article, we will…
Intro The format function in postgresql allows you to specify a format string when selecting in a query. This function should be familiar to devs who have used the format function in C or related…
Intro Postgresql provides a few ways to concatenate strings. We can use the concat operator, . We also have the CONCAT and CONCAT_WS function. In this article, we will learn how to concatenate strings…
Intro Postgresql provides the function to allow us to convert numbers into characters. The function is simple, but helpful in string processing. In this article, we will learn how to use CHR in…
Intro Postgresql doesn't provide an Upsert keyword, however, we can do upserts using the ON CONFLICT keyword. We add this keyword when inserting to specify how to handle upsert operations. In this…
Intro Postgresql aggregate functions allow us to summarize groups of rows. For example, we can count the number of sales, get the average revenue, and more. In this article we will learn how to use…
Intro The Postgresql Upper function will transform a string into an upper cased version. You can also pass a column name and each value for that column will be upper cased in the result table. In this…
Intro The Postgresql ASCII function takes in a character and returns the ASCII value. If you pass in a unicode character or rune, the function will return the unicode value. The Syntax The basic…
Intro Postgresql split_part function allows us to split a string in to a number of substrings. This function help when formatting columns for a specific query. In this article, we will learn how to…
Intro Postgresql provides Schemas to organize databases. This allows you to create separation amongst your app and limit access to parts of your instance. In this article, we will learn how to use…
Intro Postgresql provides the GENERATED AS IDENTITY constraint to allow users a way to create unique keys on data. This is similar to the SERIAL data type, but has a few extra options. In this article…
Intro Sequences allow you to define number generators in Postgresql. They are often use to defined primary keys on table, but are heavily customizable. In this article, we will learn how to use…
Intro The Truncate Table allows us to delete large tables quickly. If you want to delete all records, the DELETE command will be slower than TRUNCATE. This is because TRUNCATE will skip many checks…
Intro Postgresql provides the RENAME COLUMN clause when you nee to change the name of a column in an already created table. In this article, we will see an example how how to use the Rename Column in…
Intro Often when developing we will want to change the column types on an existing table. We can do this using the ALTER TABLE and TYPE clauses. In this article, we will learn how to change column…
Intro SQL Server is one of the most widely used databases. Microsoft supports this database development and SQL Server has grown to support much more than just SQL. It also can scale up to many…
Intro The Add Drop statement allows us to remove columns from an existing table in SQL. This is a common statement to use as you are developing your app. In this article, we will learn how to use Drop…
Intro The Add Column statement allows us to add columns to an existing table in SQL. This is a common statement to use as you are developing your app. In this article, we will learn how to use Add…
Intro The Add Column statement allows us to add columns to an existing table in SQL. This is a common statement to use as you are developing your app. In this article, we will learn how to use Add…
Intro The Alter Table allows us to make changes to our SQL tables after they were designed. This is common in applications that are continuously evolving and being built on. With alter table we can…
Intro The Alter Table allows us to make changes to our SQL tables after they were designed. This is common in applications that are continuously evolving and being built on. With alter table we can…
Intro In Kubernetes, a service is a set of pods that provides and IP and/or DNS name for the pods to be accessed. This is the entry point for you app. Say you launch a pod or pods with a python api…
Intro Namespaces allow you to section off parts of your Kubernetes cluster and resources. This prevents name collisions and incorrect usage. For example, you may have many pods named and deploy a…
Intro The CREATE TEMPORARY TABLE statement allows us to create a short-lived table then is removed at the end of our session. This is helpful when doing some local calculations that you don't want to…
Intro The CREATE TEMPORARY TABLE statement allows us to create a short-lived table then is removed at the end of our session. This is helpful when doing some local calculations that you don't want to…
Intro The CREATE TABLE statement is a fundamental statement in SQL that allows you to create databases in SQL. When using this statement, you will be able to detail columns, constraints and other…
Intro The CREATE TABLE statement is a fundamental statement in SQL that allows you to create databases in SQL. When using this statement, you will be able to detail columns, constraints and other…
Intro The UPDATE statement with the Join allows us to change rows in a table based on joined data. Often you will want to connect two tables and updated based on conditions form the joined result. In…
Intro The UPDATE statement with the Join allows us to change rows in a table based on joined data. Often you will want to connect two tables and updated based on conditions form the joined result. In…
Intro The statement allows us to overwrite a new row when we insert. When using REPLACE, MySQL will delete a row if there is a duplicate, then insert the new row. In this article, we will learn how…
Intro Jobs in Kubernetes allow us to run one offs or recurring tasks using containers in our cluster. Common use cases for this are running one off reports from a database query, running tests during…
Intro The allows us to delete data from multiple tables using a join. Often we will want o connect multiple tables, then delete rows. In this article, we will learn how to use in PostgreSQL. The…
Intro The allows us to delete data from multiple tables using a join. Often we will want o connect multiple tables, then delete rows. In this article, we will learn how to use in MySQL. The Syntax…
Intro The action allows us to set up an action on a relationship that will delete related rows when the parent is deleted. For example, if we have employees and salaries, we can set up our database…
Intro The action allows us to set up an action on a relationship that will delete related rows when the parent is deleted. For example, if we have employees and salaries, we can set up our database…
Intro Creating pods is an every day task when working wit Kubernetes. Kubernetes provides a simple way to defined pods using yaml and to deploy them with the kubectl command. In this article, we will…
Intro Often we are given a csv of data, and we would like to now how to copy that data directly to a SQL table. Using the COPY command, we can do that easily. In this article, we will learn how to use…
Intro The DROP DATABASE statement allows you to completely delete a database an all its contents. In this article, we will learn how to drop database in PostgreSQL. The Syntax The basic syntax of DROP…
Intro The DROP DATABASE statement allows you to completely delete a database an all its contents. In this article, we will learn how to drop database in MySQL. The Syntax The basic syntax of DROP…
Intro The BETWEEN operator allows you to filter for values in between two other values. For example, we could select items that are in a specific date range or houses in between a price range. In this…
Intro The UPDATE statement allows us to change rows in a table. This is one of the main statements you will use while working with SQL. In this article, we will learn how to use UPDATE in MySql. The…
Intro The UPDATE statement allows us to change rows in a table. This is one of the main statements you will use while working with SQL. In this article, we will learn how to use UPDATE in MySql. The…
Intro When inserting multiple rows, but default SQL will stop and return an error if there is an issue and no rows are inserted. If we use the INSERT IGNORE statement we can skip errors and insert all…
Intro When inserting multiple rows, but default SQL will stop and return an error if there is an issue and no rows are inserted. If we use the INSERT IGNORE statement we can skip errors and insert all…
Intro When using the INSERT statement, we sometimes want to insert data from one table into another. We can use a SELECT clause after our INSERT to achieve this. In this article, we will learn how to…
Intro When using the INSERT statement, we sometimes want to insert data from one table into another. We can use a SELECT clause after our INSERT to achieve this. In this article, we will learn how to…
Intro The INSERT statement allows us to insert data into our tables. It is one of the main operations you will use. In this article, we will learn how to use Insert in MySQL. The Syntax The basic…
Intro The INSERT statement allows us to insert data into our tables. It is one of the main operations you will use. In this article, we will learn how to use Insert in MySQL. The Syntax The basic…
Intro The INTERSECT operator allows us to join two queries together and only select the rows they share in common. This is similar to UNION except we only get rows that overlap. In this article, we…
Intro The INTERSECT operator allows us to join two queries together and only select the rows they share in common. This is similar to UNION except we only get rows that overlap. In this article, we…
Intro If we have multiple select with results that we want to combine, we can us the UNION operator. Unlike a join, the UNION will stack results together. In this article, we will learn how to use…
Intro If we have multiple select with results that we want to combine, we can us the UNION operator. Unlike a join, the UNION will stack results together. In this article, we will learn how to use…
Intro A Common Table Expression or CTE is a temporary table result that exists within a single query. The provide better performance and readability compared to derived tables and can self reference…
Intro A Common Table Expression or CTE is a temporary table result that exists within a single query. The provide better performance and readability compared to derived tables and can self reference…
Intro The EXISTS operator is an operator that returns true or false. We can use this clause to check if there are an items in a subquery. In this article, we will learn how to use EXISTS in PostgreSQL…
Intro The EXISTS operator is an operator that returns true or false. We can use this clause to check if there are an items in a subquery. In this article, we will learn how to use EXISTS in MySQL. The…
Intro A derived table is a subquery used in the FROM clause. Often we want to select a subset of a table, then do further selection on that derived table. In this article, we will learn how to use…
Intro A derived table is a subquery used in the FROM clause. Often we want to select a subset of a table, then do further selection on that derived table. In this article, we will learn how to use…
Intro A Subquery is a nested query inside a query. We can often combine to queries to make more advanced conditions. For example, we can search for orders that belong to a list of customers that meet…
Intro A Subquery is a nested query inside a query. We can often combine to queries to make more advanced conditions. For example, we can search for orders that belong to a list of customers that meet…
Intro The HAVING clause allows us to filter group rows from SQL. When using the GROUP BY clause, our groups are created from rows already filters, from using the WHERE clause. Thus, we can use the…
Intro The HAVING clause allows us to filter group rows from SQL. When using the GROUP BY clause, our groups are created from rows already filters, from using the WHERE clause. Thus, we can use the…
Intro The Group By clause allows us to summarize multiple rows into a less or even a single row. For example, if we want to count the number of people with the same last name or sum the number of…
Intro The Group By clause allows us to summarize multiple rows into a less or even a single row. For example, if we want to count the number of people with the same last name or sum the number of…
Intro Often when working with SQL we have multiple tables that are related. For example, we have have a user and their preferences in two separate tables. We can combine the information in both tables…
Intro Aliases help you improve the readability of your queries. Sometimes, the column names are technically and you wish to change the names to be more human readable. Also, when joining table, you…
Intro Often when working with SQL we have multiple tables that are related. For example, we have have a user and their preferences in two separate tables. We can combine the information in both tables…
Intro The LIKE operator allows to filter values based on if a string contains a specified pattern or not. In this article, we will learn how to use the LIKE operator in MySql. The Syntax The basic…
Intro The LIKE operator allows to filter values based on if a string contains a specified pattern or not. In this article, we will learn how to use the LIKE operator in PostgreSQL. The Syntax The…
Intro The LIKE operator allows to filter values based on if a string contains a specified pattern or not. In this article, we will learn how to use the LIKE operator in MySql. The Syntax The basic…
Intro PostgreSQL provides the operator to help test for NULL fields. Since NULL is a special value to represent an empty state, we have special operators to use this value. In this article, we will…
Intro MySQL provides the operator to help test for NULL fields. Since NULL is a special value to represent an empty state, we have special operators to use this value. In this article, we will learn…
Intro PostgreSQL provides the IN operator to match a list of values. Rather than writing a list of OR clauses we can use the IN as a shortcut. For example, say we have a list of cities and addresses…
Intro MySql provides the IN operator to match a list of values. Rather than writing a list of OR clauses we can use the IN as a shortcut. For example, say we have a list of cities and addresses. We…
Intro When viewing data, we often run into duplicate entries. For example, we may want to query addresses, and we should expect to see multiple addresses with the same country. If we would like to see…
Intro When viewing data, we often run into duplicate entries. For example, we may want to query addresses, and we should expect to see multiple addresses with the same country. If we would like to see…
Intro In PostgreSQL you will often start by creating and selecting which database to use. You need a database to store data, so this is a logically place to start. In this article, we will learn how…
Intro In MySql you will often start by creating and selecting which database to use. You need a database to store data, so this is a logically place to start. In this article, we will learn how to…
Intro The BETWEEN operator allows you to filter for values in between two other values. For example, we could select items that are in a specific date range or houses in between a price range. In this…
Getting Composer To get started with laravel, we will first need which is a package manager for php. You can install it in a few ways. If on mac, we recommend homebrew: https://formulae.brew.sh…
Intro The BETWEEN operator allows you to filter for values in between two other values. For example, we could select items that are in a specific date range or houses in between a price range. In this…
Intro The WHERE cause allows you to filter results returned by the SELECT statement. For example, we can filter a list of actors by their first name. In this article, we will learn how to use the…
Intro The SELECT clause is the main entry to sql. The command allows us to query data from our SQL database. In this article, we will learn how to use Postgres Select. Getting Setup For our setup, we…
Intro When viewing rows for our data base, we often want to sort the data for some meaningful analysis. To do this, we can use the clause. In this article, we will learn how to use ORDER BY in…
Intro We often work with large databases and only want to return a small number of rows to view our data. Postgresql provides the LIMIT keyword to help with this. In this article, we will learn how to…
Intro When we want to remove rows, we can use the statement. We can remove all rows in a table, or use selectors like WHERE and LIMIT to remove less. In this article, we will learn how to use DELETE…
Getting Setup For our setup, we will use docker compose to create a Postgres database and to connect phpmyadmin. Start by copying the following into a docker compose file called We can run this file…
Intro We often work with large databases and only want to return a small number of rows to view our data. Mysql provides the LIMIT keyword to help with this. In this article, we will learn how to use…
Intro Working with Databases has never been easier. With the use of image based systems like docker, we can quickly get a dev environment running without running through a lot of installs. In this…
Intro When viewing rows for our data base, we often want to sort the data for some meaningful analysis. To do this, we can use the clause. In this article, we will learn how to use ORDER BY in MySql…
Intro When we want to remove rows, we can use the statement. We can remove all rows in a table, or use selectors like WHERE and LIMIT to remove less. In this article, we will learn how to use DELETE…
Intro The WHERE cause allows you to filter results returned by the SELECT statement. For example, we can filter a list of actors by their first name. In this article, we will learn how to use the…
Intro JSON is a domain specific language (DSL) that allows you to defined data. It is an alternative to YAML and is used in many apps to send responses via REST apis to config files. In this article…
Intro The SELECT clause is the main entry to sql. The command allows us to query data from our SQL database. In this article, we will learn how to use MySql Select. Getting Setup We will be using…
Intro YAML is another domain specific language (DSL) that allows you to defined data. It is an alternative to JSON and is used heavily in apps such as Kubernetes. In this article, we will learn how to…
Intro Go provides an smtp package which uses the SMTP standard to send email. Sending email is a common use in most programs. In practice, you will often want to use a service such as Mailgun and…
Intro Scope in programming languages defines the region where a variable exists. In Go, we have three places to declare variables, local, global, and formal parameters. In this article, we will learn…
Intro Type conversion lets you easily change the types of your variables in Go. We can do this using the cast operator. In this article, we will learn how to use type conversion in Go. The Case…
Intro Logs allow you to send info or errors during your program for debugging purposes. In practice, logging is often used in conjunction with something like Elastic Search to monitor and track down…
Intro Channels allow you to shared data between goroutines. When executing multiple concurrent tasks, you often want to send and receive data from these tasks. Channels allow you to do this. In this…
Intro When using goroutines, you often need to wait for many goroutines to complete. You can set a timer, but this can be inconsistent as you don't always know how long the goroutines will take. To…
Intro Go routines allow you to execute operations or functions concurrently. These are Go's way of handling multi-threading or asynchronous programming. In this article, we will learn how to us…
Intro Go doesn't have an exception mechanism, instead we have panic. During run time, if there is an execution problem, Go will throw a panic. This will stop code execution, completed all deferred…
Intro Go doesn't have an exception mechanism, instead we have panic. During run time, if there is an execution problem, Go will throw a panic. This will stop code execution, completed all deferred…
Intro Variadic functions allow you to pass a variable number of arguments. If you are creating a function, but want to allow for various arguments, you can use a variadic function. For example. The…
Intro In go, the switch statement allows us to direct program flow in a slightly different way. Instead of multiple if else statements, we can use switch on a single expression. In this article, we…
Intro Interfaces in Go work a bit different than in other languages. First of all, you specify only the methods that an interface should conform to and not the properties. Also, interfaces are…