I need to write SQL query to output the Maximum number and Minimum number of movies produces by diffrent actors and actresses between year 1991 and 2001
query written . When I tried this, I got error enter image description here
The expected result is to output the maximum numer each actor or atress produces within that year range
The result should look like this
When I tried this, I got error what i tried
The expected result is to output the maximum number each actor and atress produces within that year range
The result should look like this
2
Answers
Oracle dates contain both date and time so if you’re looking to test years only you need to extract that part of the date
If you don’t want to use the extract method you can do the following. Note since dates contain time you need the +1 to include any dates on 2021-04-30 that fall between the times 00:00:00 and 23:59:59
Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements for all tables involved, relevant columns only) so the people who want to help you can recreate the problem and test their ideas. Also post the exact results you want from that data, and explain why you want those results from that data. Lastly, don’t post any images as they can’t be cut and pasted.