hello sir,
I'm new database i need help here i have a database scheme....
PERSON( driver_id:string , name:string , address:string )
CAR( regno:string , model:string , year:int )
ACCIDENT( report_number:int , accd_date:date , location:string )
OWNS( driver_id:string , regno:string )
PARTICIPATED( driver_id:string , regno:string , report_number:int , damage_amount:int)
Now i Need Query for the following Issue
1)Find the name of owner who owns a car that has minimum damage amount for accidents in 2008
2)Find the people who owned cars that were involved in accidents at every location.
3)Find the locations at which minimum and maximum number of accidents occur
4)For each owner who owns more than two cars, list the ownerid, regno of the car having maximum damage amount, and number of accidents.
Plz Help me Thank You..... :S
I'm new database i need help here i have a database scheme....
PERSON( driver_id:string , name:string , address:string )
CAR( regno:string , model:string , year:int )
ACCIDENT( report_number:int , accd_date:date , location:string )
OWNS( driver_id:string , regno:string )
PARTICIPATED( driver_id:string , regno:string , report_number:int , damage_amount:int)
Now i Need Query for the following Issue
1)Find the name of owner who owns a car that has minimum damage amount for accidents in 2008
2)Find the people who owned cars that were involved in accidents at every location.
3)Find the locations at which minimum and maximum number of accidents occur
4)For each owner who owns more than two cars, list the ownerid, regno of the car having maximum damage amount, and number of accidents.
Plz Help me Thank You..... :S