わかりました、私は非常にばかげた質問をしているかもしれませんが、どういうわけか私は以下を実行する方法を得ることができません.
以下のように2つの列を含むテーブルがあります
+-------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| SL No | Work |
+-------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | Identify Process Champs across all teams for BCUK processes |
| 2 | Impart short training on FMEA to all the Process Champs |
| 2 | List down all critical steps involved in the Process to ascertain the risk involved, feed the details back to FMEA template to analyze the risk |
| 3 | Prioritize the process steps based on Risk Priority Number |
| 4 | Identity the Process Gaps, suggest process improvement ideas to mitigate/mistake proof or reduce the risk involved in the process |
+-------+-------------------------------------------------------------------------------------------------------------------------------------------------+
今、私は以下のような「キーワード」を保持する他のテーブルを持っています
+-------+----------+
| Sl No | Tags |
+-------+----------+
| 1 | BCUK |
| 2 | FMEA |
| 3 | Priority |
| 4 | Process |
+-------+----------+
ここで、2番目のテーブルの「タグ」に基づいて最初のテーブルで「文字列を検索」し、次のようなものを返したいと思います
+----------+-------+
| Tags | Count |
+----------+-------+
| BCUK | 1 |
| FMEA | 2 |
| Priority | 1 |
| Process | 8 |
+----------+-------+
"Process"キーワードがeight times複数の行にわたってテーブル全体 (最初のテーブル) に表示されるため、カウントは 8 として返されます。
私は使っているSQL Server 2014 Express Edition