Answer to Question #218499 in Databases | SQL | Oracle | MS Access for Gershon Korley

Question #218499
1. Use an SQL statement to create a table called employees with the following attributes
I. Employee_id
II. Employee_name
III. Gender
IV. Department_id
2. Use an SQL statement to confirm the structure of the table.
1
Expert's answer
2021-07-19T00:35:20-0400

1..

CREATE TABLE Employees (
    Employee_id int,
    Employee_name varchar(20),
    Gender varchar(10),
    Department_id INT,
  	PRIMARY KEY(Employee_id)
)


2..

select *
from INFORMATION_SCHEMA.COLUMNS
where TABLE_NAME='Employee'

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