SELECT CASE WHEN THEN (SELECT)

后端 未结 4 2189
孤街浪徒
孤街浪徒 2020-12-18 00:03

I am trying to select a different set of results for a product depending on a product type. So if my product should be a book I want it to look up the UPC and Artist for a n

4条回答
  •  别那么骄傲
    2020-12-18 00:53

    For a start the first select has 6 columns and the second has 4 columns. Perhaps make both have the same number of columns (adding nulls?).

提交回复
热议问题