At a minimum, you must specify one column within the table, and its datatype. For example, if you wanted to create an employee table with only one column, named "salary," you could issue the following Transact-SQL statement:
CREATE TABLE employee (salary smallmoney)
This example doesn't mean much, you have defined a salary column, but there are no other columns in the table to serve as a frame of reference. For example, we don't know which employee has what salary. In most real-world situations, you will need to define more than one column per table.
More columns
Now, let us create a more complex table, by adding pertinent columns for the Employee table. Such columns include the name of the employee,
along with address and contact information. You could create such a table, like this:
Finally, suppose you did not want to supply a value for each new employee as he/she is hired. You could make the EmployeeID column an IDENTITY column, whereby each new employee will be assigned a number that is incremented from the last EmployeeID. You also want the number to start at 1001. You could create the table, like this.
Click the Exercise link below on the left to practice creating tables. Create SQL-Server Table - Exercise
In the next lesson, you will learn how to modify an existing table.