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]
2 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]2 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
Why do you think that so many of these sources have similar names?
Anon25 [30]

Answer:

What sources? WILL ANSWER in comments

4 0
3 years ago
Heavy use of computers, combined with information overload and 24/7 accessibility via technology, can lead to
STatiana [176]
Things! :D :D :D :D :D
5 0
3 years ago
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the Web pages for a particular
Firlakuza [10]

Answer:

A

Explanation:

thethe more you have attached the more people are going to know your product so that it's going to be a long process which people can introduce to their friends

3 0
2 years ago
(1) Prompt the user for a string that contains two strings separated by a comma. (1 pt) Examples of strings that can be accepted
denis-greek [22]

Answer:

Check the explanation

Explanation:

#include <stdio.h>

#include <string.h>

#include <stdlib.h>

#define MAX_LIMIT 50

int checkComma(char *input)

{

int flag = 0;

for(int i = 0; i < strlen(input); i++)

{

if(input[i] == ',')

{

flag = 1;

break;

}

}

return flag;

}

int main(void)

{

char input[MAX_LIMIT];

char *words[2];

char delim[] = ", ";

printf("\n");

do

{

printf("Enter input string: ");

fgets(input, MAX_LIMIT, stdin);

size_t ln = strlen(input) - 1;

if (*input && input[ln] == '\n')

input[ln] = '\0';

if(strcmp(input, "q") == 0)

{

printf("Thank you...Exiting\n\n");

exit(1);

}

else

{

if(checkComma(input) == 0)

{

printf("No comma in string.\n\n");

}

else

{

char *ptr = strtok(input, delim);

int count = 0;

while(ptr != NULL)

{

words[count++] = ptr;

ptr = strtok(NULL, delim);

}

printf("First word: %s\n", words[0]);

printf("Second word: %s\n\n", words[1]);

}

}

}while(strcmp(input, "q") != 0);

return 0;

}

Kindly check the attached image below for the output.

4 0
3 years ago
Memory is a _____________ that includes the organization and shaping of information by processing, storage, and retrieval of inf
vaieri [72.5K]

Answer:

A. <em>Encoding Process </em>

Explanation:

Memory is an <em>encoding process </em>that includes the organization and shaping of information by processing, storage, and retrieval of information.

There are two types of memory in computing, <em>RAM </em>and <em>ROM</em>. <em>RAM </em>stands for <em>Random Access Memory</em>. It I the core memory of the computer and it is especially faster regarding reading and writing process. As an analogy, RAM memory is like the “<em>Short-term</em>” memory of the computer. <em>ROM </em>stands for <em>Read-Only Memory</em>, this is the type of memory in charge of permanently storing data in the computer. It contains the necessary information to run the computer. As an analogy, <em>ROM </em>memory is like the “<em>long-term</em>” memory of the computer.

3 0
3 years ago
Other questions:
  • Households pay taxes to the government and receive public services. Which of the following is a public service?
    8·1 answer
  • Application Software include programs like: MS Word, Google Docs, MS Exce ect...
    13·1 answer
  • What is performance? Multiple Choice measures how quickly a system performs a process or transaction a system that is not operat
    9·2 answers
  • Who is the founder of javascript? ​
    14·2 answers
  • Enter a word: Good<br> Enter a word: morning<br> Good morning
    8·2 answers
  • You work for a company that is growing. Originally, all the users in all departments had access to all the data in the database.
    6·2 answers
  • Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative intege
    10·1 answer
  • Is the jane austen pride and prejudie a primary source
    6·1 answer
  • ) how many bits are used for host number on the child network (subnet) , b) how many usable addresses can exist on this child ne
    9·1 answer
  • Which of the following would be better communicated with an image than with text?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!