RelationalDBDesign
SiteMap
Business Rules
Cursors Views
Database Creation
SQL Monitoring
Database Web Apps
Data Manipulation
Access Features
Tables Queries
Basic Queries
«Prev
Next»
Database Web Applications
Database Concepts
Table Structures
SQL
Data Binding
Basic Queries
SQL Select Statement
SQL Where Clause
Sort Results Orderby
Modify Records Update
SQL Insert Statement
Delete Table Row
SQL Capability Conclusion
Data Access
Binding DataBound DesignTime Controls
Scripting with Recordsets
Defensive Programming Handling Errors
Modifying Data
Updating Database Records
Data Types Databases
Direct Database Access
Order By Clause -Exercise
Using ORDER BY - Exercise
Objective:
Sort table rows using the
ORDER BY
clause.
Exercise scoring
This exercise is worth 3 points and is automatically scored. When you are finished, just click the
Submit
button to receive full credit.
Background/overview
Write a
SELECT
statement that sorts the CustTable in ascending order by state and by last name.
Download files
You will need the file sqlfun.asp to do this exercise.
Instructions
Open the sqlfun.asp file in the source code editor
Locate the line: querystring = " ",
Insert the complete
SELECT
statement between the quotation marks.