yrstruly Posted May 28, 2014 Share Posted May 28, 2014 (edited) Does Anybody have a SQL code that does the following ones of or is it done in parts?1. DB Schema Design - Design a basic database to store the following information + A fleet of Vehicles - Include details such as mileage, vin numbers etc + A pool of drivers - Include relevant documentation, e.g. Drivesr license, ID Book + A group of routes - Marking out GPS coords for directions etc. is not necessary, just include a start & end address as well as any other info you believe to be pertinent + A drivers schedule, tying the above 3 tables together Edited May 28, 2014 by yrstruly Link to comment Share on other sites More sharing options...
thescientist Posted May 28, 2014 Share Posted May 28, 2014 sounds like homework. what have you tried so far? Link to comment Share on other sites More sharing options...
yrstruly Posted May 28, 2014 Author Share Posted May 28, 2014 I dont know how to design the tables and combine as it is required? Link to comment Share on other sites More sharing options...
thescientist Posted May 28, 2014 Share Posted May 28, 2014 Have you tried looking at the tutorials at all? http://www.w3schools.com/php/php_mysql_intro.asp Link to comment Share on other sites More sharing options...
justsomeguy Posted May 28, 2014 Share Posted May 28, 2014 If they're asking you to do that, wouldn't they have taught it in class first? Do you have a textbook? Link to comment Share on other sites More sharing options...
yrstruly Posted May 28, 2014 Author Share Posted May 28, 2014 This for a different non academic assigment, text book explains differntly. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 28, 2014 Share Posted May 28, 2014 I only know of one way to design tables and fields. If you have a database design book then it will cover that stuff. Link to comment Share on other sites More sharing options...
davej Posted May 29, 2014 Share Posted May 29, 2014 Does Anybody have a SQL code that does the following ones of or is it done in parts? Are you saying you have a database assignment but you don't know anything about databases? How does that happen? Link to comment Share on other sites More sharing options...
yrstruly Posted May 29, 2014 Author Share Posted May 29, 2014 Pls assist with last question of task? Link to comment Share on other sites More sharing options...
davej Posted May 29, 2014 Share Posted May 29, 2014 I don't know if it is a repeating schedule or a mix of repeating and non-repeating routes. Tables:Vehicles PK is VIN (int)Drivers PK is DID (int)Routes PK is RouteNo (int)For a mix of repeating and non-repeating... Schedule table:SID int (PK)day-of-week char(3)repeats booleandate date departure timeRouteNo int (FK)DID int (FK)VIN int (FK) For a strictly repeating schedule... Schedule table:day-of-week char(3) (PK)RouteNo int (FK) (PK) departure time (PK)DID int (FK)VIN int (FK) Link to comment Share on other sites More sharing options...
yrstruly Posted May 29, 2014 Author Share Posted May 29, 2014 Repeat schedule Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now