|
|
In Banner, querying for records is as easy as these steps:
|
|
When you make a query, the data is NEVER changed. You cannot hurt the data by anything you put in a query.
A join is a query that combines data from two tables.
A query has five main clauses:
Use the SELECT clause to list the table columns that you want to see. List all the columns in one SELECT clause (even if the columns are from different tables), and use a comma to separate the column names. For example:
SELECT COLUMN, COLUMN, COLUMN
The SELECT clause is the one place you can specify the order in which columns will appear. When you use a SELECT clause, list columns in the sequence you want them to appear in your report.
Use the FROM clause for the table name. In a query on more than one table, list all the table names and separate them with commas. For example:
FROM TABLE, TABLE, TABLE
The WHERE clause is optional. If you don't use a WHERE clause, all the rows of the specified table or tables are selected. Use the WHERE clause to look at your data more closely. For example, suppose you want to look at application terms, but you want to eliminate the current term. You could accomplish this by this WHERE clause:
WHERE App_Term NOT IN (2000)
The GROUP BY clause is optional. The GROUP BY clause provides a way for you to summarize data. For example, if you want to look at all the female students in a specific term, you could use this method:
WHERE App_Term = 1999
GROUP BY Gender
The ORDER BY clause is optional. Use the ORDER BY clause to list columns used for sorting. If you don't use the ORDER BY clause, Banner will return the rows in no specific order.
|
|
Querying on a date field? Does the time stamp say "00:00:00?"
If so, you’ll probably get a message that says no records match your query. If
this happens, you can use a relational operator with an earlier and later date
in your query. Instead of asking Banner for records that match 26-JUN-2000,
you can ask for records that match the dates >25-JUN-2000 and
<27-JUN-2000.
|
|
Use the % wildcard character if you are querying for more than one unknown character. The _ wildcard character substitutes for a single unknown character. And that's not the only shortcut -- how 'bout some keyboard shortcuts?
|
|
Do you want to learn more about how to use SQL to locate data in Banner? Take a look at the Banner General Technical Reference Manual. |