Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: ROW_NUMBER OVER clause issue

$
0
0
Very simple solution:
Modify stored procedure NEvoweb_NB_Store_Products_GetList
It is necessary to replace fragment
 if @OrderBy=''
    begin
        set @SQL = @SQL + ' order by PL.Manufacturer,P.ProductRef'
    end
to this one fragment
 if (@OrderBy <> 'man' AND @OrderBy <> 'ref' AND @OrderBy <>'name' AND @OrderBy <> 'price' AND @OrderBy <> 'cdate')
       begin
        set @SQL = @SQL + ' order by PL.Manufacturer,P.ProductRef'
    end

Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>