Saturday, June 22, 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 = 4GB, MAXSIZE = 10GB, FILEGROWTH = 2GB) record ON(NAME = NLease_log, FILENAME = NFSASQLDBlease_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, irrelevant 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), follow 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 infobase 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 projects objective.

No comments:

Post a Comment

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