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
Connect an Outlook 2003 client to an Exchange 2003 server protected by firewall
winlogon log
Basic SQL question
can't select distinct records with case statement
using OpenCurrentDatabase to open a accdr file
Exporting Access Query to an Excel Spreadsheet
Windows XP sp3 file c:\windows\system32\driver<wbr />s\atapi.sy<wbr />s is open or in use by another application. close all applications and retry
Remote Desktop - Protection Policy
two servers on one internet connection
why do i get "No mapping for the Unicode character exists in the target multi-byte code page"