|
-
Check constraint in create table
hi,
i am facing a small problem
there are 2 tables
table1
tran
-------
a/ctype
openbalance
name
a/cno
table two
restr
------
a/c type
minbalance
maxbalance
how will i put a check constraint in the create command of table1(tran) such
that depending on the a/c type the openbalance
should be greater than the minbalance of that a/ctype which we get from table2(restr)
create table tran
(
...
)
please help!!!!!!!!!!
Santosh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks