Advertisement
Advertisement
| 03.06.2008 at 04:08PM PST, ID: 23221604 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: |
SQL> CREATE TABLE TRANS(
2 TransactionID Int NOT NULL,
3 DateAcquired DateTime NOT NULL,
4 AcquisitionPrice Numeric (8,2) NULL,
5 PurchaseDate DateTime NULL,
6 SalesPrice Numeric (8,2) NULL,
7 AskingPrice Numeric (8,2) NULL,
8 CustomerID Int NULL,
9 WorkID Int NOT NULL,
10 CONSTRAINT TransactionPK PRIMARY KEY (TransactionID),
11 CONSTRAINT TransactionWorkFK
12 FOREIGN KEY(WorkID) REFERENCES WORK (WorkID)
13 ON DELETE NO ACTION
14 ON UPDATE NO ACTION,
15 CONSTRAINT TransactionCustomerFK
16 FOREIGN KEY(CustomerID) REFERENCES CUSTOMER (CustomerID)
17 ON UPDATE NO ACTION
18 ON DELETE NO ACTION,
19 CONSTRAINT SalesPriceRange CHECK
20 ((SalesPrice > 1000) AND (SalesPrice <=200000)),
21 CONSTRAINT ValidTransDate CHECK
22 (DateAcquired <= PurchaseDate)
23 );
ON DELETE NO ACTION
*
ERROR at line 13:
ORA-00905: missing keyword
|