4. (Total 10 points) Coursera hires you as a database analyst. You find that the database...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. (Total 10 points) Coursera hires you as a database analyst. You find that the database structure of Coursera is outdated. So, you become a team leader for the new database project. Now, you want to start to modify the simplest database tracking customers and classes. To track your customers' information, Coursera should have a customer profile such as a Username, password, name of the customer, email, and member type (Premium, Regular, Trial, and Student). Each of the customers must store at least one credit card information, including credit card number, and credit card type such as VISA, Master, American Express, etc. (You can have an entire new entity called card type. But, in this case, you will not consider the option.), expiration month, expiration year, and 3 digits of security code. (Coursera does not accept the family card.) Each of the customers can study as many online classes as possible, while the customer does not need to have any courses to take. Each online class has its ID and name of the class. Multiple classes would have the same name, but the class ID should be different. In the online class information, you should be able to track the member's type who can attend the class. Sometimes, one online class is available to many different types of members. (1) (3 points) Create the entity relationship diagram for an appropriate data model. Be sure to indicate the identifier (Primary keys and foreign keys) for each entity (if any) and the relationships between entities using the crow's-feet method. (HINT) For the first step of your ER Diagram, you should have four entities. But, if you do not normalize those, you will get 1 point or less. (2) (2 point) Create an Entity Data Model (Entities only) with two fake data in each entity. (3) (2 point) Please write a SQL code to print the names of customers and member types when the customer's card is VISA. (4) (2 points) Display a Cartesian product table using the fictitious data generated from Q4(2), which represents the outcomes of Q4(3). (5) (1 point) Present the result table obtained from the SQL query in Q4(3) utilizing the fabricated data generated in Q4(2). 4. (Total 10 points) Coursera hires you as a database analyst. You find that the database structure of Coursera is outdated. So, you become a team leader for the new database project. Now, you want to start to modify the simplest database tracking customers and classes. To track your customers' information, Coursera should have a customer profile such as a Username, password, name of the customer, email, and member type (Premium, Regular, Trial, and Student). Each of the customers must store at least one credit card information, including credit card number, and credit card type such as VISA, Master, American Express, etc. (You can have an entire new entity called card type. But, in this case, you will not consider the option.), expiration month, expiration year, and 3 digits of security code. (Coursera does not accept the family card.) Each of the customers can study as many online classes as possible, while the customer does not need to have any courses to take. Each online class has its ID and name of the class. Multiple classes would have the same name, but the class ID should be different. In the online class information, you should be able to track the member's type who can attend the class. Sometimes, one online class is available to many different types of members. (1) (3 points) Create the entity relationship diagram for an appropriate data model. Be sure to indicate the identifier (Primary keys and foreign keys) for each entity (if any) and the relationships between entities using the crow's-feet method. (HINT) For the first step of your ER Diagram, you should have four entities. But, if you do not normalize those, you will get 1 point or less. (2) (2 point) Create an Entity Data Model (Entities only) with two fake data in each entity. (3) (2 point) Please write a SQL code to print the names of customers and member types when the customer's card is VISA. (4) (2 points) Display a Cartesian product table using the fictitious data generated from Q4(2), which represents the outcomes of Q4(3). (5) (1 point) Present the result table obtained from the SQL query in Q4(3) utilizing the fabricated data generated in Q4(2).
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
ABC Pty Ltd would like to set up a Virtualisation Platform on their organisation. You have been hired by Company to be their network and system administrator to implement virtualisation for...
-
Assume that you are a front-line manager at a call center. Try to come up with a specific motivational idea that fits into each of the four quadrants in Exhibit 16.2: Positive Extrinsic; Positive...
-
Compute the value of P for the following diagram 120 120 120 50 50 50 i-10%
-
Describe the advantages and disadvantages of electronic medical records.
-
In February, a restaurant had a beginning inventory of $85,000, made purchases of $235,000 and had an ending inventory of $70,000. Employee meal costs for the month were $12,000. Food revenue for the...
-
Sage Hill Company purchased a delivery truck (vehicles) on June 1 for $38,520, paying $18,600 cash and signing a 5%, two-month note for the remaining balance, interest to be paid at maturity. The...
-
Complete General entries for following question: Gordon Corporation is a company that specializes in the design of custom hardware and software solutions for manufacturing companies. The company is...
-
A receipt is proof of payment that is given to anyone who purchases merchandise. On the receipt, we can find the price of the goods, the date, the description of the product, and the taxes payable....
-
Why do funders pay much more attention to sustainability than grant writers may suspect?
-
Being an ETL specialist, what factors will you consider as top priority in making sure that the load of data is successful?
-
Julia claims that light is a particle. do you agree or disagree. justify your position . explain your redoing add supporting evidence for your argument , that light is a wave or particle.
-
What actions or verbsl directions might you do or suggest in order to make mr . heron more comfortable?
-
Does this sentence need to be cited? 02Students who studied two hours a day did 2 5 % better on the final exam?
-
a. Explain the meaning of premature death and outline the economic justifications for the purchase of life insurance. (4 marks) b. James, age 40, is married with a 3-year-old son attending a nursery...
-
Describe the Operations (+,,*,/) that can cause negligible addition (NA), error magnification (EM), or subtractive cancellation (SC) in calculating ?((x^2)+1) - x . Give the range of where they might...
-
Why does price leadership sometimes evolve in oligopolistic markets? Explain how the price leader determines a profit-maximizing price.
-
In the context of our analysis of the Edgeworth production box, suppose that a new invention changes a constant-returns-to-scale food production process into one that exhibits sharply increasing...
-
If Jane is currently willing to trade 4 movie tickets for 1 basketball ticket, then she must like basketball better than movies. True or false? Explain.
-
Approximately 50,000 new titles, including new editions, are published each year in the United States, giving rise to a $25 billion industry in 2001. In terms of percentage of sales, this industry...
-
When you think of political persuasion, you may think of the effortsthat political campaigns undertake to persuade you that their candidate is betterthan the other candidate. In truth, campaigns are...
-
In late 2013, the taxi company Yourcabs.com in Bangalore, India, was facing a problem with the drivers using their platformnot all drivers were showing up for their scheduled calls. Drivers would...
Study smarter with the SolutionInn App