Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
kigroy
Starting Member
8 Posts |
Posted - 2011-01-10 : 16:41:41
|
| how do I create a computed column using a column from another table. Here is my code:ALTER TABLE lease ADD deposit AS (SELECT rent FROM lease, propertyForRent WHERE lease.propertyNo=propertyForRent.propertyNo);This is the error I receive:Error at line 1: ORA-00936: missing expressionNote: The columns and tables do actually exist. I have checked that. Thanks... |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
kigroy
Starting Member
8 Posts |
Posted - 2011-01-10 : 19:27:06
|
| ok thanks... |
 |
|
|
|
|
|