Consider the structure of three table department, computer and employee as shown below. John, a database admin would like to remove all three tables from database as they no longer are being used. Identify the correct commands.

department:

Column NameData Type/SizeDescriptionConstraints
dept_idintegerDepartment idprimary key
dept_namevarchar (30)Department namenot null

computer:

Column NameData Type/SizeDescriptionConstraints
comp_idintegerComputer idprimary key
comp_makevarchar (30)Computer makenot null

employee:

Column NameData Type/SizeDescriptionConstraints
emp_idintegerEmployee idprimary key
emp_nameVarchar (30)Employee namenot null
comp_idintegerComputer id Foreign key referring to comp_id column of computer table
dept_idvarchar (30)Department idForeign key referring to dept_id column of department table

DROP table department;

DROP table computer;

DROP table employee;

DROP table department CASCADE;

DROP table computer;

DROP table employee;

DROP table department CASCADE;

DROP table computer CASCADE;

DROP table employee;

DROP table employee;

DROP table department;

DROP table computer;

Verified Answer
Correct Option - cd

To get all Infosys Certified PostgreSQL Associate Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in