The following formula is used in a column in Excel:
=IF(Variable_X(activecell)=Variable_X(cell directly above),IF(AND(Variable_Y(activecell)<>Variable_Y(cell directly above),ActualStartDate(activecell)<>0,FileDate(activecell)>=ActualStartDate(activecell)),1,0),"N")
I am really new to SQL and am wondering if this is possible as a SQL query where I would create a new column, and this formula would populate each cell in the column.
Variable_X and Variable_Y are two columns with respective values.
Thank you!