Question

4.1 Query 1 cageSector is N if a cage is in the North Sector of the zoo. Find the ID for all Animals that are in the North

0 0
Add a comment Improve this question Transcribed image text
Answer #1

4.1 Query 1:

SELECT ID FROM Animals
WHERE GROUP BY CageSector='N';

4.2 Query 2:

SELECT v.NAME,v.ADDRESS,v.CAGEID FROM visitor,v
WHERE v.LIKEDSTATUS='YES';

SELECT e.ID,e.NAME,e.SALARY, FROM Cage_details c,employee_details e
WHERE GROUP BY c.speciesName='Lion' AND 'Tiger'

Add a comment
Know the answer?
Add Answer to:
4.1 Query 1 cageSector is 'N' if a cage is in the North Sector of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • WRITING POSTGRESQL QUERIES RELATIONS: CREATE TABLE Movies(    movieID INT,    year INT UNIQUE,    rating...

    WRITING POSTGRESQL QUERIES RELATIONS: CREATE TABLE Movies(    movieID INT,    year INT UNIQUE,    rating CHAR(1),    length INT,    totalEarned NUMERIC(7,2),    PRIMARY KEY(movieID) ); CREATE TABLE Theaters(    theaterID INT,    address VARCHAR(40) UNIQUE,    numSeats INT NOT NULL,    PRIMARY KEY(theaterID) ); CREATE TABLE TheaterSeats(    theaterID INT,    seatNum INT,    brokenSeat BOOLEAN NOT NULL,    PRIMARY KEY(theaterID, seatNum),    FOREIGN KEY(theaterID) REFERENCES Theaters ); CREATE TABLE Showings(    theaterID INT,    showingDate DATE,   ...

  • can someone solve these quick please and thank you! sql chapter 4 Query #1: List the...

    can someone solve these quick please and thank you! sql chapter 4 Query #1: List the company name, contact name, contact title and the phone number for customers who HAVE NOT put in an order. Use an outer join. Query #2: Create a listing displaying the employee first name, last name and the full name (First name space Last Name) of the person they report to (Supervisor). This is a self-join. If an employee does not report to anyone then...

  • JAVA ONLY. For this assignment you will create an employee application, containing contact information, salary, and...

    JAVA ONLY. For this assignment you will create an employee application, containing contact information, salary, and position. You will also define the type of company. Is it an engineering firm, a supermarket, or a call center? Once the application has been completed, I should be able to perform a query for any piece of information associated with each employee.   For instance, if I search for employees who make over $50,000, all of the employees whose salaries are greater than $50,000 should...

  • 1,List the first and last name of the donators that donated in December 2009. 2. List...

    1,List the first and last name of the donators that donated in December 2009. 2. List the ID's of the volunteers that have not worked. 3. List the ID, first name, and last name of any employees who works in the Finance department. 4. List all the different prices suppliers have for 'Tasty Meat' product. 5. Select the store ID and store phone number for all stores in 'St.Paul'. 6. List the member first and last name, address, city, zip...

  • in Python Project 5: Payroll (Part 1) CS 1410 Background In this project you will implement...

    in Python Project 5: Payroll (Part 1) CS 1410 Background In this project you will implement a simple payroll system. For the first part of the assignment, you will submit a UML class diagram. The hypothetical company we are considering has 3 classifications of employees: 1. Hourly 2. Salaried 3. Commissioned There are 24 pay periods per year; 1/24th of a salary is paid each pay period to employees who receive a salary. We won't worry about taxes and other...

  • Write MySQL query statements for the questions below including the output that proves the accuracy of...

    Write MySQL query statements for the questions below including the output that proves the accuracy of your solution. Your answers should be stored in a text file that captures your interaction with MySQL. 1. Find the movieID, title, year and DVDPrice of all movies where the DVD-Price is equal to the discountPrice. 2. Find the actorID, lastName, firstName, middleName, and suffix of all actors whose middleName is not NULL. 3. Suppose you remember a movie quote as “Play it again,...

  • The PTL CLub - Jim and Tammy Faye Bakker I need help with the discussion questions listed at the bottom... THE PTL CLUB...

    The PTL CLub - Jim and Tammy Faye Bakker I need help with the discussion questions listed at the bottom... THE PTL CLUB Jim and Tammy Faye Bakker launched the PTL Club in January 1974. This show was one of the most successful television ministries for more than a decade. The broadcast of the PTL Club utilized almost 200 television stations to reach a national audience of approximately 12 million viewers. PTL stood for both “Praise the Lord” and “People...

  • TORENTO CONSTRUCTION: ETHICAL CONTRACTING On December 27, 2010, Cary Holmes, manager of the Supply Chain Management...

    TORENTO CONSTRUCTION: ETHICAL CONTRACTING On December 27, 2010, Cary Holmes, manager of the Supply Chain Management (SCM) group at Torento Construction Inc. (NCG), was in his office in Torento, Ontario, trying to organize the thoughts running through his head as a result of a recent bidding to save operating costs at NCG. There was no problem in terms of the final outcome; in fact, the bid was going to result in cost savings of 25 per cent, which was exactly...

  • Write down your analysis of this case on factors like 1. the negotiation process, strategy and...

    Write down your analysis of this case on factors like 1. the negotiation process, strategy and tactics PACIFIC OIL COMPANY (A)* "Look, you asked for my advice, and I gave it to you," Frank Kelsey said. "If I were you, I wouldn't make any more concessions! I really don't think you ought to agree to their last demand! But you're the one who has to live with the contract, not me!" Static on the transatlantic telephone connection obscured Jean Fontaine's...

  • Discussion questions 1. What is the link between internal marketing and service quality in the ai...

    Discussion questions 1. What is the link between internal marketing and service quality in the airline industry? 2. What internal marketing programmes could British Airways put into place to avoid further internal unrest? What potential is there to extend auch programmes to external partners? 3. What challenges may BA face in implementing an internal marketing programme to deliver value to its customers? (1981)ǐn the context ofbank marketing ths theme has bon pururd by other, nashri oriented towards the identification of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT