-1

I have a table include two columns, year and month, I want get a unique result that order by year and month.

example:

y      m
2013   12 
2012   1
2013   4
2012   3

I want get

y      m
2013  12

How to write the SQL query. thanks.

4

1 回答 1

0
select * from table where y = 2013 and m = 12;  

你想要这个吗 ?

于 2013-10-17T15:31:51.953 回答