<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KenjiU</author_name>
  <author_url>https://blog.hatena.ne.jp/KenjiU/</author_url>
  <blog_title>Briswell Tech Blog</blog_title>
  <blog_url>https://tech.briswell.com/</blog_url>
  <categories>
    <anon>AI</anon>
    <anon>SQL</anon>
    <anon>🥒</anon>
  </categories>
  <description>毎日暑いですね。今回はサクッとSQLについてです。 やりたいこと 商品マスタテーブル（MySQL）の項目に特定の値がセットされている商品を販売サイトの上位に表示させて利用者におすすめしたい。 商品マスタデータ 商品マスタ この商品マスタのデータについて ブランドA、B、Cを上位に表示したい。 XXX製、YYY製、ZZZ製を上位に表示したい。 ブランドA → XXX製 → ブランドB → ブランドC → YYY製 → ZZZ製 の順に表示したい。 同じ表示順位の場合は、商品ID順に表示したい。 どのように実現するか。 並び順マスタ 以下のような並び順マスタを用意します。 並び順マスタ テーブル作…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.briswell.com%2Fentry%2F2023%2F08%2F02%2F133036&quot; title=&quot;MySQLで自由にソートするテクニック - Briswell Tech Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/K/KenjiU/20230731/20230731184105.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-08-02 13:30:36</published>
  <title>MySQLで自由にソートするテクニック</title>
  <type>rich</type>
  <url>https://tech.briswell.com/entry/2023/08/02/133036</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
