1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
enot [183]
3 years ago
5

Write ONE SQL statement for each of the following tasks. Note that you can only use conditions specified in the task description

and cannot manually look up data and add conditions. E.g., in task 1, you cannot manually look up category ID for carpet cleaner. You want to make sure your code will work regardless of what data are in the database (e.g., whether carpet cleaner has a category ID of 1 or 100).
Task 1: Return names and emails of authors of the paper titled 'A novel approach of mining EHR data'
Task 2: Return reviewer ID, review decision, and review comments of the paper titled 'Comparing big data systems'
Task 3: Return paper title and number of authors for each paper.
Task 4: Return names of authors who have at least two papers.
Task 5: List names of authors who have co-authored with Dr. Chen.
Computers and Technology
1 answer:
Furkat [3]3 years ago
4 0

Answer:

1) SELECT author.name, author.email

FROM author, paper_author, paper

WHERE author.id = paper_author.id

AND paper_author.id = paper.id

AND UPPER(paper.title) = ('A novel approach of mining EHR data');

2) SELECTpaper_review.id, paper_review. decision, paper_review.comment

FROM paper_review, Paper

WHERE paper_review.id = paper.id

AND paper.title = 'comparing big-data systems';

3) SELECT Paper.title, COUNT(Paper_author.id)

FROM Paper, Paper_author

WHERE Paper.id = Paper_author.id

GROUP BY Paper.title;

4) SELECT Author.name

FROM Author

WHERE Author.id IN (SELECT Paper_author.id

FROM Paper_author

GROUP BY Paper_author.id

HAVING COUNT(Paper_author.id) >= 2);

5) SELECT DISTINCT a.name

FROM Author AS a

INNER JOIN paper_author AS pa

ON a.id=pa.id

WHERE EXISTS (

SELECT 1

FROM Author aa

INNER JOIN  paper_author paa

ON aa.id=paa.id  

WHERE name='Dr. Chen'

AND paa.id = pa.id

AND aa.id != a.id

);

Explanation:

The SQL statements return the queries from six different tables in the database

You might be interested in
How many schools are there total at Gaineseville tx
Ahat [919]
There are ten schools total

7 0
3 years ago
Read 2 more answers
Jame
Sophie [7]

Answer:

Did you just copy this from a texbook?

Explanation:

7 0
3 years ago
T F Changes to a function parameter always affect the original argument as well.
Leya [2.2K]

Answer:

False

Explanation:

"When the function addition is called, [...] any modification will not have any effect [...]in the values outside it, because variables x and y were not themselves passed to the function, but only copies of their values at the moment the function was called."

Reference: Cplusplus.com. “Functions (II).” Cplusplus.com, 2019,

6 0
4 years ago
Celeste is writing a paper. However, two pages in, her computer shuts down unexpectedly. She never saved her paper, and all her
alekssr [168]
<span>Random access memory (RAM)</span>
8 0
4 years ago
Read 2 more answers
Jenny is working on a laptop computer and has notices that the computer is not running very fast. She looks and realizes that th
Snowcat [4.5K]

Answer:

Jenny should order a SO-DIMM RAM module.

Explanation:

SO-DIMM stands for (Small Outline Dual In-line Memory) and is the laptop version of the RAM used on desktop computers. These modules are smaller than the ones used on a desktop PC and therefore have less pins than the PC versions (204 vs 240).

Usually the amount of RAM found on a laptop is smaller than the one found on a desktop PC because of the size of the motherboards. Generally on a normal computer you can add up to 4 RAM modules instead of the 2 modules that are generally found on a laptop PC.

8 0
3 years ago
Read 2 more answers
Other questions:
  • a ____ consists of wires connecting the cpu and other parts of the computer. The _____ transfers data between CPU and memory uni
    6·1 answer
  • What federation system technology uses federation standards to provide SSO and exchanging attributes?
    7·1 answer
  • Can you see what movie you went to on yout credit card history
    7·2 answers
  • Which of the following is not a group of energy sources?
    7·2 answers
  • Write ONE SQL statement for each of the following tasks. Note that you can only use conditions specified in the task description
    5·1 answer
  • Suppose a switch is built using a computer work station and that it can forward packets at a rate of 500,000 packets per second,
    11·1 answer
  • What type of input and output devices would be ideal for a college student completing his or her coursework?
    13·1 answer
  • What is an optical drive used for?​
    12·2 answers
  • What does dr. sanford say about the comparison of the genome with a computer program?
    9·1 answer
  • with a ____ the traffic of a given enterprise or group passes transparently through an internet in a way that effectively segreg
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!