
October 10th, 2012, 10:46 AM
|
 |
SQL Consultant
|
|
Join Date: Feb 2003
Location: Toronto Canada
|
|
Quote: | Originally Posted by sriharsha_12 I need to eliminate duplicates based on Col 1-3 and print other columns |
Code:
SELECT col1
, col2
, col3
, MAX(col4)
, MIN(col5)
, AVG(col6)
FROM daTable
GROUP
BY col1
, col2
, col3
|