Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

SQL query returning an unwanted first row

$
0
0

When I ran an SQL query in BigQuery to get some summary data from a public dataset, the first row returned is not something I want in the results.

Query used:

SELECT     usertype,    CONCAT (start_station_name, ' to ', end_station_name) AS route,    COUNT (*) as num_trips,    ROUND(AVG(CAST(tripduration AS INT64)/60), 2) AS duration FROM     bigquery-public-data.new_york_citibike.citibike_tripsGROUP BY    start_station_name,    end_station_name,    usertypeORDER BY    num_trips DESCLIMIT 10

Results:

Query results


Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>