Hi SQL Gurus,
I have a table with the following data
Col1 Col2
1 Property01
2 Property03
3 Property02
1 Property05
1 Property11
1 Property12
1 Property06
I need an order by select statement which will give me an output like below
1 Property01
1 Property05
1 Property06
1 Property11
1 Property12
3 Property02
2 Property03
that is, if the first column has duplicates, it should be together, otherwise order by col2 Is it possible?
Really appreciate your answers.
Thanks,
dbadmin
I have a table with the following data
Col1 Col2
1 Property01
2 Property03
3 Property02
1 Property05
1 Property11
1 Property12
1 Property06
I need an order by select statement which will give me an output like below
1 Property01
1 Property05
1 Property06
1 Property11
1 Property12
3 Property02
2 Property03
that is, if the first column has duplicates, it should be together, otherwise order by col2 Is it possible?
Really appreciate your answers.
Thanks,
dbadmin