with a as (
select a.PrimaryKey,
max(case when seqnum = 1 then score end) as score,
max(case when seqnum = 2 then score end) as score_previous
from (select a.*,
row_number() over (partition by PrimaryKey order by DateField desc) as seqnum
from TableA a
) a
where seqnum <= 2 -- This should help performance of the `group by`
group by a.PrimaryKey
)
select b.*, a.score, a.score_previous
from b join
a
on b.primarykey = a.primarykey;
有人可以帮助我在&#34; PROIZVODI&#34;?上悬停创建一个掺杂菜单我希望尽快得到帮助,谢谢。
答案 0 :(得分:0)
你想要像htis这样的东西: -
.dropbtn {
background-image:url(download.jpg);
color: white;
padding: 16px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color:#FFF;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
<div class="dropdown">
<button class="dropbtn">PROIZVODI</button>
<div class="dropdown-content">
<li><a href="reciklazaplastike.html">RECIKLAŽA</a></li>
<li><a href="oprema.html">OPREMA</a></li>
<li><a href="onama.html">O NAMA</a></li>
<li><a href="contactform.php">KONTAKT</a></li>
</ul>
<a href="#" id="pull">Meni</a>
</nav>
</div>
答案 1 :(得分:0)
试试这个asap版本一:
ul#drop {
display: none;
trasition: 3s all linear;
}
[data-toggle=drop]:hover {
color: red;
}
[data-toggle=drop]:hover > ul#drop {
display:block;
}
<ul id="drop1">
<li><a href="#">menu 1</a></li>
<li data-toggle="drop"><a href="#">menu 2 (hover here)</a>
<ul id="drop">
<li><a href="#">sub-menu 1</a></li>
<li><a href="#">sub-menu 2</a></li>
</ul>
</li>
<li><a href="#">menu 3</a></li>
</ul>
答案 2 :(得分:0)
这是最简单的方法
body {
font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 20px 50px 150px;
font-size: 13px;
text-align: center;
background: #000000;
}
ul {
text-align: left;
display: inline;
margin: 0;
padding: 15px 4px 17px 0;
list-style: none;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
ul li {
font: bold 12px/18px sans-serif;
display: inline-block;
margin-right: -4px;
position: relative;
padding: 15px 20px;
background: #fff;
cursor: pointer;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
ul li:hover {
background: #555;
color: #fff;
}
ul li ul {
padding: 0;
position: absolute;
top: 48px;
left: 0;
width: 150px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
display: none;
opacity: 0;
visibility: hidden;
-webkit-transiton: opacity 0.2s;
-moz-transition: opacity 0.2s;
-ms-transition: opacity 0.2s;
-o-transition: opacity 0.2s;
-transition: opacity 0.2s;
}
ul li ul li {
background: #555;
display: block;
color: #fff;
text-shadow: 0 -1px 0 #000;
}
ul li ul li:hover {
background: #666;
}
ul li:hover ul {
display: block;
opacity: 1;
visibility: visible;
}
&#13;
<ul>
<li>Menu 01</li>
<li>Menu 02
<ul>
<li>Sub Menu 01</li>
<li>Sub Menu 02</li>
<li>Sub Menu 03</li>
</ul>
</li>
<li>Menu 03</li>
</ul>
&#13;