We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
El sistema actual almacena todas las cotizaciones, pero no hay forma de hacer un query (desde el API) para obtener el histórico de las mismas.
Para poder crear visualizaciones interesantes sobre la evolución de las distintas es necesario:
@diegocrzt
The text was updated successfully, but these errors were encountered:
Esta es la query v1:
SELECT p.id AS place_id, p.name AS place_name, pb.id AS branch_id, pb.name AS branch_name, qr.date::date AS date, round(pb.latitude::numeric, 5) AS branch_lat, round(pb.longitude::numeric, 5) AS branch_lng, qrd.iso_code AS currency, MAX(qrd.purchase_price) as purchase_price, MAX(qrd.sale_price) as sale_price FROM public.query_response_detail qrd JOIN public.query_response qr ON qr.id = qrd.query_response_id JOIN public.place_branch pb ON qr.branch_id = pb.id JOIN public.place p ON p.id = qr.place_id WHERE qrd.purchase_price > 0 AND qrd.sale_price > 0 AND pb.latitude IS NOT NULL GROUP BY 1, 2, 3, 4, 5, 6, 7, 8
Sorry, something went wrong.
No branches or pull requests
El sistema actual almacena todas las cotizaciones, pero no hay forma de hacer un query (desde el API) para obtener el histórico de las mismas.
Para poder crear visualizaciones interesantes sobre la evolución de las distintas es necesario:
@diegocrzt
The text was updated successfully, but these errors were encountered: