2009-08-28から1日間の記事一覧
・where カラム値に対して条件分岐を行う。 select * from testm where key1 = 'a001' order by key1 ; ・having 集計値に対して条件分岐を行う。 select key1, count(*), sum(data1), avg(data1) from testm group by key1 having sum(data1) > 10;
・where カラム値に対して条件分岐を行う。 select * from testm where key1 = 'a001' order by key1 ; ・having 集計値に対して条件分岐を行う。 select key1, count(*), sum(data1), avg(data1) from testm group by key1 having sum(data1) > 10;