Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

RE: Delta Value on the same column in a Query

$
0
0

Hello Samilag,

Your question is provider specific which means the query you are looking for will be different in MS SQL Server and different in Oracle (for example). What provider are you using?

Using google i found samples for MS SQL server:

http://blog.sqlauthority.com/2013/09/22/sql-server-how-to-access-the-previous-row-and-next-row-value-in-select-statement/

http://stackoverflow.com/questions/710212/is-there-a-way-to-access-the-previous-row-value-in-a-select-statement

I believe if you type "xxxx get previous row value" where xxxx is name of the provider that you are using you should get the information you need.

Hope this helps

Martin


Viewing all articles
Browse latest Browse all 2544

Latest Images

Trending Articles



Latest Images