Learn Python
Learn Data Structure & Algorithm
Learn Numpy
Learn Pandas
Learn Matplotlib
Learn Seaborn
Learn Statistics
Learn Math
Learn MATLAB
Learn Machine learning
Learn Github
Learn OpenCV
Learn Deep Learning
MySQL Introduction
MySQL Setup
MySQL Operators
MySQL Basic Works
MySQL Create Table
MySQL insert and get values
MySQL Condition
MySQL GROUP BY
MySQL Case
MySQL sorting and calculate avg,sum,count
MySQL Update
MySQL Time
MySQL String
MySQL Rollback & Commit
MySQL Join and Concatenate
MySQL Index
MySQL Date
MySQL View
MYSQL With Python
Learn MongoDB
Learn Web scraping
Learn Excel
Learn Power BI
Learn Tableau
Learn Docker
Learn Hadoop
Suppose you have database name student and there you have a table named student_table_1. In this table you have columns like Id, Name, Class, Section, Father_name, Mother_name.
Convert string into upper case. This function will not change the existing column but will create a new column which string character will be in upper case.
Here Name is that column which names I wanted to convert into upper case. Because UPPER function creates a new column after converting the words into upper case so NAME_2 is the new column.
Convert string into lower case. This function will not change the existing column but will create a new column which string character will be in lower case.
Here Name is that column which names I wanted to convert into lower case. Because LOWER function creates a new column after converting the words into lower case so NAME_2 is the new column.
This function will show the length of the characters present in a column cells. This function will create a
new the column where you will see the characters length.
Here Name is that column which character length I wanted to get. Because CHAR_LENGTH function creates a new column after converting calculating the character length, so char_length is the new column.
To concatenate multiple columns this function is used.
To get space between words:
SELECT CONCAT(Name," ",Class) AS NAME_2
You can use any separator like -, /, _, etc.
Here Name, Class and Id are are those columns which I wanted to concatenate. Because CONCAT function creates a new column after doing concatenate, so concatenate_col is the new column name.
This function will remove the extra spaces present in the left side of string or numeric value.
LTRIM function creates a new column after trimming, so NAME_2 is the new column name.
This function will remove the extra spaces present on the right side of the string or numeric value.
RTRIM function creates a new column after trimming, so NAME_2 is the new column name.
This function will remove the extra spaces present on both sides of the string or numeric value.
TRIM function creates a new column after trimming, so NAME_2 is the new column name.