<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iad_otomamay</author_name>
  <author_url>https://blog.hatena.ne.jp/iad_otomamay/</author_url>
  <blog_title>レベルエンター山本大のブログ</blog_title>
  <blog_url>https://daiyamamoto.hatenablog.com/</blog_url>
  <categories>
    <anon>SQLServer2005</anon>
  </categories>
  <description>SQLServer2005からの新機能「Pivot句」のおかげで、昔なやんで、ゴリゴリ組んだ「テーブル行の横展開」が一瞬にしてできるようになってる。 ■やりたいこと※Befor （このテーブルを） USER_ID USER_NAME SEX 1 山本 1 2 山田 1 3 山下 0 4 山根 1 5 山木 0 6 山川 1 ※After （こうしてみる） title female male 男女比 2 4 性別ごとの列にして、それぞれの性別ごとにデータをカウントする やりかた ■テーブルの準備 CREATE TABLE [dbo].[T_USER]( [USER_ID] [int] NULL,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F20080707%2Fp1&quot; title=&quot;SQLServer2005からの新機能「Pivot句」 - レベルエンター山本大のブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-07-07 00:00:00</published>
  <title>SQLServer2005からの新機能「Pivot句」</title>
  <type>rich</type>
  <url>https://daiyamamoto.hatenablog.com/entry/20080707/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
