Click here to Skip to main content
15,905,913 members
Home / Discussions / Database
   

Database

 
GeneralRe: Select * from @TableName Pin
Jörgen Andersson27-Jul-10 22:37
professionalJörgen Andersson27-Jul-10 22:37 
AnswerRe: Select * from @TableName Pin
Mycroft Holmes27-Jul-10 22:33
professionalMycroft Holmes27-Jul-10 22:33 
AnswerRe: Select * from @TableName Pin
AndieDu27-Jul-10 22:59
AndieDu27-Jul-10 22:59 
GeneralRe: Select * from @TableName Pin
small_programmer28-Jul-10 2:24
small_programmer28-Jul-10 2:24 
GeneralRe: Select * from @TableName Pin
Simon_Whale28-Jul-10 3:56
Simon_Whale28-Jul-10 3:56 
AnswerRe: Select * from @TableName Pin
dan!sh 28-Jul-10 4:10
professional dan!sh 28-Jul-10 4:10 
QuestionMDX crossjoin is not responding...it is giving system.outofmemoryexception on below query excution Pin
vamanpnayak27-Jul-10 20:52
vamanpnayak27-Jul-10 20:52 
QuestionTable with Multiple Foreign Keys Pin
ASPnoob27-Jul-10 14:25
ASPnoob27-Jul-10 14:25 
Hi All,
I'm trying to create a table that has one primary key with multiple foreign keys which reference different tables. The following is how I declared my table:

CREATE TABLE COURSE_SECTION
(
Csecid NUMBER(8),
Secnum NUMBER(2) NOT NULL,
Maxenrl NUMBER(4) NOT NULL,
Currenrl NUMBER(4) NOT NULL,
Cid NUMBER(6) NOT NULL,
Termid NUMBER(5) NOT NULL,

Day VARCHAR2(10),
Locid NUMBER(5),
Fid NUMBER(4),

primary Key (Csecid),
foreign Key (Cid) references COURSE(Cid),
foreign Key (Termid) references TERM(Termid),
foreign Key (Locid) references LOCATION(Locid),
foreign Key (Fid) references FACULTY(Fid)
);

I've receive the error message "unknown command beginning ........ - rest of line ignored" for many of the lines when I execute the above script in Oracle SQL Plus. I have tried many different things like rewording the lines or capitalize the letters of the attributes but my attempts were futile. Can you please point out what I have done wrong? Thank you in advance for your help.
QuestionSelf Referential table Pin
indian14327-Jul-10 7:33
indian14327-Jul-10 7:33 
AnswerRe: Self Referential table Pin
PIEBALDconsult27-Jul-10 8:00
mvePIEBALDconsult27-Jul-10 8:00 
GeneralRe: Self Referential table Pin
indian14327-Jul-10 8:13
indian14327-Jul-10 8:13 
GeneralRe: Self Referential table Pin
PIEBALDconsult27-Jul-10 16:22
mvePIEBALDconsult27-Jul-10 16:22 
GeneralRe: Self Referential table Pin
Luc Pattyn27-Jul-10 16:55
sitebuilderLuc Pattyn27-Jul-10 16:55 
QuestionRetrieve table structure with OPENXML Pin
Tridip Bhattacharjee27-Jul-10 3:21
professionalTridip Bhattacharjee27-Jul-10 3:21 
QuestionRemove Replication Artefacts from MSSQL 2005 Database Pin
Joschwenk66627-Jul-10 1:49
Joschwenk66627-Jul-10 1:49 
AnswerRe: Remove Replication Artefacts from MSSQL 2005 Database Pin
Yusuf27-Jul-10 4:15
Yusuf27-Jul-10 4:15 
QuestionGet Previous number Pin
SatyaKeerthi1526-Jul-10 21:00
SatyaKeerthi1526-Jul-10 21:00 
AnswerRe: Get Previous number Pin
Mycroft Holmes26-Jul-10 21:41
professionalMycroft Holmes26-Jul-10 21:41 
Questionalternative to rewire CASE WHEN in query Pin
prachidalwadi25-Jul-10 19:28
prachidalwadi25-Jul-10 19:28 
AnswerRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance26-Jul-10 3:55
Herman<T>.Instance26-Jul-10 3:55 
AnswerRe: alternative to rewire CASE WHEN in query Pin
scottgp26-Jul-10 6:06
professionalscottgp26-Jul-10 6:06 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi26-Jul-10 17:12
prachidalwadi26-Jul-10 17:12 
GeneralRe: alternative to rewire CASE WHEN in query Pin
scottgp27-Jul-10 1:40
professionalscottgp27-Jul-10 1:40 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi3-Aug-10 19:36
prachidalwadi3-Aug-10 19:36 
GeneralRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance28-Jul-10 3:38
Herman<T>.Instance28-Jul-10 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.