Assignment 1: Database Concepts, Basic SQL
Due 11:59pmEDT Friday, 2 September 2016
-
Database Properties.
Database systems typically offer physical data
independence. Briefly explain (e.g, a paragraph) the concept
of physical data independence. Give an example that helps explain
this concept.
-
Database System vs. File Processing.
-
Give an example of an information system where you should use a database rather than a file system to store the data. Give one reason why you should use a database for that example.
-
Give a different example of an information system where you should use a database rather than a file system to store the data, with a different reason why.
-
Give an example of an information system where you believe a file system would be a better choice than a database, and explain why.
-
Data Model.
What are the main objectives of a data model? Describe how the
relational model represents data.
-
SQL
Given the following relational table EVENTS:
Title | Date | Time | Location |
Bloomberg Day | Aug 30 | 10:00am | LWSN Commons |
Purdue Student Board (PSUB) Night | Aug 26 | 8:00pm | PMU Front Lawn |
Mosey Down Main Street | Sep 3 | 6:00pm | Main Street, Lafayette |
Black Lives Matter Panel Discussion | Sep 13 | 6:30pm | STEW Fowler Hall |
CERIAS New Student Welcome | Aug 30 | 6:00pm | LWSN 1142 |
B-Involved Fair | Aug 27 | 3:00pm | Memorial Mall Square |
Lafayette Photo Adventure Trip | Aug 26 | 6:00pm | Schlemann Hall |
Global Fest | Sep 13 | 11:00am | Morton Center |
Microsoft Day | Aug 31 | 10:00am | LWSN Commons |
show the results of the following SQL queries:
- select distinct Date FROM EVENTS;
- select Location, Date, Time FROM EVENTS WHERE Title LIKE 'Microsoft%';
- select * from EVENTS WHERE Title LIKE 'CERIAS%' AND Location LIKE 'REC%';
-
Given the table from the preceding question, write SQL queries to:
- Get the date, time, and location of the Black Lives Matter Panel Discussion.
- Find events in the Lawson building.
- Find something to do after 5pm on Aug 26.
-
Levels of Abstraction.
Briefly describe the three levels of abstraction. At what level would you consider the Events table from Question 4? Explain why.
Turning the assigment in
Please turn the assignment by uploading a PDF in
Blackboard (click on Assignment 1 and Attach File
. We prefer a typed/typeset answer. If you (clearly and readably) handwrite your answers, then turn in a (clear, readable) scan as a PDF. If you don't know of a way to generate a PDF, bring it up in PSO.