Table of Contents
nobel 諾貝爾獎得獎者
Home Database Mysql Tutorial sqlzoo练习答案--SELECTfromNobelTutorial/zh_MySQL

sqlzoo练习答案--SELECTfromNobelTutorial/zh_MySQL

May 27, 2016 pm 01:45 PM
Answer

nobel 諾貝爾獎得獎者

我們繼續練習簡單的單一表格SQL查詢。

這個教程是有關諾貝爾獎得獎者的:

nobel(yr, subject, winner)
Copy after login
yr subject winner
1960 Chemistry Willard F. Libby
1960 Literature Saint-John Perse
1960 Medicine Sir Frank Macfarlane Burnet
1960 Medicine Peter Madawar
...

yr: 年份
subject: 獎項
winner: 得獎者

1、更改查詢以顯示1950年諾貝爾獎的獎項資料。

SELECT yr, subject, winner
  FROM nobel
 WHERE yr = 1950
Copy after login
2、顯示誰贏得了1962年文學獎(Literature)。
SELECT winner
  FROM nobel
 WHERE yr = 1962
   AND subject = 'Literature'
Copy after login

3、顯示“愛因斯坦”('Albert Einstein') 的獲獎年份和獎項。
select yr,subject from nobel where winner = 'Albert Einstein'
Copy after login
4、顯示2000年及以後的和平獎(‘Peace’)得獎者。
select winner from nobel where yr>=2000 and subject='Peace'
Copy after login
5、顯示1980年至1989年(包含首尾)的文學獎(Literature)獲獎者所有細節(年,主題,獲獎者)。
select * from nobel where yr between 1980 and 1989 and subject = 'Literature'
Copy after login
6、

顯示總統獲勝者的所有細節:

  • 西奧多?羅斯福 Theodore Roosevelt
  • 伍德羅?威爾遜 Woodrow Wilson
  • 吉米?卡特 Jimmy Carter
    SELECT * FROM nobel
     WHERE winner IN ('Theodore Roosevelt',
                      'Woodrow Wilson',
                      'Jimmy Carter')
    Copy after login

    7、顯示名字為John 的得獎者。 (注意:外國人名字(First name)在前,姓氏(Last name)在後)

    select winner from nobel where winner like 'John%'
    Copy after login

    8、顯示1980年物理學(physics)獲獎者,及1984年化學獎(chemistry)獲得者
    select * from nobel where (yr=1980 and subject='physics') or (yr=1984 and subject='chemistry')
    Copy after login

    9、查看1980年獲獎者,但不包括化學獎(Chemistry)和醫學獎(Medicine)。
    select * from nobel where subject not in('Chemistry','Medicine') and yr=1980
    Copy after login

    10、顯示早期的醫學獎(Medicine)得獎者(1910之前,不包括1910),及近年文學獎(Literature)得獎者(2004年以後,包括2004年)。
    select * from nobel where (yr<1910 and subject=&#39;Medicine&#39;) or (yr>=2004 and subject=&#39;Literature&#39;)
    Copy after login
    11、Find all details of the prize won by PETER GRüNBERG
    select * from nobel where winner = &#39;Peter Gr&uuml;nberg&#39;
    Copy after login

    12、查找尤金?奧尼爾EUGENE O'NEILL得獎的所有細節 Find all details of the prize won by EUGENE O'NEILL
    select * from nobel where winner = &#39;Eugene O\&#39;Neill&#39;
    Copy after login
    13、

    騎士列隊 Knights in order

    列出爵士的獲獎者、年份、獎頁(爵士的名字以Sir開始)。先顯示最新獲獎者,然後同年再按名稱順序排列。

    select winner,yr,subject from nobel where winner like &#39;Sir%&#39; order by yr desc,winner asc
    Copy after login
    14、

    The expression subject IN ('Chemistry','Physics') can be used as a value - it will be 0 or 1.

    Show the 1984 winners and subject ordered by subject and winner name; but list Chemistry and Physics last.

    SELECT winner, subject FROM nobel where yr=1984 ORDER BY subject IN (&#39;Physics&#39;,&#39;Chemistry&#39;),subject asc,winner asc
    Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Eggman's Party uncovers the answers to the troublemaker's questions Eggman's Party uncovers the answers to the troublemaker's questions Feb 22, 2024 pm 01:10 PM

Eggboy Party has recently been very popular in finding troublemakers to answer questions. What are the answers to the 20 questions? Many players are afraid of making mistakes, so they search. In fact, these questions are very basic, and the answers have been summarized. Let’s take a look. Read this summary of answers to all 20 questions about spotting the troublemakers at Eggman's Party, it will definitely help you. Eggman Party Strategy Guide Eggman Party Unlocks Troublemaker Answers 1. As a scheming eggman, which of the following is your skill effect? ​​Answer: It can make the knocked down Eggman invisible 2. After a game fails, the following Which behavior is wrong? Answer: Blaming Eggman for the failure. 3. Which of the following statements about emergency discussions is correct? Answer: When there is important information, you can initiate an emergency discussion to tell everyone 4. Which of the following is in the game?

Samsung Galaxy Z Flip6 review: Simple design and practical experience, is the answer to the discounted version? ! Samsung Galaxy Z Flip6 review: Simple design and practical experience, is the answer to the discounted version? ! Jul 30, 2024 pm 12:54 PM

In the field of folding screens, small folding screens are also loved by many young users due to their lightweight, portable, exquisite and compact fashion attributes. In the previous review of the Samsung Galaxy Z Fold6 large folding screen, I gave it a "more square and more AI" evaluation. The small folding screen released at the same time, Samsung Galaxy Z Flip 6, has also attracted much attention. So what will it be like? Today, let’s unlock this new fashion product together. "Light" design: The fashionable appearance on the fingertips is the same as Galaxy Z Fold 6. The Galaxy Z Flip 6 body adopts a square design. In the unfolded state, the fuselage is slender than the average candy bar machine. The front and rear are connected by a straight-sided middle frame, and the four R corners retain a rounded shape.

Ant Manor Today's Answer 2.24 Ant Manor Today's Answer 2.24 Feb 23, 2024 pm 01:13 PM

What is today’s answer to Ant Manor 2.24? Today’s questions are: In order to prevent the glutinous rice balls from sticking to the bottom of the pot, what should you do? What kind of holiday delicacy is "stars shining in dark clouds, pearls floating in turbid water"? There are many friends who still don’t know the answer to the question, so the editor below will bring you today’s answers to the latest Ant Manor Chicken 2.24 in 2024. Interested friends, please come and find out together. Summary of Ant Manor's Today's Answers Ant Manor's Today's Answers 2.24 Question 1: In order to prevent the glutinous rice balls from sticking to the bottom of the pot, what should be done? Correct answer: Tangyuan under boiling water Ant Manor 2.24 Question 1 answer details Question 2: What kind of holiday delicacy is "stars shining in dark clouds, beads floating in turbid water"? Correct answer: Tangyuan Ant Manor 2.24 question 2 answer details How to participate in the daily question of Ant Manor

Ant New Village Today's Answer 3.7 Ant New Village Today's Answer 3.7 Mar 07, 2024 am 11:37 AM

Which of the following occupations is a good helper for scientific baby care? Ant New Village’s today’s question. Ant New Village’s today’s answer is nanny. Nanny is really professional in taking care of babies. Follow the editor to read this Ant New Village’s today’s answer 3.7 for the specific content. The latest 2024, I hope it can help you. Ant New Village Today's Answers Latest Ant New Village Today's Answers 3.7 Question: Which of the following professions is a good helper in scientific child care Answer: Nanny Analysis: A nanny is a good helper in scientific child care, which refers to the use of modern educational concepts and scientific methods Professionals who provide daily care, nursing and education for babies aged 0-3 years old.

Ant New Village Today's Answer 2.22 Ant New Village Today's Answer 2.22 Feb 22, 2024 pm 01:10 PM

Which of the following occupations specializes in repairing damaged cosmetic products? Ant New Village’s today’s question. Today’s answer in Ant New Village is a makeup repairer. Some expensive cosmetics are more cost-effective to repair and reuse. For more details, follow the editor to read this article on Ant New Village in 2024. Today’s answer is the latest 2.22, I hope it can help you. Ant New Village Today's Answers Latest Ant New Village Today's Answers 2.22 Question: Which of the following professions specializes in repairing damaged makeup products? Answer: Makeup Restorer Analysis: Makeup restorers are craftsmen who specialize in repairing damaged makeup products. They grind, heat, sterilize, and mold Various processes such as molding and packaging are used to re-repair damaged cosmetic products.

Ant Manor Today's Answer 3.11 Ant Manor Today's Answer 3.11 Mar 10, 2024 am 11:34 AM

What is today’s answer to Ant Manor 3.11? Today's questions are: Who is the protagonist of the idiom "stand out"? Which of the following vegetables has another name "chrysanthemum vegetable"? There are many friends who still don’t know the answer to the question, so the editor below will bring you today’s answers to the latest Ant Manor Chicken 3.11 in 2024. Interested friends, please come and find out together. Summary of today's answers to Ant Manor Today's answers to Ant Manor 3.11 Question 1: Who is the protagonist of the idiom "stand out"? Correct answer: Maosui Ant Manor 3.11 Question 1 answer details Question 2: Which of the following vegetables has another name "chrysanthemum vegetable"? Correct answer: Artemisia Ant Manor 3.11 question 2 answer details Ant Manor daily question How to participate: 1. First open Alipay

Ant Manor Today's Answer 1.28 Ant Manor Today's Answer 1.28 Feb 24, 2024 pm 01:30 PM

What is today’s answer to Ant Manor 1.28? Today’s questions are: Why do the surrounding walls of electric lamps become easily “blackened” after being used for a long time? Why is the southwestern folk dish "Zhe'ergen" also called "Houttuynia cordata"? There are many friends who still don’t know the answer to the question, so the editor below will bring you today’s answers to the latest Ant Manor Chicken 1.28 in 2023. Interested friends, come and find out together. Summary of Ant Manor's Today's Answers Ant Manor's Today's Answers 1.28 Question 1: Why are the surrounding walls easily "blacked out" after the electric lamp has been used for a long time? Correct answer: Particle deposition leads to Ant Manor 1.28 Question 1 answer details Question 2: Why is the southwestern folk dish "Zheergen" also called "Houttuynia cordata"? Correct answer: Fishy-smelling Ant Manor 1.2

Ant Manor Today's Answer 1.9 Ant Manor Today's Answer 1.9 Feb 23, 2024 pm 11:50 PM

What is today’s answer to Ant Manor 1.9? Today’s questions are: Is the traditional snack “almond tofu” a soy product? What does the word "瓓" in the idiom "a high-rise building with a commanding position" refer to? There are many friends who still don’t know the answer to the question, so the editor below will bring you today’s answers to the latest Ant Manor Chicken 1.9 in 2023. Interested friends, come and find out together. Summary of Ant Manor's Today's Answers Ant Manor's Today's Answers 1.9 Question 1: Is the traditional snack "almond tofu" a soy product? Correct answer: No Ant Manor 1.9 Question 1 answer details Question 2: What does the "瓓" in the idiom "lofty building in a high place" refer to? Correct answer: A bottle filled with water Ant Manor 1.9 question 2 answer details Ant Manor daily question How to participate: 1. First open the payment

See all articles