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]
15 freelancers are bidding on average $382 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.
I have more than 7 years of experience as SQL / Application developer.Lets start the work to finish it professionally and within timeline.Sample of work provided upon request.
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
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.
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.