Category Archives: RDBMS

MySQL Installation steps

In this article, we will see how to install MySql in the Ubuntu machine. MySql can be installed in linux based machines through the terminal window Execute the command “sudo apt-get install mysql-server mysql-client” from the terminal. The below-given picture is for reference. You will be asked to enter the machine password here. Give the… Read More »

ALTER TABLE usages in MS SQL Server

In SQL server, ALTER TABLE statement is used for the following purposes  ADD columns/ constraints in the existing table.  DROP columns/ constraints in the existing table.  ALTER columns in the existing table.  ENABLE/ DISABLE triggers. ADD columns/constraints Syntax to add columns and constraints while creating column Syntax to add column(s) One or more columns can… Read More »

Types of SQL Statements in MS SQL Server

There are different types of statements that can be executed in SQL Server for different purposes. These are basically categorized into four types DDL – Data Definition Language DML – Data Manipulation Language DCL – Data Control Language TCL – Transaction Control Language DDL(Data Definition Language) The name itself suggests that it defines the structure… Read More »

BTEQ – Extract Teradata table to a file

BTEQ stands for Batch Teradata Query. It is one of the utilities in Teradata to perform DDL and DML queries, creating macros, etc. However, the BTEQ export feature is exclusively for exporting the result of a query to a file. BTEQ modes There are two modes of running BTEQ. They are interactive mode and Batch… Read More »