Microsoft
Software
Hardware
Network
Question : Referential Integrity and Constraint Question
Hi,
I have two tables, "Customer" and "Inactive"
Customer Table
cust_id (PK) cust_name status
1 ABC Company 0
4 XYG Company 2
Status Table
status(PK) status_desc
0 some desc
1 diff desc
2 2nd desc
I want to create a constraint between the PK of the Status table and the Status column in the Customer table. What would be the SQL needed to do this?
I basically want to prevent a user from creating a record in the Customer Table with a value in the status column that doesn't exist in the Status table.
Hope that makes sense.
-ws
Answer : Referential Integrity and Constraint Question
ALTER TABLE Customer ADD FOREIGN KEY (status) REFERENCES Status(status)
Random Solutions
I want to be able to access my internally hosted website using the domain name
Vista - Repair
BSOD 0X40000080
Need to sync a Blackberry 9000 with Outlook. The Blackberry has several old contacts in it that need to be deleted. How do I make it so that only the Outlook contacts replace all the Blackberry contac
Get autonumber ( unique ID ) of newly inserted record, then insert value into a relating table, ms access 2003
Access 2003 report to print labels
How to represent a null in a string?
ie 6 display problem
WHERE clause with DLookup
how do i reinstall the client access server role for exchange 2007 need immediate assistance