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.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter12: Database Queries With Sql
Section: Chapter Questions
Problem 1E
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.

 

Expert 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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning