Wednesday, May 15, 2019

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

Physical Design - Coursework ExampleUSE MasterUSE MasterGOCREATE DATABASE LEASE ON PRIMARY(NAME = NLease, FILENAME = NFSASQLDBlease.mdf, size of it = 4GB, MAXSIZE = 10GB, FILEGROWTH = 2GB)LOG ON(NAME = NLease_log, FILENAME = NFSASQLDBlease_log.ldf, SIZE = 2GB, MAXSIZE = 3GB, FILEGROWTH = 10%)GOCreating TablesCREATE TABLE dbo. Lease Agreement( Lease_ID int, native Key, Lease_Start_ see DATE, non 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(Maintenance_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 cleanup position 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 normal has been implemented by SQL Server 12 to create database and tables. The design shows knowledge acquired during coursework. The project involved innovation and translating data into an actual database. Running the database and SQL tables will give proper results that comply with projects objective.

No comments:

Post a Comment

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