Click here to Skip to main content
15,888,984 members
Home / Discussions / Database
   

Database

 
QuestionProblem with the Following SQL Query Pin
Vimalsoft(Pty) Ltd9-May-08 5:37
professionalVimalsoft(Pty) Ltd9-May-08 5:37 
AnswerRe: Problem with the Following SQL Query Pin
Blue_Boy9-May-08 6:18
Blue_Boy9-May-08 6:18 
GeneralRe: Problem with the Following SQL Query Pin
Vimalsoft(Pty) Ltd9-May-08 22:57
professionalVimalsoft(Pty) Ltd9-May-08 22:57 
GeneralRe: Problem with the Following SQL Query Pin
Blue_Boy10-May-08 1:44
Blue_Boy10-May-08 1:44 
AnswerRe: Problem with the Following SQL Query Pin
Ashfield9-May-08 22:40
Ashfield9-May-08 22:40 
QuestionForeign Key in SQL server Pin
Arun Krishnan9-May-08 1:51
Arun Krishnan9-May-08 1:51 
AnswerRe: Foreign Key in SQL server Pin
Ashfield9-May-08 3:09
Ashfield9-May-08 3:09 
AnswerRe: Foreign Key in SQL server Pin
Hesham Amin9-May-08 3:13
Hesham Amin9-May-08 3:13 
Arun Krishnan wrote:
-thr s a table EMPDETAILS with columns empid,name,age
-empid in EMPDETAILS foreign key references empid in
LOGIN table.
-LOGIN table has some data.
-when i insert values into name & age of EMPDETAILS
table, the values r inserted with NULL values for empid
field.
How can i solve this?????


Do you pass the empid? if not, how do you expect the database to know which one do you mean?

Arun Krishnan wrote:
How can i insert values into empid of EMPDETAILS table & LOGIN table at the same time,without using IDENTITY constraint????.......
-empid in LOGIN table s d primary key & in EMPDETAILS s d foreign key.
- i have to insert a string value for empid


No problem, insert into EMPDETAILS table the same value of empid that you insert into LOGIN.

By the way, using s d instead of is the does not save you a lot of your time, but makes reading your posts harder.

Hesham A. Amin
My blog

AnswerRe: Foreign Key in SQL server Pin
Arsene Cormier9-May-08 7:40
Arsene Cormier9-May-08 7:40 
AnswerRe: Foreign Key in SQL server Pin
Rob Graham10-May-08 7:12
Rob Graham10-May-08 7:12 
QuestionDelete and Truncate Pin
.NET- India 9-May-08 1:29
.NET- India 9-May-08 1:29 
AnswerRe: Delete and Truncate Pin
Ashfield9-May-08 1:54
Ashfield9-May-08 1:54 
GeneralRe: Delete and Truncate Pin
.NET- India 9-May-08 2:27
.NET- India 9-May-08 2:27 
GeneralRe: Delete and Truncate Pin
Brady Kelly9-May-08 2:58
Brady Kelly9-May-08 2:58 
GeneralRe: Delete and Truncate Pin
.NET- India 9-May-08 3:05
.NET- India 9-May-08 3:05 
GeneralRe: Delete and Truncate Pin
Ashfield9-May-08 3:12
Ashfield9-May-08 3:12 
GeneralRe: Delete and Truncate Pin
.NET- India 9-May-08 3:25
.NET- India 9-May-08 3:25 
GeneralRe: Delete and Truncate Pin
Ashfield9-May-08 22:32
Ashfield9-May-08 22:32 
GeneralRe: Delete and Truncate Pin
.NET- India 10-May-08 1:22
.NET- India 10-May-08 1:22 
GeneralRe: Delete and Truncate Pin
Rob Graham10-May-08 7:24
Rob Graham10-May-08 7:24 
GeneralRe: Delete and Truncate Pin
Ashfield11-May-08 20:54
Ashfield11-May-08 20:54 
QuestionORACLE Commit problem--- Error 8197 Pin
megha_gharote8-May-08 23:36
megha_gharote8-May-08 23:36 
AnswerRe: ORACLE Commit problem--- Error 8197 Pin
Arsene Cormier9-May-08 7:38
Arsene Cormier9-May-08 7:38 
GeneralRe: ORACLE Commit problem--- Error 8197 Pin
megha_gharote11-May-08 18:20
megha_gharote11-May-08 18:20 
GeneralDrop and Log Constraints Pin
Brady Kelly8-May-08 23:18
Brady Kelly8-May-08 23:18 

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.