Assignment: Q.2 Solution

Consider the following entities and their relationships. Train(t_no, t_name) Passenger (p_no, p_name, addr, age) The relationship between Train and Passenger is many-to-many with descriptive attribute date, seat_no and amt. Create a RDB in 3 NF for the above. Using the above database write a PHP script to accept a date. Display train details having maximum passenger for a given date.

Index.html


    

    

Backend.php