SQL.

Slides:



Advertisements
Similar presentations
Elements - Names and Symbols n Hydrogen nHnH n Helium n He n Lithium n Li.
Advertisements

Lecture 1.1 Refresh your high school chemistry CS882, Fall 2006.
Sodium (Na) - 11 Atomic Number = - - Atomic Mass = neutrons
Atomic structure. Atomic Structure The structure of the atom ELECTRON PROTON NEUTRON.
Periodic Table of the Elements Written by: Bill Byles -
Review of Elements and Symbols. P Phosphorous Ag Silver Cu Copper N Nitrogen.
H. Hydrogen O OXYGEN Al Aluminum Kr Krypton.
Atoms and Elements. Atoms Atoms are the “building blocks” of all matter and are the simplest form of molecule. They are all made up of protons, neutrons.
Alkali Metals Nobel Gases Halides Non Metals
Periodic Table of Elements. Element An element is a substance that is made up of ONE kind of atom only. e.g. Carbon.
08/09/2015 Starter - Elements and symbols that you should know: Part 1 – The obvious ones: 1)Hydrogen 2)Helium 3)Lithium 4)Beryllium 5)Boron 6)Carbon 7)Nitrogen.
PRACTICE DRAWING ATOMS. DRAWING ATOMS RULES PROTONS = Atomic number ELECTRONS = Atomic number NEUTRONS = mass number – atomic number 1 st level can hold.
Electron Distribution Chemistry Dr. May. Orbitals And Suborbitals atom 1s2s 2p3s 3p4s.
1. Atoms Elements Compounds 2. The structure of an Atom 3. Symbols for elements 4 Elements of the periodic table Chemistry Elements Chemistry Elements.
Element Symbol Practice. Carbon C Potassium K Beryllium Be.
Elements and Symbols Practice. PART I (SLIDES WITH BLUE BACKGROUNDS) Directions: Name the Symbol for each listed element.
Atomic Structure. Rules Of Atomic Structure 1.The Number of electrons = number of protons 2.Atomic Number = the number of protons/electrons 3.Atomic Mass.
18 Bohr Models Lesson 3.1 Extension. Element Name: _______________________ Chemical Symbol: _______Atomic Number: _______ Diagram the Bohr atom which.
Bohr Model Diagrams Lesson 3.1 Extension.
Periodic Table of the Elements. Select an element = Internet link ()
hydrogen atom 1 atomic number so one electron 1 H X.
Valence Electrons and Oxidation Numbers Chemistry Dr. May.
CL CL Mg CL CL CL CL CL CL CL CL CL CL O C O.
Review of Elements #1-20 Good Luck!! FabulousFunFriskyDr. Evil
Put a different element name on each card, along with its symbol, number of protons and number of electrons. Metals on 1 colour, others on other What makes.
Bohr Diagrams for Atoms. Showing Protons, Neutrons and Electron Arrangements for neutral atoms of the First 20 Elements.
General Informations Name of the teacher : Jennifer. M. Job Subject :Chemistry Topic : Mendeleev’s periodic law, Moseley’s periodic law and Modern periodic.
La Tabla Periodica Cada elemento Y su explicacion.
Name That Element Extra Credit Created by T.Trimpe 2008.
1s 2s 2p 3s 3p 3d 4s Electronic configuration: FeMnVTiScK Na ZnCuNiCrCo Mg Ca Be H As O S Se F Cl BrGa C Si Ge N P He 1s 1 Ne Ar Kr Hydrogen 1 2 GROUP.
The Bohr Model Mr. Matthew Totaro Legacy High School Chemistry.
What is the chemical symbol of Hydrogen? H. What is the chemical symbol of Carbon? C.
NIRUPAMA ROY Assistant Teacher South Point School & College.
Interpreting the Periodic Table H He LiBeBCNOFNe NaMg KCa AlSiPSClAr
Theories of the Atom. Ernest Rutherford (Gold Foil Experiment) Discovered that atoms have a positively charged central mass called the nucleus Hypothesis:
Periodic The Table REVIE W. Periodic Table Review Write the missing information (?) for each number.
Using the Main Group Elements of the Periodic Table to Draw Bohr-Rutherford Diagrams He
Today in Physical Science 
Atomic Structure. It used to be thought that atoms were small indivisible particles. It was thought that the only difference between the atoms of one.
First 20 Elements in the Periodic Table
Hydrogen H 1 1 Atomic number = 1 Mass number = 1
Elements and Compounds
Atomic Mass = All the Isotopes
WARM UP “Nothing is particularly hard if you break it into small jobs.” –Henry Ford What does this mean to you? How can you apply this to memorizing all.
The Periodic Table of Elements
19/09/2018 Atoms and Elements W Richards Worthing High School.
Why is the periodic table shaped that way?
19/09/2018 Atoms and Elements.
19/09/2018 Atoms and Elements.
Chapter Fifteen: Elements and the Periodic Table
The Atom Grade 9 Science Ms. Raper..
Do these steps on the front of the worksheet
20/09/2018 Atoms and Elements W Richards The Weald School.
Bohr Diagram, Electron configurations, and charges
Periodic Table Element flashcards
Element Identities.
The Periodic Table.
Al Si Ne Li He P H Periodic Table Basics Be O Mg F Na N B C Cl
Bohr Model Lewis Structures
H stands for the hydrogen atom He is helium Li is lithium
Elements numbers 1-20.
Al Si Ne Li He P H Periodic Table Basics Be O Mg F Na N B C Cl
13/04/2019 Atoms and Elements W Richards The Weald School.
The Periodic Table of Elements
Element Quiz 2 Study Guide
Al Si Ne Li He P H Periodic Table Basics Be O Mg F Na N B C Cl
17/05/2019 Atoms and Elements W Richards Worthing High School.
The Periodic Table of Elements
Table 2-1.
List the elements or their symbols Give their atomic number
Presentation transcript:

SQL

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements Ans 1 a) 1 b) 1 c) 1 d) 1 e) How many records would be found if you used the query: a) SELECT Name from Elements WHERE Type=Metal b) SELECT * from Elements WHERE State=Gas c) SELECT Name from Elements WHERE Type=Metal AND State=Gas d) SELECT Name from Elements WHERE Atomic Mass>20 AND Type=Metal e) SELECT Name from Elements WHERE Atomic Mass<20 AND Atomic Number>5

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements Ans 2 a) H; He; N; O; F; Ne; Cl; Ar 2 b) 2 c) 2 d) 2 e) 2. What would be listed if you used the query: a) SELECT Symbol from Elements WHERE State=Gas b) SELECT Symbol from Elements WHERE Type=Metalloid c) SELECT Symbol from Elements WHERE Melting Point>1000 d) SELECT Name from Elements WHERE Atomic Mass<10 AND Type=Metal e) SELECT Name from Elements WHERE Atomic Mass<20 AND State=Solid

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements Ans 3 a) 1, Hydrogen;2, Helium 3 b) 3 c) 3 d) 3 e) 3. What would be listed if you used the query: a) SELECT Atomic Number, Name from Elements WHERE Atomic Mass < 7 b) SELECT Atomic Number, Symbol from Elements WHERE Type=Metal AND Atomic Mass > 30 c) SELECT Symbol, Atomic Mass from Elements WHERE Melting Point < -200 d) SELECT Name from Elements WHERE Type=Metal OR Atomic Number < 3 e) SELECT Symbol from Elements WHERE Atomic Mass < 10 OR Atomic Mass > 35

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements 4. a) Write a query to list the names of all of the elements that are a gas: b) Write a query to list all of the information about all of the elements that are a Metal:

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements 5. a) Write a query to list the names of all of the elements that are either a gas or a metalloid: b) Write a query to list all of the information about all of the elements that have an Atomic Mass of greater than 21:

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements 6. a) Write a query to list the names and Atomic Mass of all of the elements that have either a melting point less than 0 or are a gas b) Write a query to list all of the information about all of the elements that are metals with an atomic number less than 10

This is a database table called Elements Atomic Number Symbol Name Atomic Mass Melting Point Boiling Point State Type 1 H Hydrogen 1.0 -259.1 -252.9 Gas Non-metal 2 He Helium 4.0 -272.2 -268.9 3 Li Lithium 7.0 180.5 1342 Solid Metal 4 Be Beryllium 9.0 1278 2970 5 B Boron 10.8 2079 2550 Metalloid 6 C Carbon 12.0 3367 4827 7 N Nitrogen 14.0 -209.9 -195.8 8 O Oxygen 16.0 -218.4 -183 9 F Fluorine 19.0 -219.8 -188.1 10 Ne Neon 20.2 -248 -248.7 11 Na Sodium 23.0 97.8 883 12 Mg Magnesium 24.3 649 1090 13 Al Aluminum 27.0 660 2467 14 Si Silicon 28.1 1410 2355 15 P Phosphorus 31.0 44.1 280 16 S Sulphur 32.1 112.8 444.7 17 Cl Chlorine 35.5 -101 -34.6 18 Ar Argon 39.9 -189.2 -185.7 19 K Potassium 39.1 63.25 760 20 Ca Calcium 40.1 839 1484 This is a database table called Elements 7. a) Find out how to write a query that would list all of the elements whose name started with the letter C b) Find out how to write a query that would list all of the elements whose name ended with the letter m c) Find out how to write a query that would list all of the elements whose name contains the letter n

Go to the website: https://www.w3schools.com/sql/trysql.asp?filename=trysql_select_where_number And try using some SQL statements