Click here to Skip to main content
15,881,744 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
CREATE TABLE empDetails (
EMP_ID int(11) primary key NOT NULL,
password varchar(10) NOT NULL
);


First tabel is crete. i got error second table. i am using manaement studio 2008R2.

CREATE TABLE LEAVE_DETAILS (
EMP_ID int(11) foreign key NOT NULL,
leaveEarnedBalance float(2) ,
leaveEarnedCredit float(2),
leaveCasualBalance float(2) ,
leaveCasualCredit float(2),
leaveMaternityBalance float(2) ,
leaveMaternityCredit float(2)
);

how to rectify this
Posted

1 solution

try this
C#
CREATE TABLE LEAVE_DETAILS ( 
EMP_ID INT NOT NULL,
leaveEarnedBalance float(2) ,
leaveEarnedCredit float(2),
leaveCasualBalance float(2) ,
leaveCasualCredit float(2),
leaveMaternityBalance float(2) ,
leaveMaternityCredit float(2)
);
 
Share this answer
 
Comments
2011999 25-Feb-12 1:37am    
thank u
Command(s) completed successfully.
Aniket Yadav 25-Feb-12 1:38am    
Please accept and vote the answer if it has helped you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900