Hello everyone,
I am a hobbyist, amateur programmer. A friend of mine runs a small trucking company with around 5 trucks. He does all his work on excel sheets and has been doing this for years. I offered to build a small desktop database app for him.
I am still at the initial stage of designing the database tables. I am kind of stuck at the concept of a 'Trip'. The way my friend does is: once the truck is out with a load, and till it returns back to the yard, that he terms as a trip. He assigns a single Trip Number to this. And when he pays his drivers he makes the salary based on the same logic. So an example of the trip:
another example is this:
But I asked around and some companies do like this:
And:
So my question to you experienced people is, what is the standard way of doing this in the industry? How does your company assign trip numbers? The 2 different type of Trips would demand very different DB tables.
Thank you in advance for all your input. It would be highly appreciated.
Input request for designing a db
Discussion in 'Experienced Truckers' Advice' started by user70, Jan 21, 2017.
Page 1 of 2
-
-
Trucking Jobs in 30 seconds
Every month 400 people find a job with the help of TruckersReport.
-
It should be as follows;
ABC=TRIP#1.. Each time the truck moves with rate conformation or a contract it should represent a trip.
For example: Your rate confirmation or contract has 1 pick 2 drops or 2 picks 1 drop or 5 pickups and 2 drops whichever the case might be, this scenario should represent a trip.
XYZ=TRIP#2 Once the trip 1 ends. Now the driver has to deadhead to the next pickup location. This time frame should also be calculated as a trip; representing 100℅ biz expense/operating cost or loss. Meaning Trip 1's ending zip code to the next pickup location zip code should be calculated as another trip for bookkeeping and a method to calculate cost of operation between loads.
From here you go back to ABC = the vicious circleuser70 Thanks this. -
A easy way of doing it would be trip 40 starts as the pickup, trip 40.1 is the drop off, trip 40.2 is the next pick up and so on,
user70 Thanks this. -
As long you can identify it by employee#, Trip#, Loaded or Empty, # Of Miles traveled between each leg or trip, Dollar amount for each leg or trip. Cost of operation between each leg or trip. The report will automatically fall in place for you.
user70 Thanks this. -
Whatever do you mean by this? Are you suggesting that I do not know how to design db tables? And how did you come to this conclusion? I don't know if you know anything about db tables but if you do you should know that a programmer tries to mould software logic after the real world.
Its easily possible to consider a pick and drop as a single trip and treat this as single row. On the other hand its also possible to treat multiple pickups and drops as being part of one single trip. It would be the decision of the business how it wishes to assign trip numbers and what constitutes a 'unit' in their job. A programmer can do it either way and no way in wrong for him.
Your statement about "where did I learn about tables" seems to imply that somehow a db designer would automatically know what a 'trip' is composed of. Going by that logic maybe a programmer should know everything of all other industries in the world then? Right?
I do not know you but your comment seems to suggest that you yourself do not know much of databases. This is brought out by the fact that you think that knowing database tables would automatically bring a deeper understanding of what trips are in the truck industry and how drivers fill in trip sheets and how trip numbers are assigned by the dispatch office and how records are maintained in a trucking office.
That is strange and laughable.
A programmer comes to the design by trying to understand the current industry standards. It would be foolish to impose personal ideas on a new project without understanding how the industry functions.
To take the case on hand, my friend does it one way. But i found out that others are doing it in another way. Now I wanted to understand a clear picture before making a decision. This decision would not only affect my design BUT also HOW MY FRIEND RUNS HIS SYSTEM. Because he would have to change things the way he has been doing uptil now.Lepton1 Thanks this. -
Thank you for your reply. That's what, I found out, was being done in a company outside. Your reply corroborates that. Thank you.
-
Maybe the way i posted my original question was not clear so I just want to clarify that my query had nothing to do with 'how to design my database'. Thats my part and i can do it very well.
My query is to find out about how something is being mostly done in the industry.Lepton1 Thanks this. -
Everybody does their stuff different. I assume you're wanting to build a Db to pay off of? And I assume you're customizing this to a particular carrier. If so, and if you understand relational db design then you'll need to be talking to the person who you're building this for.
I've built both custom load tracking db for companies and universal (flexible) load tracking dbs for company drivers. It's really not that hard and it seems you're trying to make this more difficult than it needs to be. His spreadsheet structure should get you started then work out the various tables from there and build the relationships.Last edited: Jan 22, 2017
user70 Thanks this. -
The main tables would be
Company, Customer, Tractor, Driver, Trailer, Trip, Legs, Address/Points
A trip is made up of legs between points using drivers, trailers, and tractors. It's simplest to pay per leg because the rate may change for different legs of a trip.
Trucking Jobs in 30 seconds
Every month 400 people find a job with the help of TruckersReport.
Page 1 of 2