database
Database
3
Posts
3
Posters
0
Views
1
Watching
-
how to select maximum number from table using groupby keyword with two column name
-
how to select maximum number from table using groupby keyword with two column name
A little example data would help the answering, but basically you group by like:
SELECT MAX(NumberField),
Field1,
Field2
FROM YourTable
GROUP BY Field1,
Field2For info and examples, see: GROUP BY (Transact-SQL)[^]
The need to optimize rises from a bad design.My articles[^]
-
how to select maximum number from table using groupby keyword with two column name