Please check
here to
see how to connect to PUCC PCs.
SQL> alter user your_login_name identified by new_password;
SQL> remark this is a comment line, not an instruction SQL> -- another kind of comment line SQL> /* another kind of comment line */ SQL> /* Now let us test some Oracle's functions using DUAL DUAL is a tiny table Oracle provides with only one row and one column in it. Try it! */ SQL> select SysDate from DUAL; SQL> select 2+3 from DUAL; SQL> select 10-4 from DUAL; SQL> select 23*4 from DUAL; SQL> select 4.5/3 from DUAL; SQL> select power(4,3) from DUAL; SQL> select ABS(-34.5) from DUAL; SQL> select CEIL(23.8) from DUAL; SQL> select cos(39.4) from DUAL; SQL> select exp(2) from DUAL; SQL> select LOG(2, 4) from DUAL; SQL> select ROUND(99.308, -1) from DUAL; SQL> select sqrt(36) from DUAL; SQL> select greatest(1, 2, 3, 4) from DUAL; SQL> select least(1, 2, 3, 4) from DUAL; SQL> /* Please see page 143 for details */ SQL> select * from user_tables; SQL> /* If you did not created tables, it will prompt no rows selected */ SQL> /* There are some tables under TA's account. Please try the following commands */ SQL> select * from yfeng.employee; SQL> select * from yfeng.department; SQL> select * from yfeng.dept_locations; SQL> select * from yfeng.works_on; SQL> select * from yfeng.project; SQL> select * from yfeng.dependent; SQL> list; /* list the last SQL command */ SQL> / /* repeat the last SQL command */ SQL> /* Use describe command to see the defination of a table */ SQL> describe yfeng.employee; SQL> describe yfeng.department; SQL> describe yfeng.dept_locations; SQL> describe yfeng.works_on; SQL> describe yfeng.project; SQL> describe yfeng.dependent; SQL> /* Use editor in SQL */ SQL> edit myfile.sql SQL> /* This file can be saved only under your directory. When you want to save this file, double click k:/ then double click student and find your directory to save it. */
SQL> quit;
We will use SQL to create tables, insert records, select from tables, delete records (or rows), or drop table. Details will be discussed in class. Once these commands are discussed in class, we will practice them in lab.
From "Applications" window, select "Access 2.0". Please read the on-line help file "Cue Card" first, then try to play it. Once Professor explains some basic database concepts, we will work on the first project using MS Access.
There is a sample database under n:\dos\msoffice.43\access\sampaps\. To open it, select "open" icon on the menu and double click sampaps on the right. There are 3 .dbm files. Active one and open one of the tables to play.