SQL Query with computed column

Posted by plotnick on Stack Overflow See other posts from Stack Overflow or by plotnick
Published on 2010-05-17T19:32:01Z Indexed on 2010/05/17 19:40 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

help me please with a query. Assume that we have a table with columns:

  • Transaction
  • StartTime
  • EndTime

Now, I need a query with computed column of (value = EndTime-Startime). Actually I need to group Users(Transaction has a FK for Users) and sort them by average time spent for transaction.

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql