Top "Calculated-columns" questions

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

SQL Server String Concatenation with Null

I am creating a computed column across fields of which some are potentially null. The problem is that if any …

sql-server null string-concatenation calculated-columns
Computed / calculated / virtual / derived columns in PostgreSQL

Does PostgreSQL support computed / calculated columns, like MS SQL Server? I can't find anything in the docs, but as this …

postgresql calculated-columns sql-view materialized-views generated-columns
The condition has length > 1 and only the first element will be used

I have a dataframe, trip: > head(trip.mutations) Ref.y Variant.y 1 T C 2 G C 3 A C 4 T …

r if-statement conditional calculated-columns
pandas dataframe create new columns and fill with calculated values from same df

Here is a simplified example of my df: ds = pd.DataFrame(np.abs(randn(3, 4)), index=[1,2,3], columns=['A','B','C','D']) …

python pandas calculated-columns
getting "No column was specified for column 2 of 'd'" in sql server cte?

I have this query, but its not working as it should, with c as (select month(bookingdate) as duration, count(*) …

sql sql-server group-by common-table-expression calculated-columns
Calculated column in EF Code First

I need to have one column in my database calculated by database as (sum of rows) - (sum of rowsb). …

c# sql-server ef-code-first entity-framework-5 calculated-columns
SQL Server, how to merge two columns into one column?

I have a SQL query SELECT TABLE_SCHEMA + TABLE_NAME AS ColumnZ FROM information_schema.tables I want the result …

sql sql-server calculated-columns
How can I alter this computed column in SQL Server 2008?

I have a computed column created with the following line: alter table tbPedidos add restricoes as (cast(case when restricaoLicenca = 1 …

sql sql-server-2008 edit alter calculated-columns
Using conditional to generate new column in pandas dataframe

I have a pandas dataframe that looks like this: portion used 0 1 1.0 1 2 0.3 2 3 0.0 3 4 0.8 I'd like to create a new column based on …

python pandas conditional calculated-columns
formula for computed column based on different table's column

Consider this table: c_const code | nvalue -------------- 1 | 10000 2 | 20000 and another table t_anytable rec_id | s_id | n_code --------------------- 2 | …

sql sql-server-2008 calculated-columns