Thursday, February 27, 2020

Physical Design Coursework Example | Topics and Well Written Essays - 500 words

Physical Design - Coursework Example USE [Master]USE [Master]GOCREATE DATABASE [LEASE] ON PRIMARY  (NAME = N'Lease', FILENAME = N'\\FSA\SQLDB\lease.mdf’,  Ã‚   SIZE = 4GB, MAXSIZE = 10GB, FILEGROWTH = 2GB)  LOG ON  (NAME = N'Lease_log', FILENAME = N'\\FSA\SQLDB\lease_log.ldf’,  Ã‚   SIZE = 2GB, MAXSIZE = 3GB, FILEGROWTH = 10%)GOCreating TablesCREATE TABLE dbo. Lease Agreement  (            Lease_ID int,         Primary Key,            Lease_Start_Date DATE, Not Null,            Lease_End_Date    DATE, Not Null,            Deposit DECIMAL (15, 2),            Rent_Amount DECIMAL (15, 2),            Late_Fees DECIMAL (15, 2),            Apartment_ID int, Foreign Key,            Tenant_ID   int, Foreign Key,);CREATE TABLE dbo.Rent(      Rent_ID int, Primary Key            RentAmount DECIMAL (15, 2),         RentDueDate DATE,   Lease_ID int, Foreign Key);CREATE TABLE dbo. Maintenance and Repair(  Maintena nce_Request_ID int, Primary KeyDate DATE,Description VARCHAR (255),Cost DECIMAL (15, 2),Resolution VARCHAR (255), Resolution Date DATE, Tenant_ID int, Foreign Key);CREATE TABLE dbo. Expense Type(         Expenses_Type_ID int, Primary Key         Repair VARCHAR (255),          Maintenance VARCHAR (255),   Ã‚         Utilities VARCHAR (255),   Ã‚         Apartment Cleaning VARCHAR (255),   Ã‚         Insurance VARCHAR (255), );CREATE TABLE dbo. Expenses(Expense_ID int, Primary Key               Cost DECIMAL (15, 2), Expense Management VARCHAR (255),                          Expense_Type_ID int,); The design has been implemented by SQL Server 12 to create database and tables. The design shows knowledge acquired during coursework. The project involved designing and translating data into an actual database. Running the database and SQL tables will give proper results that comply with project’s objective.   Ã‚  

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.