Test if Data for a Field is UNIQUE
- From: "Michael42" <melliott42@xxxxxxxxx>
- Date: 23 Jan 2006 05:32:02 -0800
Hello,
In Oracle 9i R2 on Solaris 8 I have a table (LOCATION) that has data.
I want to create a Foreign Key (FK) and base it on an existing field
(location_key) in this table. I am not 100% sure the values are unique
(which is required to make it a FK for a child table).
Can someone please share SQL that can be used to determine if the
values in my LOCATION table field location_key field are UNIQUE?
Thanks,
Michael42
.
- Follow-Ups:
- Re: Test if Data for a Field is UNIQUE
- From: Martin Doherty
- Re: Test if Data for a Field is UNIQUE
- From: Mladen Gogala
- Re: Test if Data for a Field is UNIQUE
- From: Walt
- Re: Test if Data for a Field is UNIQUE
- From: Mark C. Stock
- Re: Test if Data for a Field is UNIQUE
- Prev by Date: Re: SUSE 10 Oracle 10G R2
- Next by Date: Re: Sql Trace to detect concurrency issues
- Previous by thread: SUSE 10 Oracle 10G R2
- Next by thread: Re: Test if Data for a Field is UNIQUE
- Index(es):
Relevant Pages
|