PDA

View Full Version : SQL / Oracle


EVB
01-11-2005, 20:15
Anyone ever used this before?

Doing uni assignment, and looking at the entity relationship model, I have 11 feet on the entities. Does that mean I have to have 11 foreign keys?

Thanks

Andy_SRi
01-11-2005, 20:41
I manage ms sql servers? :| :lol:

Dont know how that helps just thought i'd say :look:

EVB
01-11-2005, 20:42
You ever created foreign keys then :lol:

Andy_SRi
01-11-2005, 20:48
hmm kinda had to create keys when setting up replication, im not a db person though I just make it work when the developers f*ck everything up (every other day)

EVB
01-11-2005, 20:49
Well thats poo.

Andy_SRi
01-11-2005, 20:52
you see if you woulda put me on your list of people to meet :cry: I might of gone looking for the answer

EVB
01-11-2005, 20:54
:cry:

gonkowonko
01-11-2005, 21:15
foriegn keys are links to primary keys in another table

if you need any help drop me a pm as i design databases in MS SQL access and Oracle for a living ;)

EVB
01-11-2005, 22:07
Nice one :)

Duna
01-11-2005, 23:02
I use a program called Oracle at work and its fooking ****e!

gonkowonko
02-11-2005, 08:33
Oracle is the best database system in the world only problem is to use it effectly you have to program it and set it all up in SQL ;)

Andy_SRi
02-11-2005, 08:55
aye oracle is the dogs danglies....

Just an arseache to sort out properly as gary said.

Duna
02-11-2005, 09:40
Everyone in our company hates oracle with a passion - ive only met one person who likes it! I think we use oracle discoverer and oracle viewer

Keith
02-11-2005, 16:27
Everyone in our company hates oracle with a passion - ive only met one person who likes it! I think we use oracle discoverer and oracle viewer

i use oracle and discoverer!

gonkowonko
02-11-2005, 16:42
i use sql plus :) love it

Andy_SRi
02-11-2005, 16:43
I use ms sql server 2000 stnd and ent edition :| all nice n easy :lol:

gonkowonko
02-11-2005, 16:44
use that too only cause our IT department are afraid of the oracle server :P

EVB
02-11-2005, 16:45
All done :)

Thanks Gaz :)

Andy_SRi
02-11-2005, 16:46
use that too only cause our IT department are afraid of the oracle server :P


I stick by microsoft stuff...... Cos it breaks and keeps me in a job :lol:

gonkowonko
02-11-2005, 16:49
No worries mate ;)

Yeah it does tend to always break!!!! but its normally down to the user ;)

Andy_SRi
02-11-2005, 16:51
Yup *looks over at developers*

Duna
02-11-2005, 16:54
Quote:
Originally Posted by Duna
Everyone in our company hates oracle with a passion - ive only met one person who likes it! I think we use oracle discoverer and oracle viewer


i use oracle and discoverer!


Im not alone then!!!

andym765
02-11-2005, 17:03
I use oracle software :)

gonkowonko
02-11-2005, 19:21
see andy u know oracle is far superior

:P

Si
02-11-2005, 19:34
I use Oracle for a few years at uni too :)

Andy_SRi
02-11-2005, 19:38
see andy u know oracle is far superior

:P


Erm yeah......



.....but dodgy m$ products pay my wages :D

EVB
04-11-2005, 09:20
You dont need to drop the keys individually do you?

Just drop the tables in correct order?

pussy-galor
04-11-2005, 09:33
haven't got a clue but if it is what i think it is then yes i have used oracle....used to work for a mobile phone supplier.....i think i may of confused myself :?

gonkowonko
04-11-2005, 09:40
You dont need to drop the keys individually do you?

Just drop the tables in correct order?

Explain a little more please as i dont understand what u mean??

U trying to delete talbles?

EVB
04-11-2005, 09:42
Yeh, DROP TABLE TITLE;

For example, I dont have to delete all PK/FK seperately do I?

gonkowonko
04-11-2005, 10:00
yep just drop the table with the foreign keys first then drop the others :thumbs:

as u said drop table ........

CraigM
05-11-2005, 09:29
I use both SQL and Oracle. :thumbs:

EVB
07-11-2005, 11:56
This is gay :lol:

Gotta get this in Wednesday :(

Having problems creating object types

CREATE OR REPLACE TYPE Contact_Details As OBJECT(
Landline VarChar2(12),
Mobile_Phone VarChar2(12),
Fax VarChar2(12),
Work_Phone VarChar2(12))
/

CREATE OR REPLACE TYPE Address As OBJECT(
House_Number VarChar2(4),
Street_Name VarChar2(18),
Town VarChar2(20),
County VarChar2(25),
Postcode VarChar2(10))
/

CREATE TABLE Member(
Member_ID VarChar2(25),
FirstName VarChar2(15),
FamilyName VarChar2(25),
Address REF object_type_name SCOPE IS object_table_name,
Contact_Detail REF object_type_name SCOPE IS object_table_name);

Basically Address and Contact_Details are object tables, and Member is a normal table, with these two objects as columns.

What is the object_type_name * object_table_name in Member table?

LOST :(