我如何使用亞音速具有以下功能,這很容易通過SQL Server如何使用分區,RANK功能通過亞音速
做你的標準使用分區和RANK編寫查詢或lambda表達式
下面是我想通過亞音速
SELECT *轉換來源 ( SELECT H.location_id。L.item_id AS po_item查詢,H.po_no,H.order_date,H.created_by, RANK() OV ER(PARTITION BY H.location_id,L.item_id ORDER BY H.location_id,L.item_id,H.order_date DESC)AS排名 FROM p21_view_po_hdrħINNER JOIN p21_view_po_line大號 ON H.po_no = L.po_no )TMP
什麼亞音速做的是,創建一個SQL代碼,從一個強類型的變量,以避免在發展中的錯誤,並使其更容易編寫SQL代碼。但是,如果你知道你在sql上做了什麼,保持原樣,並使用亞音速的直接sql命令。 – Aristos
目前我無法在亞音速中找到分區和排序功能。 –