subject

1) (5 points) Examine the below relational schema; Apply it based on a specific context in a specific Ministry in Oman, and modify it: Replace RELATION 2 by a name of an applicable event entity (as an associative entity) and RELATION 3 by a person/concept/object entity ADD 1:1 or 1:M unary relationship to CITY or RELATION3 entity. Add different data types (char, varchar, date, integer, decimal etc.). Insert your modified relational schema as an image. 2) (20 points) WRITE a database description for each of the above relations(tables) using SQL DDL CREATE and ALTER(shorten, abbreviate or change any data name as needed in your SQL version). Don’t forget to include primary key constraints, foreign keys constraints, check constraints( for character and numeric columns with different conditions), default, unique and required constraints etc. Name table starting tbl such as tblYournameCity.
< >

3) (15 points) Add data using different ways of INSERT command (2 rows for one-side tables, and 3 rows for many-side tables).

<< PASTE your answer here including SQL INSERT command and each table view using : SELECT * from tablename>>

4) (15 points) Use SELECT statement to report three queries (with their outputs and description based on the below:
a. A query includes (1), a query includes two tables, and a query includes three tables, and a query of one table with unary relationship.
b. Each query must include conditions and order by, and select specific columns (not *).
c. Integrate calculated column, aggregated functions, group by and having, and sub query in your queries.
d. Add a new function in your query that is not covered in this course.

<< PASTE your answer here including : 1- Query one sentence description,2- SQL select statement and 3-query output>>.

Assignment will be graded based on completeness, accuracy (syntax & logic), relevancy and creativity.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:30
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. –––. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. –––. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
question
Computers and Technology, 25.06.2019 15:30
How can improving one’s reasoning skills also improve one’s performance on the job?
Answers: 1
You know the right answer?
1) (5 points) Examine the below relational schema; Apply it based on a specific context in a specifi...
Questions
question
Mathematics, 05.02.2020 12:44
Questions on the website: 13722361