WITH CurrencyPrices AS ( SELECT Date(o."updatedAt") as updateddate, c.name ->…
Jump to turn (6)
- 1WITH CurrencyPrices AS ( SELECT Date(o."updatedAt") as updateddate, c.name -> c.
- 2WITH CurrencyPrices AS ( SELECT Date(o."updatedAt") as updateddate, c.name -> c.
- 3nextjs 14에서 src/app/api/route.ts 를 만들었어 'use server' import axios from 'axios' e
- 4next config에서 proxy 사용방법 알려줘
- 5/ @type {import('next').NextConfig} / const nextConfig = { async rewrites() { re
- 6NextJS api folder return Internal Server Error Asked 6 months ago Modified 6 mon
- User
WITH CurrencyPrices AS ( SELECT Date(o."updatedAt") as updated_date, c.name -> c."defaultLang" as name, o.currency, SUM(o.amount) as amount, SUM(o.price) as total_price FROM "Order" o JOIN "Pack" p ON p.id = o."packId" JOIN "Collection" c ON c.id = p."collectionId" WHERE o.status IS TRUE GROUP BY updated_date, o.currency, c.name, c."defaultLang" ORDER BY updated_date DESC; ) SELECT cp.updated_date, cp.name, cp.amount, JSONB_OBJECT_AGG(cp.currency, cp.total_price) as total_price FROM CurrencyPrices cp ORDER BY cp.updated_date DESC;
ERROR: syntax error at end of input LINE 13: ORDER BY updated_date DESC ^
- Assistant