Question
From the animal table with animal_name, animal_age, animal_weight, and arrival_date List the following for animals whose arrival date is after March 1, 2018. You must
From the animal table with animal_name, animal_age, animal_weight, and arrival_date
List the following for animals whose arrival date is after March 1, 2018. You must use that date format and the TO_DATE function. Display name as "NAME", animal age as "AGE" with 'years' appended, and weight as "WEIGHT" with 'lbs' appended. Note that it displays either year or years appropriately.
Using CASE, display the residence appropriate for the animal based on weight: Up to 15 lbs for CITY, between 15 and 40 lbs for SUBURB, and anything over 40 lbs as RURAL. Label this column as "Ideal Residence". Order by weight.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started