Top "Calculated-columns" questions

A calculated column is calculated from an expression that can use other columns in the same table

Creating a computed column in SQL Server 2008

I have a SQL Server 2008 database. This database has a Table called "Book". "Book" has the following properties: ID (int) …

sql-server-2008 calculated-columns
Pivot Calculated formula: SUM(Field1)/AVG(Field2)

I've a simple table with some amount and interval in sec by date and product name. Month | Product | Amount | Interval …

excel pivot-table calculated-columns
Creating date in SQL Server 2008

Is there something similar to DATEFROMPARTS(year, month, day) in SQL Server 2008? I want to create a date using the …

sql sql-server sql-server-2008 date calculated-columns
PostgreSQL: using a calculated column in the same query

I am having trouble using a calculated column in postgres. A similar code which works in SQL is given below, …

sql postgresql calculated-columns column-alias
calculate Row Wise Sum - Sql server

This is My table : ID Q1 Q2 Q3 Q4 ---------------------------------------------------------------- 20130712 NULL 728.63 NULL NULL 20130712 8881.55 9673.68 2629.566 6251.984 20130713 1813 1813 84.49 1728.51 20130714 3632.65 3632.65 1209.412 2423.238 20130714 70.758 2637.43 70.758 0 20130714 1601.578 3569.73 204.745 1396.833 20130714 728.63 728.63 0 728.63 20130714 1401.629 2251.39 94.418 1307.211 20130715 583.956 5089.19 583.956 0 20130805 6317.277 8958 2629.566 3687.711 I want the output like below.(The …

sql sql-server-2008 calculated-columns
Absolute value for column in Python

How could I convert the values of column 'count' to absolute value? A summary of my dataframe this: datetime count 0 2011…

python pandas calculated-columns
Creating a new column in Panda by using lambda function on two existing columns

I am able to add a new column in Panda by defining user function and then using apply. However, I …

python pandas lambda multiple-columns calculated-columns
postgresql calculate sum of a resultset

Is there any built in function in postgresql to get the sum of of a column. Just a simple example …

postgresql sum calculated-columns
Pandas min() of selected row and columns

I am trying to create a column which contains only the minimum of the one row and a few columns, …

python pandas row minimum calculated-columns
Mysql calculation in select statement

I have been doing my office work in Excel.and my records have become too much and want to use …

mysql calculated-columns cumulative-sum cumulative-frequency