I need to get for each company_name and node_name the first text (the row who has the lowest row_id) from table T_TBL_DATA. Something like:
SELECT company_name, node_name, [text]
FROM T_TBL_DATA
GROUP BY company_name, node_name
WHERE the selected [text] is from the row with the smallest row_id within each group
Any idea?
1 Answer