-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_taxi_trips.tlc_green_trips_2019`
(
  vendor_id STRING NOT NULL OPTIONS(description="A code indicating the LPEP provider that provided the record. 1= Creative Mobile Technologies, LLC; 2= VeriFone Inc."),
  pickup_datetime TIMESTAMP OPTIONS(description="The date and time when the meter was engaged"),
  dropoff_datetime TIMESTAMP OPTIONS(description="The date and time when the meter was disengaged"),
  store_and_fwd_flag STRING OPTIONS(description="This flag indicates whether the trip record was held in vehicle memory before sending to the vendor, aka 'store and forward,' because the vehicle did not have a connection to the server. Y= store and forward trip N= not a store and forward trip"),
  rate_code STRING OPTIONS(description="The final rate code in effect at the end of the trip. 1= Standard rate 2=JFK 3=Newark 4=Nassau or Westchester 5=Negotiated fare 6=Group ride"),
  passenger_count INT64 OPTIONS(description="The number of passengers in the vehicle. This is a driver-entered value."),
  trip_distance NUMERIC OPTIONS(description="The elapsed trip distance in miles reported by the taximeter."),
  fare_amount NUMERIC OPTIONS(description="The time-and-distance fare calculated by the meter"),
  extra NUMERIC OPTIONS(description="Miscellaneous extras and surcharges. Currently, this only includes the $0.50 and $1 rush hour and overnight charges"),
  mta_tax NUMERIC OPTIONS(description="$0.50 MTA tax that is automatically triggered based on the metered rate in use"),
  tip_amount NUMERIC OPTIONS(description="Tip amount. This field is automatically populated for credit card tips. Cash tips are not included."),
  tolls_amount NUMERIC OPTIONS(description="Total amount of all tolls paid in trip."),
  ehail_fee NUMERIC OPTIONS(description=""),
  airport_fee NUMERIC OPTIONS(description=""),
  total_amount NUMERIC OPTIONS(description="The total amount charged to passengers. Does not include cash tips."),
  payment_type STRING OPTIONS(description="A numeric code signifying how the passenger paid for the trip. 1= Credit card 2= Cash 3= No charge 4= Dispute 5= Unknown 6= Voided trip"),
  distance_between_service NUMERIC OPTIONS(description=""),
  time_between_service INT64 OPTIONS(description=""),
  trip_type STRING OPTIONS(description="A code indicating whether the trip was a street-hail or a dispatch that is automatically assigned based on the metered rate in use but can be altered by the driver. 1= Street-hail 2= Dispatch"),
  imp_surcharge NUMERIC OPTIONS(description="$0.30 improvement surcharge assessed on hailed trips at the flag drop. The improvement surcharge began being levied in 2015."),
  pickup_location_id STRING OPTIONS(description="TLC Taxi Zone in which the taximeter was engaged"),
  dropoff_location_id STRING OPTIONS(description="TLC Taxi Zone in which the taximeter was disengaged"),
  data_file_year INT64 OPTIONS(description="Datafile timestamp year value"),
  data_file_month INT64 OPTIONS(description="Datafile timestamp month value")
);

INSERT INTO `bigquery-public-data.new_york_taxi_trips.tlc_green_trips_2019` (vendor_id, pickup_datetime, dropoff_datetime, store_and_fwd_flag, rate_code, passenger_count, trip_distance, fare_amount, extra, mta_tax, tip_amount, tolls_amount, ehail_fee, airport_fee, total_amount, payment_type, distance_between_service, time_between_service, trip_type, imp_surcharge, pickup_location_id, dropoff_location_id, data_file_year, data_file_month) VALUES ('1', '2019-02-01 06:18:10+00:00', '2019-02-01 06:18:10+00:00', 'Y', '5.0', 1, '0E-9', '0E-9', '0E-9', '0E-9', '0E-9', '0E-9', NULL, NULL, '0E-9', '2.0', NULL, NULL, '1.0', '0E-9', '168', '264', 2019, 2), ('1', '2019-02-01 08:39:16+00:00', '2019-02-01 09:11:03+00:00', 'N', '5.0', 1, '4.200000000', '0E-9', '0E-9', '0E-9', '0E-9', '0E-9', NULL, NULL, '0E-9', '2.0', NULL, NULL, '2.0', '0E-9', '242', '69', 2019, 2), ('1', '2019-02-01 09:17:16+00:00', '2019-02-01 09:28:12+00:00', 'N', '5.0', 1, '0.900000000', '0E-9', '0E-9', '0E-9', '0E-9', '0E-9', NULL, NULL, '0E-9', '2.0', NULL, NULL, '2.0', '0E-9', '226', '226', 2019, 2), ('1', '2019-02-01 10:45:14+00:00', '2019-02-01 10:45:34+00:00', 'N', '5.0', 1, '6.000000000', '0E-9', '0E-9', '0E-9', '0E-9', '0E-9', NULL, NULL, '0E-9', '2.0', NULL, NULL, '2.0', '0E-9', '212', '212', 2019, 2), ('1', '2019-02-01 10:04:40+00:00', '2019-02-01 10:05:20+00:00', 'N', '5.0', 1, '0.100000000', '0E-9', '0E-9', '0E-9', '0E-9', '0E-9', NULL, NULL, '0E-9', '3.0', NULL, NULL, '2.0', '0E-9', '250', '250', 2019, 2);