By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 3
CREATE TABLE
CREATE FUNCTION
CREATE FUNCTION
| fromname | toname | distmiles | distkm |
|---|---|---|---|
| "Chennai" | "Kochi" | 302.13074782483 | 559.9174415331682 |
| "Chennai" | "Mysore" | 218.26626129516504 | 404.49734916836263 |
| "Kochi" | "Mysore" | 143.26021902027512 | 265.49398194261363 |
SELECT 3
ERROR: function calculate_distance(numeric, numeric, numeric, numeric, unknown) does not exist LINE 1: SELECT * FROM calculate_distance(13.08, 80.27, 12.29, 76.63... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.