I need a SQL Server database designer to review a new SQL database to get it ready for development. I need someone who is great at SQL server to go through my new database, review it, improve it, and get it ready for development. This should take a few hours work. Specifically:
a) Create 3 procedures (and assign to calculated columns in the table) to calculate totals for three tables using their sub table totals: Tour, Bookings, and Passengers
b) Create triggers on 9 tables with a [Status] column, so that when the [Status] is updated, the corresponding [Status Date] column is set to current timestamp
c) Create views for core tables linking the foreign tables (Tours, Bookings, Passengers, Sales, Stock, Agents, Ticket,Stock)
I also need a general review and suggestions on changes to improve the database, including but not limited to
d) Review the indexes on each table and ensure best practice and good designs
e) Review the data types, relationships and general setup
You should record the SQL you propose to change the database so I can execute it on my copy and review your suggest changes. I also want an email explaining what changes you would recommend and why.
I will provide a zip file of a SQL Server 2012 backup. It's a new database without any real data and is around 1mb in size. You can just send it back to me updated.
Database structure overview
Tour > has Bookings > has Passengers > has Sales
Booking > has Payments
The logic for the procedures to calculate totals is very simple, something like follows (excuse poor SQL, this is why I need your help, but the general gist is here):
Passenger.[Calculated Total] = [Passenger].[Ticket Price] + SELECT SUM([Sale Total]) FROM Sale WHERE Passenger.[Passenger ID] = Sale.[Passenger ID]
Booking.[Calculated Total] = SELECT SUM(Passenger.[Calculated Total]) FROM Passenger WHERE Passenger.[Booking ID] = Booking.[Booking ID]
Booking.[Calculated Payment] = SELECT SUM(Payment.[Payment ID] = Booking.[Booking ID]
Tour.[Calculated Total] = SELECT SUM(Booking.[Calculated Total]) FROM Booking WHERE Booking.[Tour ID] = Tour.[Tour ID]
Hello,
I've been a Microsoft Certified DBA since year 2002 and a trainer at official MSFT courses on SQL Server in my region until 2011 so I would be happy to help you. Regarding optimization it depends on your data and usage patterns a lot - so I am going to review your DB structure and ask you some questions to better fine tune your DB. Thank you
$333 USD in 3 days
5.0 (7 reviews)
6.1
6.1
15 freelancers are bidding on average $382 USD for this job
Hi,
I have 8 years experience in SQL Server designing, indexing, writing Stored Procedure, triggers and views. Will provide new procedure with proper joins and index selection.
Hi,
I have good experience in SQL Server, DB Design, SQL writing, stored procedures, triggers and other db stuffs. I am willing to do this task and looking for the reply.
It would be my pleasure, to have the chance to work with you. Your satisfaction is 100% Guaranteed. I have read the project description. I am ready to work on your project I have a team of experienced mobile and web developers who have developed many applications.
hi
Expert SQL server professional here to help. I have done a lot of similar jobs before, and can complete your request quickly. Please refer PM for more details.
I have more than 5+ year experience in C# programing and 2+ year experience in wpf application with DevExpress ,Telerik controls and using sql server.
I want to work with you, if you give me a chance then I will work my best.
Hi I am a SQL Server Developer having 6 years of experience in development, design and optimization.
we are good to start with the project.
waiting for the positive response from your side.
Thanks