Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the database for an organization. Write the queries for the following: (i) Create the database (ii) Select the current database (iii)Create the following tables.

Consider the database for an organization. Write the queries for the following:

(i) Create the database

(ii) Select the current database

(iii)Create the following tables.

a. employee (emp_no,emp_name,DOB, address, doj, mobile_no, dept_no, salary).

b. department (dept_no, dept_name, location).


 (iv) Include necessary constraints.

(v) List all the tables in the current database

(vi) Display the structure of the employee table

(vii) Add a new column Designation to the employee table

(viii) Drop the column location from Dept table

(ix) Drop the tables

(x) Delete the database

Step by Step Solution

3.42 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

CREATE DATABASE emp This is the command used to create a database Use emp To select emp as the curre... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Using Excel & Access for Accounting 2010

Authors: Glenn Owen

3rd edition

1111532672, 978-1111532673

More Books

Students also viewed these Databases questions

Question

Where is the position?

Answered: 1 week ago

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago

Question

Prove that if Σ an is absolutely convergent, then a. an

Answered: 1 week ago