prueba tecnica

This commit is contained in:
Alejandro
2025-06-15 18:29:25 +02:00
parent 9758ee0bc6
commit d97e55a83f
127 changed files with 6488 additions and 1 deletions

19
db/07_GetAllRates.sql Normal file
View File

@@ -0,0 +1,19 @@
DROP FUNCTION IF EXISTS public.get_rates();
CREATE OR REPLACE FUNCTION public.get_rates()
RETURNS TABLE (
Id INTEGER,
Name VARCHAR,
Price MONEY
)
AS $$
SELECT
c.id,
c.name,
c.price
FROM public.rates AS c
ORDER BY c.id;
$$ LANGUAGE SQL STABLE;