Knowee
Questions
Features
Study Tools

Person(SSN, name, city)Car(license_no, year, model, SSN)Accident(drive_no, SSN, license_no, accidentyear, damage_amt)1) Find the name of driver who did not have an accident in 'Delhi'.2) Find the cars sold in 2006 and whose owner are from vadodara.3) How many different models of car are used by Mr.abc

Question

Person(SSN, name, city)Car(license_no, year, model, SSN)Accident(drive_no, SSN, license_no, accidentyear, damage_amt)1) Find the name of driver who did not have an accident in 'Delhi'.2) Find the cars sold in 2006 and whose owner are from vadodara.3) How many different models of car are used by Mr.abc

🧐 Not the exact question you are looking for?Go ask a question

Solution

The questions you've asked seem to be related to SQL queries. Here's how you can approach them:

  1. To find the name of the driver who did not have an accident in 'Delhi', you would first need to identify the drivers who had an accident in 'Delhi', and then exclude them from the total list of drivers. However, the provided tables do not contain information about the location of the accident. If it did, the SQL query might look something like this:
SELECT name 
FROM Person 
WHERE SSN NOT IN (
    SELECT SSN 
    FROM Accident 
    JOIN Person ON Accident.SSN = Person.SSN 
    WHERE city = 'Delhi'
)
  1. To find the cars sold in 2006 and whose owners are from Vadodara, you can join the Person and Car tables on the SSN field and filter by year and city. Here's an example:
SELECT license_no, year, model 
FROM Car 
JOIN Person ON Car.SSN = Person.SSN 
WHERE year = 2006 AND city = 'Vadodara'
  1. To find out how many different models of car are used by Mr.abc, you can join the Person and Car tables on the SSN field and filter by name. Then, you can use the COUNT DISTINCT function to count the unique car models. Here's an example:
SELECT COUNT(DISTINCT model) 
FROM Car 
JOIN Person ON Car.SSN = Person.SSN 
WHERE name = 'Mr.abc'

Please note that these queries are based on assumptions about your database schema and data, as the information provided in the question is not sufficient to write accurate queries.

This problem has been solved

Similar Questions

Consider the relation Database.Person(SSN, name, city)Car(license_no, year, model, SSN)Accident(drive_no, SSN, license_no, accidentyear, damage_amt)1) Find the name of driver who did not have an accident in 'Delhi'.2) Find the cars sold in 2006 and whose owner are from vadodara.3) How many different models of car are used by Mr.abc

5) She last drove a car three years ago. Since she _____ an accident, she _____ a car for three years.1 pointa) had / hasn’t drivenb) has / hasn’t drivenc) had had / hasn’t drivend) had had / didn't driveClear selection

5) She last drove a car three years ago. Since she _____ an accident, she _____ a car for three years.1 pointa) had / hasn’t drivenb) has / hasn’t drivenc) had had / hasn’t drivend) had had / didn't drive

Directions for questions 13 to 16: Answer these questions on the basis of the information given below.Five persons – Lokesh, Subash, Mahesh, Rupesh and Ramesh - drive seven types of vehicles among Car, Bike, Scooty, Jeep, Van, Bus and Auto.No two persons drive the same type of vehicle.Each of five persons drives at least one of the given types of vehicles but not more than two types of vehicles.Mahesh does not drive a Jeep or Auto, and drives only one type of vehicle.Ramesh does not drive a Car, Bike, Auto or Scooty.The person who drives a Car does not drive a Bike.Lokesh drives a Jeep or Scooty but drives only one type of vehicle.Rupesh does not drive a Bus, Jeep, Auto or Scooty.Subash drives only one type of vehicle.Question No. 13Directions for questions 13 to 16: Select the correct alternative from the given choices.Who drives a Bike? Mahesh  Rupesh  Subash  Cannot be determined

) She last drove a car three years ago. Since she _____ an accident, she _____ a car for three years.1 pointa) had / hasn’t drivenb) has / hasn’t drivenc) had had / hasn’t drivend) had had / didn't driveClear selection

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.