The Magazine table contains three fields. The Cost field is numeric. The Code and Name fields contain text. Write a SQL SELECT statement that arranges the records in descending order by the Cost field. Write a SQL SELECT statement that selects only the Name and Cost fields from records having a code of PG10. Write a SQL SELECT statement that selects only the Name and Cost fields from records having a cost of $3 or more. Write a SQL SELECT statement that selects the Visual Basic record. Write a SQL SELECT statement that selects only the Name field from records whose magazine name begins with the letter C. Write a SQL SELECT statement that selects only the Name field from records whose magazine name contains two characters. Write a SQL SELECT statement that selects only the Name and Cost fields from records whose cost is from $4 to $6, inclusive. Write a SQL SELECT statement that selects only records for the Code provided by the user. Write a SQL SELECT statement that selects only records that cost at least as much as the amount provided by the user. Write a SQL SELECT statement that selects only records that cost more than the first amount provided by the user but less than the second amount he or she provides. Open the Harken Solution.sln file contained in the VB2017\Chap12\Harken Solution folder. The application is already connected to the Harken.mdf database, and the HarkenDataSet has already been created. Start the application to view the records contained in the dataset and then stop the application. Open the DataSet Designer window and then start the TableAdapter Query Configuration Wizard. Open the Query Builder dialog box. Use the dialog box to test your SELECT statements from Steps a through j.

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

The Magazine table contains three fields. The Cost field is numeric. The Code and Name fields contain text.

  1. Write a SQL SELECT statement that arranges the records in descending order by the Cost field.
  2. Write a SQL SELECT statement that selects only the Name and Cost fields from records having a code of PG10.
  3. Write a SQL SELECT statement that selects only the Name and Cost fields from records having a cost of $3 or more.
  4. Write a SQL SELECT statement that selects the Visual Basic record.
  5. Write a SQL SELECT statement that selects only the Name field from records whose magazine name begins with the letter C.
  6. Write a SQL SELECT statement that selects only the Name field from records whose magazine name contains two characters.
  7. Write a SQL SELECT statement that selects only the Name and Cost fields from records whose cost is from $4 to $6, inclusive.
  8. Write a SQL SELECT statement that selects only records for the Code provided by the user.
  9. Write a SQL SELECT statement that selects only records that cost at least as much as the amount provided by the user.
  10. Write a SQL SELECT statement that selects only records that cost more than the first amount provided by the user but less than the second amount he or she provides.
  11. Open the Harken Solution.sln file contained in the VB2017\Chap12\Harken Solution folder. The application is already connected to the Harken.mdf database, and the HarkenDataSet has already been created. Start the application to view the records contained in the dataset and then stop the application. Open the DataSet
  12. Designer window and then start the TableAdapter Query Configuration Wizard. Open the Query Builder dialog box. Use the dialog box to test your SELECT statements from Steps a through j.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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