Winners table in the Oscars.mdf database Name Data Type Allow Nulls Default o Year int Actor varchar(50) Actiess varchar(50) Picture varchar(50) Animated varchar(50) Year Actor Actress Picture Animated 2008 2009 Danicl Day-Lewis Marion Cotillard No Country for Old Men Ratatouille Scon Penn Kete Winslet Slumdog Millioneire WALL-E 2010 Jeff Bridges Sandra Bullock The Hurt Locker Up 2011 Colin Firth Natalie Portman The King's Speech Toy Story 3 2012 2013 2014 Jean Dujardin Meryl Streep The Artist Rango Danid-Day Lewis Jennifer Lawrence Argo Brave Matthew McConaughey Cate Blanchett Eddie Redmayne 12 Vears a Slave Frozen 2015 Julianne Moore Birdman Big Hero 6 2016 2017 Leonardo DiCaprio Brie Larson Spotlight Inside Out Casey Affleck Emma Stone Moonlight Zoctopia Example 1 SELECT Year, Actor, Actress, Picture, Animated FROM Winners selects all of the fields and records from the table Example 2 SELECT Year, Actor, Actress, Picture, Animated FROM Winners WHERE Year >= 2014 selects all of the fields from records for the year 2014 and later Example 3 SELECT Year FROM Winners WHERE Picture = 'Argo' selects the Year field for the Argo record (continued) Example 4 SELECT Year, Picture FROM Winners WHERE Picture LIKE 'The %' selects the Year and Picture fields for all records whose Picture field begins with the word "The" followed by a space and zero or more characters Example 5 SELECT Year, Animated FROM Winners WHERE Year = 2010 OR Year = 2015 ORDER BY Year DESC selects the Year and Animated fields for records whose Year field contains either 2010 or 2015 and then arranges the records in descending order by the Year field
Winners table in the Oscars.mdf database Name Data Type Allow Nulls Default o Year int Actor varchar(50) Actiess varchar(50) Picture varchar(50) Animated varchar(50) Year Actor Actress Picture Animated 2008 2009 Danicl Day-Lewis Marion Cotillard No Country for Old Men Ratatouille Scon Penn Kete Winslet Slumdog Millioneire WALL-E 2010 Jeff Bridges Sandra Bullock The Hurt Locker Up 2011 Colin Firth Natalie Portman The King's Speech Toy Story 3 2012 2013 2014 Jean Dujardin Meryl Streep The Artist Rango Danid-Day Lewis Jennifer Lawrence Argo Brave Matthew McConaughey Cate Blanchett Eddie Redmayne 12 Vears a Slave Frozen 2015 Julianne Moore Birdman Big Hero 6 2016 2017 Leonardo DiCaprio Brie Larson Spotlight Inside Out Casey Affleck Emma Stone Moonlight Zoctopia Example 1 SELECT Year, Actor, Actress, Picture, Animated FROM Winners selects all of the fields and records from the table Example 2 SELECT Year, Actor, Actress, Picture, Animated FROM Winners WHERE Year >= 2014 selects all of the fields from records for the year 2014 and later Example 3 SELECT Year FROM Winners WHERE Picture = 'Argo' selects the Year field for the Argo record (continued) Example 4 SELECT Year, Picture FROM Winners WHERE Picture LIKE 'The %' selects the Year and Picture fields for all records whose Picture field begins with the word "The" followed by a space and zero or more characters Example 5 SELECT Year, Animated FROM Winners WHERE Year = 2010 OR Year = 2015 ORDER BY Year DESC selects the Year and Animated fields for records whose Year field contains either 2010 or 2015 and then arranges the records in descending order by the Year field
Chapter4: Constraints
Section: Chapter Questions
Problem 15MC: Which of the following data dictionary objects should be used to view information about the...
Related questions
Question
Using the Winners table from Figure 12-2, write a parameter query that selects only an
actor’s Picture field.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning