Using SQL Wildcards
SQL wildcards are used when searching for data in a database. They can substitute one or more characters when working with string types. They are a sort of pattern which is used to match a character...
View ArticleCreating database diagrams using IBM Data Studio Developer
This tutorial will show you how to create database diagrams using IBM Data Studio Developer. When dealing with complex databases it is quite useful to be able to visualize data. If you use IBM Data...
View ArticleUsing SQL Primary Key constraint
In SQL the Primary Key is used to uniquely identify each row in a table. Therefore the values of primary keys must be unique and a column which is a part of the primary key cannot contain NULL. Every...
View ArticleUsing SQL Check constraint
If you want to limit the range of the values a certain column can store you can do that by using check constraints. Check constraints can be defined over columns or over tables. A check constraint...
View ArticleUsing the SQL Auto Increment field
Quite often, when creating a new SQL table, one can’t simply think of a proper column for the Primary Key. Whether it is because of the structure of the table or because you are creating it in the...
View ArticleUsing SQL views
Views are virtual tables. Basically they represent a part of a result set. Views are used both for managing access to data (in combination with rights management) and for creating an interface to the...
View ArticleUsing SQL SELECT INTO statement
Quite often, when managing SQL databases, we wish to create a copy of a whole table or a few columns of it. This comes handy when we want to create a backup of a table or to archive a part of a table...
View ArticleHow to Handle Null Values with the COALESCE Function in SQL Server
This tutorial will show how to use the COALESCE function to handle null values at run time. The COALESCE() function is used to specify how we want to treat NULL values. It returns the first non-null...
View ArticleHow to Round a Numeric Column to a Specified Decimal Count in SQL Server 2008 R2
This tutorial will show how to round a column to a specified decimal count. This is possible with the ROUND function. The ROUND function is used to round a numeric field to the number of decimals...
View ArticleHow to backup and restore your MySQL database or table structure to in Linux
Whenever there is a database involved, an important task that should never be neglected is backing it up. In the case of MySQL on a Linux machine, backing up consists of executing a single command....
View Article