-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.vsoe_2020`
(
  state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info on the codes, please look at <C1/V1/D1/PC1/P1/NM1 State Number> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  state_name STRING OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC)."),
  consecutive_number INT64 OPTIONS(description="This data element is the unique case number assigned to each crash. It appears on each data file and is used to merge information from the data files together. xxxxxx Two Characters for State Code followed by Four Characters for Case Number"),
  vehicle_number INT64 OPTIONS(description="This data element is the consecutive number assigned to each vehicle in the case. This data element appears on each vehicle level data file and is used in conjunction with the ST_CASE data element to merge information from vehicle level data files. 000-999 Assigned Number of Motor Vehicle"),
  vehicle_event_number INT64 OPTIONS(description="This data element is the consecutive number assigned to each harmful and nonharmful event for this vehicle, in chronological order. 001-999 Vehicle Event Number"),
  sequence_of_events INT64 OPTIONS(description="This data element describes this event. A motor vehicle traffic crash is a series of events resulting from an unstabilized situation. This series of harmful and non-harmful events is recorded in chronological order based on the PAR narrative and diagram. For more info on the codes, please look at <V31 Sequence of Events> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  sequence_of_events_name STRING OPTIONS(description="This data element describes this event. A motor vehicle traffic crash is a series of events resulting from an unstabilized situation. This series of harmful and non-harmful events is recorded in chronological order based on the PAR narrative and diagram. For more info on the codes, please look at <V31 Sequence of Events> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  area_of_Impact_associated_with_the_event INT64 OPTIONS(description="This data element identifies the impact point, if any, on this in-transport motor vehicle that produced property damage or personal injury in this event. For more info on the codes, please look at <C18 Area of Impact Associated with the Event> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  area_of_Impact_associated_with_the_event_name STRING OPTIONS(description="This data element identifies the impact point, if any, on this in-transport motor vehicle that produced property damage or personal injury in this event. For more info on the codes, please look at <C18 Area of Impact Associated with the Event> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315")
);

INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.vsoe_2020` (state_number, state_name, consecutive_number, vehicle_number, vehicle_event_number, sequence_of_events, sequence_of_events_name, area_of_Impact_associated_with_the_event, area_of_Impact_associated_with_the_event_name) VALUES (1, 'Alabama', 10001, 1, 4, 1, 'Rollover/Overturn', 0, 'Non-Collision'), (1, 'Alabama', 10004, 1, 7, 1, 'Rollover/Overturn', 0, 'Non-Collision'), (1, 'Alabama', 10022, 1, 3, 1, 'Rollover/Overturn', 0, 'Non-Collision'), (1, 'Alabama', 10030, 2, 3, 1, 'Rollover/Overturn', 0, 'Non-Collision'), (1, 'Alabama', 10033, 1, 3, 1, 'Rollover/Overturn', 0, 'Non-Collision');