在DB2中,我们如何为列的每个唯一值选择第一个“N”行。例如,给出一个这样的表:
$(document).ready(function () {
$('div[data-role="page"]').on("swipeleft", function(){
var nextpage = $.mobile.activePage.next("[data-role=page]");
if ( nextpage.length ) {
$.mobile.pageContainer.pagecontainer('change', nextpage, {
transition: "slide"
});
}
});
$('div[data-role="page"]').on("swiperight", function(){
var prevpage = $.mobile.activePage.prev("[data-role=page]");
if ( prevpage.length ) {
$.mobile.pageContainer.pagecontainer("change", prevpage, {
transition: "slide", reverse: true
});
}
});
});
为每个数字选择前2朵花。我应该能够得到结果:
Number Flower
21 Rose
22 Lily
21 Tulip
21 Orchid
22 Hibiscus
22 Carnation