MIS 325 Lecture Notes - Lecture 7: Result Set

43 views2 pages

Document Summary

Works similarly to a column in a table, but can only be used to select data. Where rownum or = number: limits number of rows in result set. Sorting result set before using rownum with subquery: from (select columns from table order by column desc) Subquery: a select statement within another statement. Comparison operators: use in the search condition of a where clause. String and date literals must be enclosed in quotes. Compound condition: combining two or more search conditions. You can use parentheses to override the order of precedence. Value of the test expression is compared with the list of expressions in the. Between: where column between value and value. Like: retrieves rows that match a string pattern (mask) %: matches any string of zero or more characters. Test for null values: where column is null. Sorting by alphabetical sequence: order by lower column. You can order by alias, expression, or column position.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents