我有一個表,如下SQL獲取行時與MIN(COL A)如果2行存在,那麼MIN(COLB)
Table1 ( col A float, col B float ) I need a row with min(col A). If 2 rows have same col A value then row with min(col B). EX: (case 1) A B 1.2 1.5 1.5 1.0 Result should show be first row (case 2) A B 1.2 1.5 1.2 1.0 Result should show be second row Is it possible in a single query? Please help
感謝它解決了我的問題。如果你有col A和col B是NULLABLE,是否有任何問題? – Manju