The Language of SQL- P49 ppsx

5 238 0
The Language of SQL- P49 ppsx

Đang tải... (xem toàn văn)

Thông tin tài liệu

3. Click the FREE DOWNLOAD button. 4. Click ORACLE DATABASE 10g EXPRESS EDITION FOR MICROSOFT WINDOWS. 5. Click ACCEPT LICENSE AGREEMENT. 6. Under Oracle Database 10g Express Edition (Western European), click ORACLEXE.EXE. 7. You may then be asked a series of questions, asking if you want allow various proced ures to execute. Respond RUN to all questions. 8. If you don’t have an account with Oracle, click SIGN UP NOW. Otherwi se, enter your username and password and then enter personal information. 9. When asked if you want to run or save the file, select the RUN button. The install setup wizard will then start. 10. On the Welcome screen, click the NEXT button. 11. On the License screen, click ACCEPT and then the NEXT button. 12. On the Destination screen, click the NEXT button. 13. On the Database Passwords screen, enter a password. 14. On Summary screen, click INSTALL. 15. After the install completes, click the FINISH button. After this has completed, you will have the following software installed: Oracle Database 10g Express Edition. The interface to the database is Web based. The various features are accessible under the Start menu under the Oracle Database 10g Express directory. The primary applicat ion in this directory that you’ll want to use is Go To Database Home Page. After the initial install, you will be taken to a Database Login screen on the Database Home Page. This is the same page you would enter by selecting GO TO DATABASE HOME PAGE under the Oracle Database 10g Express Edition directory under the Start menu. Appendix C ■ Getting Started with Oracle226 After going to this Database Home Page, enter the user name SYSTEM and the password you created; then click the LOGIN button. Using Oracle Database Express Edition To gain access to the Oracle database, run the GO TO DATABASE HOME PAGE program under the Oracle Database 10g Express Edition directory in the start menu. This will open up a Web-based application, which will allow you to interface with the database. To sign on, enter a username of SYSTEM, the password you specified during the install, and then click the LOGIN button. You will then see four icons representing different functionalities: Administra- tion, Object Browser, SQL, and Utilities. To execute SQL, click the SQL icon. You will then see three icons: SQL Commands, SQL Scripts, and Query Builder. If you want to execute a single SQL statement, you can use the SQL Commands icon. This will allow you to execute a single command and see any results. If you enter multiple SQL statements, you can highlight one individual statement and execute only the highlighted portion. To execute a SQL statement in the SQL Commands window, click the RUN button. If you want to execute multiple SQL statements, but you don’t need to see the output, you can use the SQL Scripts icon. After selecting this icon, you can either create a new script or edit an existing script. To create a new script, click the CREATE button and then name the script and enter the statements you want in that script. To execute, click the RUN button. After you enter the request, it will ask for a confirmation to do the run. Click the RUN button again. You will then be able to see a summary of your script execution by clicking on the icon under the View Results column. Oracle provides complete online documentation on their database. Their reference manuals are currently at: http://www.oracle.com/pls/db112 Using Oracle Database Express Edition 227 This page intentionally left blank appendix D Listing of All SQL Statements A listing of all SQL statements in this book can be found on this Cengage Web site: www.courseptr.com/downloads. These three files are provided: ■ SQL Statements and Data for SQL Server.doc ■ SQL Statements and Data for MySQL.doc ■ SQL Statements and Data for Oracle.doc These three files list all SQL statements in the book for each of the three databases covered. Additionally, these files contain SQL scripts that allow you to create all the data used in the book. After running the setup scripts, you can execute any statement in the book and see the same output shown in the book. Specific instructions on how to execute the setup scripts are provided in each of the files. 229 This page intentionally left blank . and then enter personal information. 9. When asked if you want to run or save the file, select the RUN button. The install setup wizard will then start. 10. On the Welcome screen, click the NEXT. allow you to interface with the database. To sign on, enter a username of SYSTEM, the password you specified during the install, and then click the LOGIN button. You will then see four icons representing. Oracle.doc These three files list all SQL statements in the book for each of the three databases covered. Additionally, these files contain SQL scripts that allow you to create all the data used in the

Ngày đăng: 05/07/2014, 05:20

Mục lục

  • Chapter 1 Relational Databases and SQL

    • Language and Logic

    • Microsoft SQL Server, Oracle, and MySQL

    • Primary and Foreign Keys

    • The Significance of SQL

    • Chapter 2 Basic Data Retrieval

      • A Simple SELECT

      • Column Names with Embedded Spaces

      • Chapter 3 Calculations and Aliases

        • Calculated Fields

        • Chapter 4 Using Functions

          • The Function of Functions

          • Chapter 5 Sorting Data

            • Adding a Sort

            • Sorting in Ascending Order

            • Sorting in Descending Order

            • Sorting by Multiple Columns

            • Sorting by a Calculated Field

            • More on Sort Sequences

            • Chapter 6 Column-Based Logic

              • IF-THEN-ELSE Logic

              • Chapter 7 Row-Based Logic

                • Applying Selection Criteria

                • Limiting Rows with a Sort

                • Chapter 8 Boolean Logic

                  • Complex Logical Conditions

                  • Multiple Sets of Parentheses

                  • Boolean Logic and NULL Values

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan