FOOTBALL-PLAYER(CodFP, Name,Surname, Address, CityOfBirth) TEAM(CodT, Name, Category,ConstitutionDate) AWARD(CodA, CodFP, DeliveryDate, DeliveryPlace, Type) PLAYER-TEAM(CodFP, CodT, StartingDate,EndingDate, NumPlayedMatches, NumGoals) Find name, category and constitution date of the teams in which have played (in any time) the players who received, in their career as a whole, the highest number of awards of type “Best goalkeeper”. SELECT distinct T.Name, T.Category, T.CostituitionDate FROM TEAM T, PLAYER-TEAM PT WHERE T.CodFP= PT.CodFP and PT.CodFP IN (SELECT CodFP FROM AWARD D WHERE A.Type = ‘Best goalkeeper’ GROUP BY CodFP HAVING COUNT(*) = SELECT MAX(AwardTot) FROM (SELECT count(*)as AwardTot AWARD A WHERE A.Type = ‘Best goalkeeper’ GROUP BY CodFP) AS TOTAWARDFP i have this solution but im struggling a lot to be able to solve these type of questions im not understanding how to think about it and if i can somehow do something on a paper before starting to write the code or anything please if there are any resources for this type of questions online or book or anything or if you have any tips or tricks to be able to solve similar stuff like this please tell me as i have an exam soon and i have to be good at them asap. please solve this question using the tips and tricks when u state them AND if there are online resources just for relational tables such as this one i mean. thank you

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

FOOTBALL-PLAYER(CodFP, Name,Surname, Address, CityOfBirth)

TEAM(CodT, Name, Category,ConstitutionDate)

AWARD(CodA, CodFP, DeliveryDate, DeliveryPlace, Type)

PLAYER-TEAM(CodFP, CodT, StartingDate,EndingDate, NumPlayedMatches, NumGoals)

 

Find name, category and constitution date of the teams in which have played (in any time) the players who received, in their career as a whole, the highest number of awards of type “Best goalkeeper”.

 

SELECT distinct T.Name, T.Category, T.CostituitionDate

FROM TEAM T, PLAYER-TEAM PT

WHERE T.CodFP= PT.CodFP and PT.CodFP IN

     (SELECT CodFP

           FROM AWARD D

           WHERE A.Type = ‘Best goalkeeper

           GROUP BY CodFP

           HAVING COUNT(*) =

                SELECT MAX(AwardTot)

                FROM (SELECT count(*)as AwardTot

                           AWARD A

                           WHERE A.Type = ‘Best goalkeeper

                           GROUP BY CodFP) AS TOTAWARDFP

 

 

i have this solution but im struggling a lot to be able to solve these type of questions im not understanding how to think about it and if i can somehow do something on a paper before starting to write the code or anything please if there are any resources for this type of questions online or book or anything or if you have any tips or tricks to be able to solve similar stuff like this please tell me as i  have an exam soon and i have to be good at them asap. please solve this question using the tips and tricks when u state them AND if there are online resources just for relational tables such as this one i mean. thank you

Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Web Page
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education