Comparison Between MySQL and SQLite

Relational Database Management Systems (RDBMS) are based on the relational model invented by Edgar F. Codd. They store data in the form of tables, and allow the data to be linked by establishing a relationship between the tables. MySQL and SQLite are both based on the relational database management system [...]

2020-10-02T22:45:39+05:30Categories: Programming|Tags: |

What is Schema in SQL ?

A schema is a collection of database objects (tables, views, functions, indexes ,etc) associated with one particular database username. This username is called the schema owner. A database can have one or multiple schemas. An object within a schema is qualified using the schema_name.object_name format. Say a user's database username [...]

2020-09-30T13:14:36+05:30Categories: Programming|Tags: , |

Mathematical Functions in MySQL

MySQL provides various built-in functions for numerical operations. Commonly used functions are ABS()CEIL()FLOOR()ROUND()MOD()RAND()POW()TRUNCATE()DIV ABS() It returns the absolute (positive) value of a number. Following shows the syntax of the ABS() function ABS(number) number is a literal number or an expression that evaluates to a number. In case number is zero [...]

2020-10-01T10:42:00+05:30Categories: Programming|Tags: , |

Numeric Base Conversion in MySQL

Introduction MySql provides various function to convert a number from one base to other base. Commonly used function for base conversion are BIN()OCT()HEX()CONV() BIN() This function is used for converting from decimal to binary. Syntax of the function is BIN(number) number is the decimal number you want to convert to [...]

2020-04-27T22:07:21+05:30Categories: Programming|Tags: , |

REGEXP Operator | Database

Introduction A regular expression is a special string that describes a search pattern. The advantage of using regular expression is that you are not limited to search for a string based on a fixed pattern with the percent sign (%) and underscore (_) in the LIKE operator. Syntax Syntax of [...]

2020-04-18T23:05:38+05:30Categories: Programming|Tags: , |

CASE Statement | Database

Introduction CASE expression allows to evaluate a list of conditions and returns one of the possible results. The CASE expression has two formats. Syntax The following illustrates the simple CASE expression: CASE expression WHEN expression_1 THEN result_1 WHEN expression_2 THEN result_2 WHEN expression_3 THEN result_3 … ELSE else_result END CASE [...]

2020-04-12T16:59:03+05:30Categories: Programming|Tags: |

Arithmetic Operators | Database

Introduction Arithmetic operators can perform arithmetical operations on numeric operands involved. Arithmetic operators are Addition (+)Subtraction (-)Multiplication (*)Division (/)Modulo (%) Operator Precedence A statement having multiple operators is evaluated based on the priority of operators. If all the operators have equal precedence, then the operators are evaluated from left to [...]

2020-04-12T15:22:03+05:30Categories: Programming|Tags: |

Logical Operators | Database

Introduction Logical operator allows to test for the truth of a condition. Similar to a comparison operator, a logical operator returns a value of true, false, or unknown. Logical operators are: OperatorDescriptionANDReturn true if both expressions are trueORReturn true if either expression is trueNOTToggle a single boolean argumentLogical Operators AND [...]

2020-04-12T15:00:33+05:30Categories: Programming|Tags: |

Comparison Operators | Database

SQL comparison operators allow you to test if two expressions are the same. The result of a comparison can be TRUE, FALSE, or UNKNOWN (an operator that has one or two NULL expressions returns UNKNOWN). List of operators that can be used while specifying condition are OperatorDescription=Equal to!=Not Equal to<Less [...]

2020-04-12T12:11:40+05:30Categories: Programming|Tags: |
Go to Top