PLEASE ANY ONE CAN ASSIST ME ON THIS QUESTION

Hello am finding it difficult in
The relational schema below describes part of a database used by a hospitality company which specialises in organising business events for customers in London.
CUSTOMER(customer#, cname, address, tel, company-name)
EVENT (event#, event-name, event-type, event-date, event-time, customer#, cost)
EQUIPMENT_FOR_EVENT (event#, equipment#)
EQUIPMENT (equipment#, equipment-type, price, supplier#)
SUPPLIER (supplier#, sname, address, tel)
The following assumptions are made:
•     Customers may choose their own event name which is recorded in the ‘event-name’ attribute.
•     The ‘event-type’ attribute identifies event categories specified by the hospitality company (e.g., ‘birthday party’, ‘retirement party’).
•     Each piece of equipment has a unique number, its type (e.g. ‘camera’, ‘sound system’), and its price and supplier.
a)      Specify the sequence (order) in which the above five relations should be created and populated (you don’t need to write the actual CREATE and INSERT statements). Indicate which relational integrity rule is applicable in deciding such a sequence.
b)      Provide SQL statements to express the following queries:
(i)     Find the names of those customers who have booked an event categorised as a ‘birthday party’ for the month of July 2011.
(ii)     Find the names of those customers whose events require any ‘video-cameras’.
(iii)     Find the names of those suppliers who have supplied any equipment for events which took place during December 2010.

yes. a likely exam question will be set like this

Similar Messages

  • Any one can help me in this question i am stuck

    import java.util.Scanner;
    public class JPetWorld
    public static void main (String[] args){
    Pet p = new Pet( "Meow meow", 'F' );
    Scanner sc = new Scanner (System.in);
    System.out.print("Press enter to proceed") ;
    sc.nextLine() ;
    System.out.println("Name: " + p.getName() );
    System.out.println("Gender: " + p.getGender() );
    p.buyAccomodation( "Basket" );
    System.out.println( "Accomodation: " + p.getAccomodation() );
    You are given the Pet class with the following class diagram.
    Pet
    name: String
    gender: char
    hunger: String
    mood: String
    cleanliness: String

    Pet(name: String, gender: char)
    buyAccomodation(accom: String)
    buyFood(num: int): int
    feed()
    playFetch()
    playHideAndSeek()
    bath()
    advanceDay()
    bidFarewell()
    Using the Pet class given, you are required to write the JPetWorld program according to the following requirements.
    a. Declare one integer called foodQuantity presenting the quantity of pet food the owner has. Initialise it to zero.
    b. Choose Pet
    Prompt and read from the user
    - the pet name
    - the pet gender ( a char)
    and create a Pet object using the information entered.
    c. Choose Pet Accomodation
    Prompt and read from the user
    - the type of pet accomodation (sofa or basket)
    Then call the buyAccommodation method of the pet object to buy an accommodation using the information entered.
    d. Buy Pet Food
    Prompt and read from the user
    - the quantity of pet food to buy
    Call the buyFood method of the pet object using the information entered. The buyfood method will return an integer representing the actual quantity of food bought. This is because the shop may not have enough quantity of pet food that the owner wants to buy. Thus the actual quantity may be lesser than the quantity the user intended to buy. Set the foodQuantity variable to the actual quantity of food bought.
    e. Menu
    Write a loop that will loop 10 times. In the loop, do the following:
    - display a menu and prompt as follows:
    Menu
    1. Check pet food quantity
    2. Feed Pet
    3. Play with pet
    4. Bath pet
    5. Advance to next day
    6. Bid farewell and Exit
    Enter choice
    - Read the user input.
    - Choice 1 (Check pet food quantity)
    If the user selects choice 1, display the value of the variable foodQuantity in the following format:
    - Choice 2 (Feed pet)
    If the user selects choice 2, test if the value of the variable foodQuantity is greater than zero. If it is,
    � Call the feed method of the pet object
    � Decrease the foodQuantity variable by 1
    � Display the message �Pet is eating food�slurp, slurp�
    Else,
    � Only display �Not enough food to feed pet!�
    - Choice 3 (Play with pet)
    If the user selects choice 3, display the following submenu and prompt:
    1. Play fetch
    2. Play hide and seek
    Enter choice:
    Read the user input.
    If the owner selects choice 1, call the playFetch method of the pet object.
    If the owner selects choice 2, call the playHideAndSeek method of the pet object.
    - Choice 4 (Bath pet)
    If the user selects choice 4, prompt and read from the owner for the temperature of the bath water.
    If the temperature of the bath water is below 20oC, display �Cannot bath. Too cold!�.
    If the temperature of the bath water is above 40oC, display �Cannot bath. Too hot!�.
    Else, call the bath method of the pet object and display �Pet is bathing�splash, splash!�
    - Choice 5 (Advance day)
    If the user selects choice 5, call the advanceDay method of the pet object.
    - Choice 6 (Bid farewell and Exit)
    If the user selects choice 6, call the bidFarewell method of the pet and then terminate the loop.
    - Other input
    If the user enters any other input, display the message �Invalid choice.�
    thanks.............

    here's a bone to get you started. now that i've done the hard part,
    you should be able to finish the rest.
    public class Pet {     
         private String name;
         private char gender;
         private String hunger;
         private String mood;
         private String cleanliness;
         public Pet(String _name, char _gender){
              name = _name;
              gender = _gender;
         public void buyAccomodation(String accom) {}
         public int buyFood(int num){return 1;}
         public void feed() {}
         public void playFetch() {}
         public void playHideAndSeek() {}
         public void bath() {}
         public void advanceDay() {}
         public void bidFarewell() {}     
    }

  • HT201263 I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    Read http://support.apple.com/kb/ts3694#

  • Good day , please Any one can help me

    Recently I get an iPhone witch was used from many month , the problem is that I don't know the first user so I don't know the password of the existing Appel Id and I can't delete his Apple ID because i don't know it's password , I make my Owen Apple ID and I have changed many things but the problem still in the iCloud because I can't delete the existing id so all my data may go to another person so please advise 

    user12039624mhmads81 wrote:
    ... Please any one can help me to get a good document for upgrading database from Upgrade Database From 8i & 9i& 10g to 11g which include prerequisite and upgrade process and after upgrading process waiting for your response because it necessary neededI'm wondering how the previous answer is correct since it is the 10g upgrade guide whereas you're looking for a 11g upgrade.
    By the way which 11g release ?
    Once you choose your release target, got to the doc http://www.oracle.com/technology/documentation/index.html click on the link corresponding to your target version, there will be an upgrade guide with all the steps you need to know.
    Nicolas.

  • Please any one can give me the details about the fi-co extraction

    if any one have a screen shots on this.please send it to my id:[email protected] will give the points

    Hi Welcome to SDN world,
    The Following are the some links where you can find out some information about FI extractions.
    http://help.sap.com/saphelp_nw04/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
    Re: Which tables for LO and FI...
    http://help.sap.com/bp_biv335/BI_EN/html/BW/FinancialAccounting.htm
    And one small suggestion, SDN is the world where you can explore & learn yourself. We are not at all greedy about this POINTS.
      "i will give the points"
    We are not expecting this any more.
    My intention is to highligh the  Spirit of SDN. Sorry if i am hurting. you can contact me if you have any doubts.
    [email protected]
    Wish you best of luck....

  • Iphone could not be restored.an unknown error occurred {1} iam getting this error when iam restoreing the i phone 4s please any one can hlep me

    iphone could not be restored. an unknown error occurred (1). when iam restoring my i phone 4s iam getting this error message, can anyone please help me ....

    That usually indicates a hardware failure. Make an appointment at the genius bar and have them look at it.

  • Hello i am new on BB and having this problem please any one can help me out!

    Hi i am having a weird problem with my device bold 9780.
    Consider that i am using device with switching the mobile network off and not even taking BB services.. My browser works fine on wi-fi but appworld only works whenever the phone is restarted and it only works for a day after that it starts giving an error " we cant connect to BB app world. Please ensure that your device is connected to a wireless network and try again " it wont work again unless the phone is restarted.. i have tried reinstalling the appworld and even also wiping the phone but the problem remains same.
    Please please help me out with this problem. I'll be waiting!! 

    On your 9780, What is your Operating System loaded to your device? Look at Options > Device > About, third line down beginning with a "v.6.0.x.xxx", What is yours?
    At Options > Device > Applications, what is the version of Appworld installed?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Any one can help me from this code?

    can someone tell me what the code DBUtil.getMarks(msg),DBUtil.setIndex(pn,rsp)
    may do on the code below that i've downloaded this files from [http://sourceforge.net/projects/asimplesmssende/files/|http://sourceforge.net/projects/asimplesmssende/files/] I cant see any DBUtil.java or DBUtil method on the source codes I want to fixed this code coz it has a error because of DBUtil coz i want to create my own codes like this
    import org.soham.sms.*;
    import java.util.*;
    class Q extends SMSUtil
         Q() throws Exception{
              super("Com16");
         public void processSMS(String pn,String msg) throws Exception
              String rsp=DBUtil.getMarks(msg);
              this.sendSMS(pn,rsp);
              DBUtil.setIndex(pn,rsp);
         public int getCurrentMsgIndex() throws Exception{
              return DBUtil.getIndex();
         public static void main(String[] args) throws Exception{
                   SMSUtil util=new Q();
                   //util.sendSMS("9830740684","Shubho Maha Shashthi Baba...Babun");
                   ArrayList al=new ArrayList();
                   util.startReceive(al,1000);
                   Thread.sleep(60000);
                   /*util.stopReceivingSMS();
                   int s=al.size();
                   for(int i=0;i<s;i++){
                        String x=((String[])al.get(i))[0];
                        String m=((String[])al.get(i))[1];
                        System.out.println(x+" *****  "+m);
    }advance thanks ^^

    Download the DBUtil class from that site as well, then, as that is, seemingly, another "self-written" class. You seemingly need to find a better site from which to plagarise your assignments, it seems.

  • HT201365 Please any one can help me ?

    My mam mini IPad stop working, when I try to reset it the system ask me to unlock it with Apple ID because "" find my iPad is turned on"" and I don't know the id that ben used. What I have to do?!

    The only one that can help you is the previous owner.  They must remove it from their account as explained here: http://support.apple.com/kb/TS4515 or you won't be able to use it.

  • Please any one can tell about

    4)     In real time scenarios where we will USE LSMW and Where we use BDC
         (Session or Call    transaction). What is the deciding factor for it.

    hi,
    generally LSMW  is used to upload master data. it can transfer small amount of data as well as large amount of data. its used by functional consultants since it avoids coding, while upgrading to new version lsmw is used to upload master data,
    it wont support call transaction.
    bdcs, session method can work in fore ground as well as back groung,its also
    used to upoad large amount of data. call transaction method works only in fore ground. error handling in session method we had to provide explicitly.
    regards
    siva

  • My iphone 5 is problem facing like that. when i switch off my iphone5 then plugh for charge with data cable or charger adapder or only data cable with no power connect phone is starting why? means on my phone Why? any one can explane this matter please. s

    my iphone 5 is problem facing like that. when i switch off my iphone5 then plugh for charge with data cable or charger adapder or only data cable with no power connect phone is starting why? means on my phone Why? any one can explane this matter please. switched off my phone but on without power button . what is the problem?
    Thanks
    s.m slim

    all iphone is same like that

  • Any one can help how to install sharepoin2013 in multi servers .any deployment guide please provide

    Any one can help how to install sharepoin2013 in multi servers .if you have any  guide please provide

    I am sharing few links which can be helpful for you to understand and install/configure multi server sharepoint environment.
    Install SharePoint 2013 across multiple servers for a three-tier farm
    Test Lab Guide: Configure SharePoint Server 2013 in a three-tier farm
    Install and Configure SharePoint farm (3 -tier)
    Office Web Apps 2013 multi servers (NLB) Installation and Deployment for SharePoint
    2013 step by step guide
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • When updating to  itune 10.5 I get this error message ,older version of bonjour can not be removed, and older version of apple mobile support cannot be removed, any one know how to fix this.

    When updating to  itune 10.5 I get this error message ,older version of bonjour can not be removed, and older version of apple mobile support cannot be removed, any one know how to fix this.

    1) The older version of Bonjour can not be removed. Contact your technical support group.
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • My mail app on I phone 4s crashes every time when i try to open, and i can see it thru the setting general. also phone is overheating and spending battery fast. does any one has some answer on this or same issue? what to do didi any has same issue?

    my mail app on I phone 4s crashes every time when i try to open, and i can see it thru the setting>general. also phone is overheating and spending battery fast. does any one has some answer on this or same issue? what to do did any has same issue? if i do an complete phone restore what will hapend ?

    You can call Verizon to replace it or go to an applestore to replace it since it won't even power on with multiple chargers.

  • Can't use down key because it opens automator. Does any one know how to disable this short cut?

    Everytime I press down on down key it opens automator. It doesn't let me delete the app. I don't know what to do, it is very frustating to fill in a chart when I can't use the down key. Does any one know how to disable this short cut?

    Are you talking about the Down Arrow key? To my knowledge there is no way to use that key as a shortcut for anything. But look in the Keyboard section of System Preferences and the Keyboard shortcut tab.

Maybe you are looking for

  • Why can I no longer import Mp4r files from my desktop (Macbook Pro) to iTunes??

    Why can I no longer import Mp4r files from my desktop (Macbook Pro) into Itunes?  Seemed to work perfectly well before the latest upgrade.  Feeling quite annoyed, especially when all the forums seem to give the same advice, which no longer seems to w

  • Question on Deferred Interest

    Hello! Just tried to post this a second ago and my computer freaked out and posted it before I could type my message.  Anyway, I just had a question about a deferred interest issue. I was under the impression that I had another month to pay off my ba

  • Need help installing XP in Parallels 5.0

    I have a copy of XP and when I try to install it on Parallels but it says "no boot device is available" It's a burned copy from the original and I have the serial number but it won't do it. Is there any assistance I can get here? Please help. Thanks,

  • Beginners Scripting Question

    Hi I want to do the following: get the URL the form is hosted at from the browser Is this possible? e.g.: xfa.host.messageBox(XXX , "User Feedback", 3); What do I need to put at XXX to get the url the form is hosted at? Thanks Kropotkin Ps. a further

  • High CPU on idsm-2

    In the last few weeks, we are seeing consistent high CPU on one of the IDS devices-- staying at 100% for hours. My question: what affect does this have on analysis? Will events begin to be dropped?