For the following query definitions, (a) specify the output of each query. (do not explain how the query will be executed, but specify the output to be obtained when the query is executed). (b) implement the query by writing a Relational Algebra or an SQL SELECT statement. | 3. Query Definition: find the Books written by Author 'Yasar Kemal'. The output should be in the form of . (a) The Output: (b) The Relational Algebra Implementation: 4. Query Definition: find the Books written by 'male' Authors born before 1920. Retrieve the authors and the books they wrote. The output should be in the form of . The books written by the same author should be next to each other in the output. (a) The Output: (b) The SQL SELECT Implementation:

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

Fast please ?

For the following query definitions, (a) specify the output of each query. (do not explain how
the query will be executed, but specify the output to be obtained when the query is executed).
(b) implement the query by writing a Relational Algebra or an SQL SELECT statement.|
3. Query Definition: find the Books written by Author 'Yasar Kemal'. The output should be
in the form of <book title, number of pages>.
(a) The Output:
(b) The Relational Algebra Implementation:
4. Query Definition: find the Books written by 'male' Authors born before 1920. Retrieve the
authors and the books they wrote. The output should be in the form of <author first name,
author last name, book title, number of pages>. The books written by the same author
should be next to each other in the output.
(a) The Output:
(b) The SQL SELECT Implementation:
Transcribed Image Text:For the following query definitions, (a) specify the output of each query. (do not explain how the query will be executed, but specify the output to be obtained when the query is executed). (b) implement the query by writing a Relational Algebra or an SQL SELECT statement.| 3. Query Definition: find the Books written by Author 'Yasar Kemal'. The output should be in the form of <book title, number of pages>. (a) The Output: (b) The Relational Algebra Implementation: 4. Query Definition: find the Books written by 'male' Authors born before 1920. Retrieve the authors and the books they wrote. The output should be in the form of <author first name, author last name, book title, number of pages>. The books written by the same author should be next to each other in the output. (a) The Output: (b) The SQL SELECT Implementation:
Consider the following BOOKS, AUTHORS and PUBLISHERS relations for this problem.
BOOKS
Book Title
No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Tutunamayanlar
Ince Memed 1
15
Memleketimden Insan
Manzaraları
Anayurt Oteli
Kara Kitap
Calikusu
AUTHORS
SSNO FirstName LastName BirthYear Gender
Devlet Ana
Bereketli Topraklar
Uzerinde
Aylak Adam
Tehlikeli Oyunlar
Agridagi Efsanesi
Yer Demir Gok Bakır
Kardes Payi
Istanbul'dan Cizgiler
Adalet
Halide Edip Adivar
Oguz
Yusuf
Attila
Fakir
Haydar
Resat Nuri
Nazım
Orhan
Yasar
Orhan Veli
Oktay
Orhan
Kemal
Atay
Atilgan
İlhan
Baykurt
Dumen
Kemal
Kemal
Kanik
ISBNNO
Rifat
9754700117
9789750807
9750803772
Agaoglu 1929
Pamuk
9750800665
Tahir
9750826139
9751027689
9752731332
9752895546
9750802447
9754702098
9750807411
9754183333
9789752897
9789754706
1884
Guntekin 1889
Hikmet
1934
1921
1925
1929
1931
1902
1914
1923
1914
1914
1952
1910
male
male
male
male
male
female 8
female 2
male
male
male
male
male
male
male
Publisher
male
Sinan Yayinlari
Iletisim Yayinlari
Yapi Kredi Yayinlari
Adam Yayinlari
Yapi Kredi Yayinlari
Inkilap Kitabevi
Ithaki Yayinlari
Everest Yayinlari
Yapi Kredi Yayinlari
Iletisim Yayinlari
Yapi Kredi Yayinlari
Adam Yayinlari
Everest Yayinlari
Iletisim Yayinlari
NumberOf
Prizes
1
3
4
13
0
NULL
NULL
5
39
NULL
6
24
2
Numbero Author
fPages SSNO
671
3
436
537
108
476
544
651
377
156
479
120
383
113
254
11
Name
9
4
14
8
15
10
4
3
11
11
10
10
PUBLISHERS
Adam Yayinlari
Iletisim Yayinlari
Inkilap Kitabevi
Ithaki Yayinlari
Everest Yayinlari
Sinan Yayinlari
Yapi Kredi Yayinlari
Founded In
1970
1982
1980
1997
2000
1971
1945
Candidate Keys are underlined.
There are two FK constraints; one from
BOOKS.AuthorSSNo to AUTHORS.SSNo,
and another from BOOKS.Publisher to
PUBLISHERS.Name.
Transcribed Image Text:Consider the following BOOKS, AUTHORS and PUBLISHERS relations for this problem. BOOKS Book Title No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Tutunamayanlar Ince Memed 1 15 Memleketimden Insan Manzaraları Anayurt Oteli Kara Kitap Calikusu AUTHORS SSNO FirstName LastName BirthYear Gender Devlet Ana Bereketli Topraklar Uzerinde Aylak Adam Tehlikeli Oyunlar Agridagi Efsanesi Yer Demir Gok Bakır Kardes Payi Istanbul'dan Cizgiler Adalet Halide Edip Adivar Oguz Yusuf Attila Fakir Haydar Resat Nuri Nazım Orhan Yasar Orhan Veli Oktay Orhan Kemal Atay Atilgan İlhan Baykurt Dumen Kemal Kemal Kanik ISBNNO Rifat 9754700117 9789750807 9750803772 Agaoglu 1929 Pamuk 9750800665 Tahir 9750826139 9751027689 9752731332 9752895546 9750802447 9754702098 9750807411 9754183333 9789752897 9789754706 1884 Guntekin 1889 Hikmet 1934 1921 1925 1929 1931 1902 1914 1923 1914 1914 1952 1910 male male male male male female 8 female 2 male male male male male male male Publisher male Sinan Yayinlari Iletisim Yayinlari Yapi Kredi Yayinlari Adam Yayinlari Yapi Kredi Yayinlari Inkilap Kitabevi Ithaki Yayinlari Everest Yayinlari Yapi Kredi Yayinlari Iletisim Yayinlari Yapi Kredi Yayinlari Adam Yayinlari Everest Yayinlari Iletisim Yayinlari NumberOf Prizes 1 3 4 13 0 NULL NULL 5 39 NULL 6 24 2 Numbero Author fPages SSNO 671 3 436 537 108 476 544 651 377 156 479 120 383 113 254 11 Name 9 4 14 8 15 10 4 3 11 11 10 10 PUBLISHERS Adam Yayinlari Iletisim Yayinlari Inkilap Kitabevi Ithaki Yayinlari Everest Yayinlari Sinan Yayinlari Yapi Kredi Yayinlari Founded In 1970 1982 1980 1997 2000 1971 1945 Candidate Keys are underlined. There are two FK constraints; one from BOOKS.AuthorSSNo to AUTHORS.SSNo, and another from BOOKS.Publisher to PUBLISHERS.Name.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
SQL Query
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
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