Skip to main content

Driver Numbers

[dbo.driverNumbers]​

Column nameKeyData typeAllow NULLsDefaultDescription
driverNumberIDPrimary KeyINT☐
numberINT☐
driverIDPK_driverNumbers_driverID (dbo.drivers driverId)INT☐
constructorIDPK_driverNumbers_constructorID (dbo.constructors constructorId)INT☑
seasonPK_driverNumbers_season (dbo.seasons year)INT☑
subBIT☑0
retiredBIT☑0

Table Relationships​

Driver Numbers

Where Used​

Where is this table referenced and what columns are used? The below table shows that information.

Example Query​

SELECT 
[driverNumberID]
,dn.[number]
,CONCAT(d.forename, ' ', d.surname) AS [Driver Name]
,c.name AS [Constructor]
,s.[season]
,dn.[sub]
,dn,[retired]
FROM
[dbo].[driverNumbers] dn

INNER JOIN [dbo].[drivers] d
ON d.driverId = dn.driverID

INNER JOIN [dbo].[constructors] c
ON c.constructorId = dn.constructorID

INNER JOIN [dbo].[seasons] s
ON s.year = dn.season

WHERE
dn.retired = 0

Example Output​

driverNumberIDnumberdriverIDconstructorIDseasonsubretired
1478380201610
228380201700