What would you recommend as primary key for this relation

Assignment Help Computer Engineering
Reference no: EM133424106

Question: The following relation is an extract from a restaurant point-of-sale (POS) system. The system assigns a globally unique id (GUID) to every transaction processed. CheckID comes from the pre-printed check number on the ticket used by the server for the order; these pre-printed tickets are guaranteed to be unique within the restaurant. RegisterID is which register was used for checkout and the date and time of the checkout - to the minute - are recorded in CheckoutDT; assume no two checkouts can occur at the same register in the same minute. PayType and PayTotal are, respectively, how the check was paid and what the total payment was; assume there is no splitting of a check among multiple payments.

When answering the questions below use the format [attribute, attribute, ..., attribute] to identify keys.

1. How many keys in general (including the empty or null key) are there in this relation?

2. Identity two multi-keys for this relation.

3. Identify two super keys which are not also candidate keys for this relation. Identify all candidate keys for this relation.

4. What would you recommend as primary key for this relation? Why?

5. If splitting or multiple payments were to be allowed for a ticket total (e.g., suppose the second payment above consisted of a 35.10 Credit payment and a 30.12 Cash payment), what changes would you suggest to the relation above?

Reference no: EM133424106

Questions Cloud

What is a composite function and how are composite functions : what is a composite Function? How are composite functions solved? Give examples.
Advice norman about the difference between criminal : Advice Norman about the difference between criminal proceedings and civil proceedings. Substantiate your answer with practical examples.
What psychological theories would be relevant : How would I address this recommendation from OFSTED? What psychological theories would be relevant?
Transcatheter arotic valve replacement : Can somone please help me explain these three things for transcatheter Arotic Valve Replacement (TAVR).
What would you recommend as primary key for this relation : How many keys in general (including the empty or null key) are there in this relation and Identity two multi-keys for this relation
How can you describe the threat level posed from hickory : how can you describe the threat level posed from Hickory Divine's suppliers? Is it high? Is it low? Why? Provide an explanation by using the logic
How would one go about finding information : How would one go about finding information for different roles in cyber security without reaching out to individuals? Find five professionals
How to use rebts cognitive restructuring techniques humor : How to use REBT's cognitive restructuring techniques humor, irony, reframing, roly-play to help Patrick address his mother reprimanded him for poor performance.
Effective functioning of interprofessional team : Open and clear communication is critical for the effective functioning of the interprofessional team and the delivery of safe patient care.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd