Q)Write a query to create a table name “Profession_1” which contains EmployeeID,
Name,
Designation, Experience and Department_ID as columns.
A)CREATE TABLE profession_1 (employee_id NUMBER(3),
NAME VARCHAR2(20),
designation VARCHAR2(20),
experience NUMBER(2),
department_id NUMBER(3));
ALTER TABLE profession_1 MODIFY (employee_id NUMBER(3) UNIQUE NOT NULL,
name VARCHAR2(20) NOT NULL,
designation VARCHAR2(20) NOT NULL,
experience NUMBER(2),
department_id NUMBER(3) );
Designation, Experience and Department_ID as columns.
A)CREATE TABLE profession_1 (employee_id NUMBER(3),
NAME VARCHAR2(20),
designation VARCHAR2(20),
experience NUMBER(2),
department_id NUMBER(3));
ALTER TABLE profession_1 MODIFY (employee_id NUMBER(3) UNIQUE NOT NULL,
name VARCHAR2(20) NOT NULL,
designation VARCHAR2(20) NOT NULL,
experience NUMBER(2),
department_id NUMBER(3) );
No comments:
Post a Comment
If you Like my blog Spread it and help friends for whom this blog is useful for their career.