B
Beth
Hello,
I have a table with 3 columns where the data can look like this:
Column A Column B Column C
blah blah 123
abc
test test
blah blah 456
test2test2 def
ghi
I need to update column C with the value in Column B when Column A = "blah
blah". If it does not equal "blah blah", then I need to populate column C
with the value in Column B the last time Column A = "blah blah". So, in the
above example, I'd need it to look like this:
Column A Column B Column C
blah blah 123 123
abc 123
test test 123
blah blah 456 456
test2test2 def 456
ghi 456
In Excel, I can do it with this formula: =if(column A="blah blah", +column
B, +column C one above)
The "+column C one row above" is the same field (column) in the row above.
I have 500k records which Excel won't accomodate. I've talked to my SQL
gurus who can't figure out how to do it. Any suggestions?
THANK YOU!
I have a table with 3 columns where the data can look like this:
Column A Column B Column C
blah blah 123
abc
test test
blah blah 456
test2test2 def
ghi
I need to update column C with the value in Column B when Column A = "blah
blah". If it does not equal "blah blah", then I need to populate column C
with the value in Column B the last time Column A = "blah blah". So, in the
above example, I'd need it to look like this:
Column A Column B Column C
blah blah 123 123
abc 123
test test 123
blah blah 456 456
test2test2 def 456
ghi 456
In Excel, I can do it with this formula: =if(column A="blah blah", +column
B, +column C one above)
The "+column C one row above" is the same field (column) in the row above.
I have 500k records which Excel won't accomodate. I've talked to my SQL
gurus who can't figure out how to do it. Any suggestions?
THANK YOU!