Create table in SQL Server | YourSite

Create table in SQL Server

SQL SERVER • 1057 views

Database Name


use DB03TMS283_1819

Table name: tbl_userstore_tms283_G3


create TABLE tbl_userstore_tms283_G3
(
loginID int primary key identity(1,1),
username VARCHAR(50),
loginPassword VARCHAR(50),
loginTimestamp DATETIME
)

Table Name: tbl_customer_tms283_G3


CREATE TABLE tbl_customer_tms283_G3
(
customerID INT PRIMARY KEY IDENTITY(100000000,1),
customerSSNId INT,
customerName VARCHAR(100),
customerAge int,
customerAddressLine1 VARCHAR(100),
customerAddressLine2 VARCHAR(100),
customerCityID VARCHAR(50),
customerStateID VARCHAR(50) 
)

Table Name: tbl_account_tms283_G3


CREATE TABLE tbl_account_tms283_G3(
accountID int primary Key identity(1000000000,1),
customerID INT foreign key references tbl_customer_tms283_G3(customerID),
accountType VARCHAR(20),
depositeAmmount INT
)

Table Name: tbl_customerAccountStatus_tms283_G3


Create Table tbl_customerAccountStatus_tms283_G3
(

SSNID int primary key,
customerID int  foreign key references tbl_customer_tms283_G3(customerID),
accountID int foreign key references tbl_account_tms283_G3(accountID), 
accountType varchar(20),
accountStatus varchar(30),
accountMessage varchar(255),
lastUpdated DateTime
) 

🚀 More Blogs You Might Like

Explore more articles and keep learning

Heat Stroke in Summer: Causes, Symptoms, Prevention and What To Do
health
Heat Stroke in Summer: Causes, Symptoms, Prevention and What To Do

Heat Stroke in Summer: Causes, Symptoms, Prevention and What To Do...

👁 8 2026-04-26
Read More →
Alcoholic Fatty Liver Disease: Causes, Symptoms, Risks and How to Improve It
health
Alcoholic Fatty Liver Disease: Causes, Symptoms, Risks and How to Improve It

Alcoholic Fatty Liver Disease: Causes, Symptoms, Risks and How to Improve It...

👁 9 2026-04-26
Read More →
Non-Alcoholic Fatty Liver: Meaning, Causes, Symptoms, and How to Improve It
health
Non-Alcoholic Fatty Liver: Meaning, Causes, Symptoms, and How to Improve It

Non-Alcoholic Fatty Liver: Meaning, Causes, Symptoms, and How to Improve It...

👁 10 2026-04-26
Read More →
The Ultimate Blueprint to Score 70/70 in ISC Class 12 Computer Science
class-1-12-resources
The Ultimate Blueprint to Score 70/70 in ISC Class 12 Computer Science

The Ultimate Blueprint to Score 70/70 in ISC Class 12 Computer Science...

👁 47 2026-04-11
Read More →