[Solved] Create queries for homework assignment

Discuss the database features
Post Reply
jerc9024
Posts: 8
Joined: Wed Jun 05, 2024 6:24 pm

[Solved] Create queries for homework assignment

Post by jerc9024 »

Can any one create the following Query code as in the image
Img 1 - https://public-jerc9024-tech.b-cdn.net/files/1.jpg
https://public-jerc9024-tech.b-cdn.net/files/1.jpg
https://public-jerc9024-tech.b-cdn.net/files/1.jpg
202406060839.jpg (123.51 KiB) Viewed 7590 times
Img 2 - https://public-jerc9024-tech.b-cdn.net/files/2.jpg
https://public-jerc9024-tech.b-cdn.net/files/2.jpg
https://public-jerc9024-tech.b-cdn.net/files/2.jpg
202406060842.jpg (116.15 KiB) Viewed 7590 times
Last edited by MrProgrammer on Thu Jun 06, 2024 3:47 pm, edited 1 time in total.
OpenOffice 4.1.15 on Windows 11
User avatar
Sliderule
Volunteer
Posts: 1290
Joined: Thu Nov 29, 2007 9:46 am

Re: Database Query Code.....

Post by Sliderule »

Yes I can, but, no I will not.

What you are displaying is a "homework assignment".

Therefore, you have to "learn" and read the manuals and/or books, rather than having someone do it for you, and, "cheating" on your "homework assignment". :crazy: :ucrazy: :?: :?:
jerc9024
Posts: 8
Joined: Wed Jun 05, 2024 6:24 pm

Re: Database Query Code.....

Post by jerc9024 »

I solved all of my qusestion but still i am not able to solve these two question, guide for these are not in my book or on any website can i get some help?
(b) Write an SQL query to display the coach name with the highest pay for each sport.
(c) Write an SQL query to display Coach_ID, Coach Name, and Date_of _Apply in descending order.
OpenOffice 4.1.15 on Windows 11
User avatar
robleyd
Moderator
Posts: 5383
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Database Query Code.....

Post by robleyd »

https://www.w3schools.com/sql/

Or other alternatives at this link.

b) learn about the MAX function
c) learn about ORDER BY
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 25.2.4.3; SlackBuild for 25.2.4 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue]
Unexpected '{' on line 32
.
Post Reply