-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Atanu-P
Message 1 in Discussion
Hi, there, I need a small help reg SQL, Can anyone suggest 1.What is the
difference between an UserDefindedType DataType and a Domain Type DataType in
SQL. And When to use which?
For example, I can create a type as follows:CREATE TYPE PERSON AS OBJECT (NAME
VARCHAR2(30), SSN VARCHAR2(9));
I can reference your user-defined type as follows:CREATE TABLE EMP_PAY
(EMPLOYEE PERSON, SALARY NUMBER(10,2), HIRE_DATE DATE); And also
I can create a domain as follows:CREATE DOMAIN MONEY_D AS NUMBER(8,2);
I can reference the domain as follows: CREATE TABLE EMP_PAY (EMP_ID
NUMBER(9), EMP_NAME VARCHAR2(30), PAY_RATE MONEY_D); So where is
the difference...? 2. What is the Difference between a Primary Key and Unique
in a database table, except that, Primary key does not accept NULL value where
as Unique Key accepts? Any help highly appreaciated. Thanks
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]