Question

In: Computer Science

How to generate database diagram for a database that stores information about the downloads that users...

  1. How to generate database diagram for a database that stores information about the downloads that users make.

Each user must have an email address, first name, and last name.

Each user can have one or more downloads.

Each download must have a filename and download date/time.

Note: I want steps on how to generate this diagram using oracle SQL developer

Each product can be related to one or more downloads.

Each product must have a name.

Solutions

Expert Solution

Once you create your database schema and create new tables for User, Product and Downloads the follow below steps to generate database diagram using Oacle SQL developer.

create table Users(
    first_name varchar(50),
    last_name varchar(50),
    email_address varchar(50) primary key
);

create table product(
    product_name varchar(50) primary key
);

create table downloads(
    filename varchar(50),
    date_time TIMESTAMP (2) NOT NULL,
    constraint filenamefk foreign key (filename) REFERENCES product(product_name),
    email_address varchar(50),
    constraint email_addressfk foreign key (email_address)  REFERENCES users(email_address)
);

Create a diagram for existing database schema or its subset as follows:

  1. Click File → Data Modeler → Import → Data Dictionary.
  2. Select a DB connection (add one if none).
  3. Click Next.
  4. Check one or more schema names.
  5. Click Next.
  6. Check one or more objects to import.
  7. Click Next.
  8. Click Finish.

The ERD is displayed.

Export the diagram as follows:

  1. Click File → Data Modeler → Print Diagram → To Image File.
  2. Browse to and select the export file location.
  3. Click Save.

Diagram:


Related Solutions

Draw an ER diagram with these attributes ( ER diagram for SQL for a library database)...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database) DRAW ER DIAGRAM AS ONE FULL LIBRARY SYSTEM, NOT DIFFERENT FOR EACH ATTRIBUTE. Attributes :           Customer Cust_ID: key identifier, required, simple, single valued Cust_Name{ first name, last name}: Key Identifier, simple;composite, multivaried   Address{street, city,zip,state}: Customer address, required, composite, single can be derived from zip (placeholder, there should be another attribute here to represent the books taken out by the customer. Not sure.)           Inventory Book_ID:...
bulk insert dbo.Order_ from 'C:\Users\Ulrica Souverain\Downloads\tableconvert_csv_hlcump.csv' with ( DATAFILETYPE = 'char', FIELDTERMINATOR = '|', Batchsize =...
bulk insert dbo.Order_ from 'C:\Users\Ulrica Souverain\Downloads\tableconvert_csv_hlcump.csv' with ( DATAFILETYPE = 'char', FIELDTERMINATOR = '|', Batchsize = 1, FIRSTROW = 2, lastrow = 100, ROWTERMINATOR = '/n', MAXERRORS = 100 ); My sql server keeps saying 0 row affect after I tried to insert data
Thinking about the types of users: Internal and External users, How do each type of user...
Thinking about the types of users: Internal and External users, How do each type of user effect the accounting process in an organization? What types of users have the most impact and why? responses must be 100 words minimum.
A certain business keeps a database of information about its customers. A. Let C be the...
A certain business keeps a database of information about its customers. A. Let C be the rule which assigns to each customer shown in the table his or her home phone number. Is C a function? Explain your reasoning.
For this part, assume you are entering information about transactions into their relational database. You will...
For this part, assume you are entering information about transactions into their relational database. You will be entering financial information, but you will also need to consider the other types of information Big Marker would want to know about that event. You will also utilize what you have learned to identify internal controls specific to each transaction. The transactions are as follows: a. Billed 30 communities for monthly dues of $600 (each). b. Borrowed $10,000 from First National Bank with...
For each of the following users, (i) explain what accounting information they require about a business...
For each of the following users, (i) explain what accounting information they require about a business and (ii) name two statements or reports in which such information are available? Investors Banks Production manager Divisional manager Human resource manager responsible for performance management
True/False: A primary goal of a database system is to share data with multiple users
True/False: A primary goal of a database system is to share data with multiple users
To what extent should end users be involved in the selection of a database management system...
To what extent should end users be involved in the selection of a database management system and database design?
There are many information that might be useful for users of financial statements. How- ever, the...
There are many information that might be useful for users of financial statements. How- ever, the information are not always mandated in the form of accounting standard. A. Should all the accounting information be mandated for presentation and disclosure in financial statements by way of accounting standards? Why? B. What component/part of the Conceptual Framework should the standard setters use to decide whether an accounting standard should be issued for mandating or not mandat- ing the disclosure of accounting information?...
There are many information that might be useful for users of financial statements. How- ever, the...
There are many information that might be useful for users of financial statements. How- ever, the information are not always mandated in the form of accounting standard. A. Should all the accounting information be mandated for presentation and disclosure in financial statements by way of accounting standards? Why? B. What component/part of the Conceptual Framework should the standard setters use to decide whether an accounting standard should be issued for mandating or not mandat- ing the disclosure of accounting information?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT