- Consider the following
query:
select fname, lname, dname, salary
from employee, department
where dno=dnumber
Output:
+--------+---------+----------------+----------+
| fname | lname | dname | salary |
+--------+---------+----------------+----------+
| John | Smith | Research | 30000.00 |
| Frankl | Wong | Research | 40000.00 |
| Alicia | Zelaya | Administration | 25000.00 |
| Jennif | Wallace | Administration | 43000.00 |
| Ramesh | Narayan | Research | 38000.00 |
| Joyce | English | Research | 25000.00 |
| Ahmad | Jabbar | Administration | 25000.00 |
| James | Borg | Headquarters | 55000.00 |
+--------+---------+----------------+----------+
|
Notice that:
- The
output of
a query is
a
relation (= table) !!!
- This
table can be
computed
(with the above query) !!!
|
|