fork download
  1. -- Check if the Railways table exists (for SQLite)
  2. SELECT name FROM sqlite_master WHERE type='table' AND name='Railways';
  3.  
  4. -- Query to count the number of trains from each source station
  5. SELECT SourceStation, COUNT(*) AS TrainCount
  6. FROM Railways
  7. GROUP BY SourceStation;
  8. -- your code goes here
Success #stdin #stdout #stderr 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 5: no such table: Railways