Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Can a view be created from the below query ?

$
0
0

Can a view can be built from the below requirement :

For eg,

I have a table having price from period_key 150 to period_key 156 

My max(period_key) is 165

I want a view that will show 

price from period_key 150 untill period_key 165 and the price will be the latest price i.e price of period_key 156

for the period_key 157 untill 165.





Viewing all articles
Browse latest Browse all 8428

Trending Articles



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