Organization Researchers id INT id INT O name VARCHAR (45) HE O address VARCHAR(45) name VARCHAR(45) type VARCHAR(45) Indexes O departm ent VAROHAR(15) 0o jd INT Tndexes Grant | Grant_Rescarchers Pid INT Pid INT Manager Otte VAROHAR(45) id INT *g_jd INT summary VAROHAR(255) name VARCHAR(45) rid INT amount DECIMAL(10,2) Indexes Indexes cstart_date DATE erd_date DATE m_jd INT o_id INT grant_fiekds v INI P!A g jd INT | arant program r id INT Pid INT Indexes Ogid INT f_d INT Indexes Opjd INT Indexes Program Fild id INT HO name VARCHAR(45) O director ale VAROHAR(45) id INT Oname VARCHAR (45) Indexes Indexes

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

Using Mysql. Write a query to find the researchers that have received grants from 6 or more directorates. Retrieve the researcher’s
name and the number of directorates he/she has received grants from. Order the results in descending
order by the number of directorates, and return the first 10.

Organization
Researchers
INI P!
O name VARCHAR(45)
id INT
name VARCHAR(45)
O type VARCHAR (45)
O departm en t VAROHAR(45)
O addrecs VARCHAR(45)
Indexes
Oo_jd INT
Indexes
Grant
Grant_Researchers
id INT
Manager
Pid INT
Otte VARCHAR(45)
INI PI
name VARCHAR(45)
g_id INT
summary VARO-HAR(255)
r_id INT
amount DECIMAL(10,2)
Indexes
Indexes
Ostart_date DATE
end_date DATE
m_id INT
o_id INT
grant_fiekds v
| grant program
r_d INT
Pid INT
Pid INT
Indexes
g_id INT
Ogjd INT
f_d INT
Indexes
Opjd INT
Indexes
Program
Fild
tid INT
Pid INT
HHOname VARCHAR(45)
O directorate YARCHAR(45)
Oname VARCHAR(45)
Indexes
Indexes
Transcribed Image Text:Organization Researchers INI P! O name VARCHAR(45) id INT name VARCHAR(45) O type VARCHAR (45) O departm en t VAROHAR(45) O addrecs VARCHAR(45) Indexes Oo_jd INT Indexes Grant Grant_Researchers id INT Manager Pid INT Otte VARCHAR(45) INI PI name VARCHAR(45) g_id INT summary VARO-HAR(255) r_id INT amount DECIMAL(10,2) Indexes Indexes Ostart_date DATE end_date DATE m_id INT o_id INT grant_fiekds v | grant program r_d INT Pid INT Pid INT Indexes g_id INT Ogjd INT f_d INT Indexes Opjd INT Indexes Program Fild tid INT Pid INT HHOname VARCHAR(45) O directorate YARCHAR(45) Oname VARCHAR(45) Indexes Indexes
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,