Show Table

Column Verbose Name Type Groupable Filterable Is temporal
project_id None STRING
day None DATETIME
dayoperacao Data STRING
rn Linha STRING
trip_headsign Viagem STRING
dt Horário STRING
planejado Planejado STRING
executado Monitorado STRING
extra Extra STRING
agency Operadora STRING
category Tipo de Linha STRING
quilometragemremunerada Quilometragem STRING
vehicletype Tipo Veículo STRING
Record Count: 13
Metric Verbose Name Type
count None None
Record Count: 1
Table Name Leonardo Bernardinelli-Untitled Query 2-pwRiG6GN_
Sql select vv.project_id, vv.day, vv.rn, vv.trip_headsign, vv.dt, vv.planejado, vv.executado, cast(substring(vv.day,9,2)||'-'||substring(vv.day,6,2)||'-'||substring(vv.day,1,4) as varchar(10)) as dayoperacao, case when vv.tabela = 88 then 'SIM' else 'NÃO' end extra ,vv.category ,vv.agency ,cast(km.quilometragemremunerada as numeric(19,3)) as quilometragemremunerada ,vv.vehicletype from veiculoporviagem as vv left join kmrodados as km on vv.day = km.day and vv.project_id = km.projectminihash and vv.executado = km.vehicle_id and vv.rn = km.route_id and vv.dt = km.planned_start_time
Enable Filter Select False
Fetch Values Predicate None
Database realtime_db
Schema None
Description None
Owners [Leonardo Bernardinelli]
Main Datetime Column None
Default Endpoint None
Offset 0
Cache Timeout None
SQL Lab View True
Template parameters None
Perm [realtime_db].[Leonardo Bernardinelli-Untitled Query 2-pwRiG6GN_](id:265)
Associated Charts [Veículos e Viagem]