How To Create Table In MSSQL

The beginner should know the basic steps to create the table in sql.

CREATE TABLE TABLENAME 
(
COMP_CODE    VARCHAR(30),
UNIT_CODE        VARCHAR(20),
BR_CODE            VARCHAR(20)
)

EXPLANATION :-

1--Here TABLENAME  is  the name of table  the you want to create.
2- Here COMP_CODE    is the name of column in the table.
3-Here  VARCHAR(30),  is the the data type use for column and 30 show its size.


This is the basic step to create table in database, Like that we can create number of tables in database.

*Table is basically a database object which consists number of row and column,its appear like 
  Gride.

Comments

Popular posts from this blog

How To Find Nth Salary Of Employee

How To Find Second Max Salary Of Employee