Answer to Question #268774 in Databases | SQL | Oracle | MS Access for vamshi

Question #268774

Create the given database with the condition that EMP_ID and FIRST_NAME will be the primary key of table and all unique values in LAST_NAME 


1
Expert's answer
2021-11-19T17:01:03-0500
CREATE TABLE My_database(

  EMP_ID INT  NOT NULL,

  FIRST_NAME  VARCHAR (20) NOT NULL,

  LAST_NAME   VARCHAR (20)  NOT NULL,

  SALARY    DECIMAL (18, 2),       

  DEPARTMENT  VARCHAR(25) NOT NULL,,    

  PRIMARY KEY (EMP_ID )

  PRIMARY KEY (FIRST_NAME )

  UNIQUE LAST_NAME  

);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS