Professional Documents
Culture Documents
UGRD ITE6100B Fundamentals of Database System PDF
UGRD ITE6100B Fundamentals of Database System PDF
File Content:
•Prelim Quiz 1
•Prelim Quiz 2
•Prelim Exam
•Prelim Lab Examination
•Prelim Lab Quiz
•Midterm Quiz 1
•Midterm Quiz 2
•Midterm Exam
•Midterm Lab Examination
•Midterm Lab Quiz
•Final Quiz 1
•Final Quiz 2
•Final Lab Activity
Who is responsible in administering the primary and secondary resource in the database?
Answer: database administrator
People whose jobs require access to the database for querying, updating, and generating
reports.
Answer: End users
Data model is a collection of concepts that is used to describe the structure of a database.
Answer: True
It is a question or an inquiry, sometimes loosely used for all types of interactions with databases.
Answer: Query
There’s no difference between the description of database and the database itself.
Answer: False
Physical data models is a concept that shows how the data is stored on the computer.
Answer: True
Data abstraction is the data type, relationships and constraints that apply to the data.
Answer: False
They are liable for identifying the data to be stored within the database and for selecting
appropriate structures to represent and store this data.
Answer: database designers
Attribute is a name for a set of similar things that you can list. Like objects, events, people.
Answer: False
The interface allows users to access their data through their mobile phone or mobile device.
Answer: Applications for mobile devices
Used to performed or rollback the changes that we made in the database using DML
commands.
Answer: Transaction Control Language (TCL)
Like Web search engines (engine like Google), which the user can specify a string or any
keywords and expect to get a relevant result.
Answer: Keyword-based Database Search
For each entity instance the value of the identifier attribute is Unique.
Answer: True
Its is one or more columns of a relation or table that is used to identify a record.
Answer: Key
Minimum Cardinality describes the minimum number of entity instances that must participate in
a relationship.
Answer: True
Matching Type
Table
Answer: Relation
All possible column values
Answer: Domain
Table definition
Answer: Schema of relation
Row
Answer: Tuples
Matching Type
A single entity instance of one entity class is related to a multiple entity instance of another
entity class.
Answer: One-to-Many
Each entity instance of one entity class is related to a multiple entity instance of another entity
class; and vice versa.
Answer: Many-to-Many
A single entity instance of one entity class is related to a single entity instance of another entity
class.
Answer: One-to-One
Maximum Cardinality describes the maximum number of entity instances in the relationship.
Answer: True
Matching Type
Relational database schema commonly defines:
Columns
Answer: Name, data type,size, value range
Tables
Answer: name, primary key
Constraints
Answer: all kinds of keys
Matching Type
Common Data Type
Character
Answer:Text
Date
Answer: Time
Boolean
Answer: true/false
Numeric
Answer: Integer
Matching Type
Normal Forms
NO Transitive Dependency
Answer: 3rd Normal Form (3NF)
Multi-value dependency
Answer: 4th Normal Form (4NF)
NO Partial Dependency
Answer: 2nd Normal Form (2NF)
Matching Type.
What does SQL do
AND operator displays a record if all the conditions separated by AND are FALSE.
Answer: False
AND operator displays a record if all the conditions separated by AND are TRUE.
Answer: True
Include all qualified records from the right table in the join condition even if they do not have
matching records in the left table.
Answer: Right join
Columns or expressions can be in the SELECT clause only if they are in the GROUP BY clause.
Answer: True
Matching Type
Aggregate Functions
Include all qualified records from the left table in the join condition even if they do not have
matching records in the right table.
Answer: Left join
Include all qualified records from both tables in the join condition.
Answer: Full join
They are liable for identifying the data to be stored within the database and for selecting
appropriate structures to represent and store this data.
Answer: database designers
There’s no difference between the description of database and the database itself.
Answer: False
For each entity instance the value of the identifier attribute is Unique.
Answer: True
Who is responsible in administering the primary and secondary resource in the database?
Answer: database administrator
Data model is a collection of concepts that is used to describe the structure of a database.
Answer: True
Physical data models is a concept that shows how the data is stored on the computer.
Answer: True
People whose jobs require access to the database for querying, updating, and generating
reports.
Answer: End users
It is a question or an inquiry, sometimes loosely used for all types of interactions with databases.
Answer: Query
Attribute is a name for a set of similar things that you can list. Like objects, events, people.
Answer: False
Like Web search engines (engine like Google), which the user can specify a string or any
keywords and expect to get a relevant result.
Answer: Keyword-based Database Search
Used to performed or rollback the changes that we made in the database using DML
commands.
Answer: Transaction Control Language (TCL)
Used for creating tables, schema etc. in database.
Answer: Date Cefinitian Language (DDL)
The interface allows users to access their data through their mobile phone or mobile device.
Answer: Applications for mobile devices
In the given relationship, the doctor attends to the patient. What is the relationship between
doctor and patients?
Answer: attends
Given the following relationship, the patient was assigned to a room. What is the relationship
between patient and room?
Answer: assigned
Entity CUSTOMER can be characterized by Id, Name, and Address. What is sub-attributes of
the customer address?
Answer: number, street, city, and state
An Engineer builds a house with few workers. Based on the given statement, what is the
relationship between engineer and a few workers?
Answer: builds
An Engineer builds a house with few workers and raw materials participating in this building at
the same time. What are the entities involved in this relation?
Answer: Engineer, house, few workers and raw materials
Using the table below, what is the UNF of the following table?
Based on the given table above, what is the primary key for the user table?
Answer: userid, companyid
UserTable(userid, name)
Using the above table, what is the primary key of the table named UserTable?
Answer: userid
-------------+------------+----------+------------
You need to create a table for a salesmen table, which statement creates the table above?
Answer: Create table salesmen( salesman_id int not null primary key, name varchar(30), city
varchar(30), commission decimal(4,2));
-------------+------------+----------+------------
Which SQL statement below displays all the information of all salesmen?
Answer: Select * from salesmen;
Which SQL statement will display the names and city of the salesman, who belongs to the city
of Paris?
Answer: Select name, city from salesmen where city='Paris';
YEAR SUBJECT CATEGORY WINNER
COUNTRY
Using the nobel_win table above, give the name of the 'Physics Scientist' winner since 1970.
Using the nobel_win table above, you need to write all the details of the Chemistry
winner(year,subjectcategory, winner, country) from the year 1970.
Using the above nobel_win table, you need to generate a report that will show all the Physiology
winners in the year 1970.
Answer: Select year, subjectcategory, winner from nobel_win where subjectcategory =
'Physiology Scientist' and year= 1970;
Using the salesmen table above, you need to generate a report that shows the name and
commission from the table salesmen.
You need to generate a report that will show all the salesmen's commissions with less than or
equal to 15%.
Which SQL statement displays the city of the salesmen that starts with the letter P?
Answer: Select name, city from salesmen where city like 'P%';
Which SQL statement will display the name of the winner from Physiology Scientist?
Answer: Select subjectcategory, winner from nobel_win where subjectcategory='Physiology
Scientist';
Given the following data definition, select all city names in descending order:
TABLE cities
Write an SQL query to find the employee id whose salary lies in the range of 9000 and 15000.
Answer: SELECT EmpId, Salary FROM EmployeeSalary WHERE Salary BETWEEN 9000 AND
15000;
Write an SQL query to fetch all the employees who either live in California or work under a
manager with ManagerId – 321.
Answer: SELECT EmpId, City, ManagerId FROM EmployeeDetails WHERE City='California' OR
ManagerId='321';
Write an SQL query to fetch the employees whose name begins with any two characters,
followed by a text “hn” and ending with any sequence of characters.
Answer: SELECT FullName FROM EmployeeDetails WHERE FullName LIKE ‘__hn%’;
Fetch all the employees who are not working on any project.
Answer: SELECT EmpId FROM EmployeeSalary WHERE Project IS NULL;