devxlogo

Quickly Create an Aggregate Column in SQL Server 7.0

Quickly Create an Aggregate Column in SQL Server 7.0

You can create an aggregate column in a SQL 7.0 table by specifying it during creating the table itself. This is useful if you want that aggregate column to be a mathematically computed column. In the example, totalprice is an aggregate column in the Order Table:

 CREATE TABLE Order (unitprice money,qty 	smallint,totalprice as unitprice * qty) 

devx-admin

Share the Post: