我想在<{1}}之后(不在其中)附加一些html
即。变化
textarea
到
<textarea>content</textarea>
我可以附加到标题或div但是当我尝试使用textarea时它不会这样做。为什么呢?
HTML
<textarea>content</textarea>other_content
JS
<h1>Top</h1>
<h2> middle</h2>
<textarea>stuff</textarea>
<h3> h3</h3>
答案 0 :(得分:2)
试试这个:
with cte as
(
select
*,
row_number() over ( partition by product order by date desc ) as rownumber
from
saleslist
where
datediff( month, date, getdate() ) < 2
)
select
product,
((max(case when rownumber = 1 then price end) -
max(case when rownumber = maxn then price)) /
max(case when rownumber = maxn then price end)
)
from
(select cte.*, max(rownumber) over (partition by product) as maxn
from cte)
group by product