Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OUESTION 3 a ) What are the different types of database end users. b ) Describe the difference between a database and a table? c

OUESTION 3
a) What are the different types of database end users.
b) Describe the difference between a database and a table?
c) Discuss the roles of the following personnel in the database environment:
i. Database Administrator
ii. Logical database designer
iii. Application Developer
iv. End-user
d) Discuss the differences between the candidate keys and the primary key of a relation.
e) Describe the differences in meaning between the terms relation and relation schema.
f) Explain what is meant by a foreign key.
g) Define the term referential integrity constraint and give an example of one.
h) How does the referential integrity constraint contribute to database integrity?
i) Name three (3) relationships within a relational database.
QUESTION 4
a)
i. Identify and discuss each of the indicated dependencies.
ii. Create a database whose tables are at least in 2NF, showing the dependency diagrams for each table.
iii. Create a database whose tables are at least in 3NF, showing the dependency diagrams for each table.
b) Differentiate between the different types of SQL joins: (INNER) JOIN, LEFT (OUTER) JOIN, RIGHT (OUTER) JOIN, and FULL (OUTER) JOIN.
c) Write an SQL statement to create a database called CompanyDB.
3
d) Write an SQL statement to create a table called Employees that contains columns: EMPNO, ENAME, JOB, and SALARY.
e) Write an SQL statement that will display all information stored on the above-created table Employees.
f) Write an SQL statement to display the names of all employees that contains 'a' in their name.
g) Write an SQL statement to add a column called HireDate in the table Employees.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

Write an equivalent left-associative grammar.

Answered: 1 week ago

Question

What is the problem asking me?

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

7. List behaviors to improve effective leadership in meetings

Answered: 1 week ago

Question

6. Explain the six-step group decision process

Answered: 1 week ago