LO1 Write An SQL Statement To Retrieve and Sort Data
LO1 Write An SQL Statement To Retrieve and Sort Data
Most Relational Database Management Systems like MS SQL Server, Microsoft Access, Oracle,
MySQL, DB2, Sybase, PostgreSQL and Informix use SQL as a database querying language.
Even though SQL is defined by both ISO and ANSI there are many SQL implementation, which
do not fully comply with those definitions.
SQL, is a standardized computer language that was originally developed by IBM for querying,
altering and defining relational databases, using declarative statements. SQL is relatively simple
language, but it’s also very powerful.
SQL is pronounced SEQUEL. SQL was developed during the early 70’s at IBM.
Even if SQL is a standard, many of the database systems that exist today implement their own
version of the SQL language.
MS SQL Server is a paid database server, but it has a free limited version called MSDE
(Microsoft SQL Server Desktop Engine). MSDE version of MS SQL Server is free for re-
distribution with desktop applications. As we mentioned MSDE has certain restrictions, like:
The maximum size of a database is 2 GB
MSDE comes with no administration tools.
MSDE has has a governor which will slower the db server response once you exceed 5
concurrent connections to it.
MS SQL Server uses SQL as its standard database language. The SQL dialect used by MS SQL
Server is called T-SQL.
The latest MS SQL Server version available on the market is MS SQL Server 2008.
2. Oracle
Oracle is aObject- relational database management system developed by Oracle Corporation.The
Oracle RDBMS is used in many database applications on sevarl OS platforms, including Unix
and Windows.
Founding of Oracle
In 1977, Larry Ellison, Bob Miner, and Ed Oates started the consultancy Software Development
Laboratories, which became Relational Software, Inc. (RSI). In 1983, RSI became Oracle
Systems Corporation and then later Oracle Corporation.
First commercially available RDBMS
In 1979, RSI introduced Oracle V2 (Version 2) as the first commercially available SQL-based
RDBMS, a landmark event in the history of relational databases.
Objects and partitioning
Oracle8 was released in 1997 as the object-relational database, supporting many new data types.
Additionally, Oracle8 supported partitioning of large tables.
The Oracle database was the first commercial RDBMS that became available on Linux during
the summer of1999. The Oracle datatabase is more expensive compared to MS SQL Server.
MySQL is most commonly used for Web applications and for embedded applications and has
become a popular alternative to proprietary database systems because of its speed and reliability.
MySQL can run on UNIX, Windows and Mac OS. MySQL is developed, supported and
marketed by MySQL AB.
4. Microsoft Access
it’s one of the most popular Microsoft products. MS Access comes with the professional edition
of MS Office package. MS Access is a paid product and runs only on Windows platform.
MS Access has easy to use intuitive graphical interface, which makes it one of the most popular
database software among small business.
5. IBM DB2
DB2 is relational database management system developed by IBM. DB2 is the first database
product that used SQL language. DB2 was first available on the mainframe and later moved to
UNIX, Linux and Windows platforms.
DB2 has the ability to handle millions of transactions and huge sets of data. DB2 is very scalable
and can handle serious workloads.DB2’s main competitor is Oracle. DB2 is a low cost
alternative to MS SQL Server and Oracle databases. DB2 is usually administered through multi-
platform java client GUI.
Data storage and definition language – special type of DDL in which the storage structure and
access methods used by the database system are specified.
The most basic items of DDL are the CREATE, ALTER, RENAME and DROP statements:
CREATE creates an object (a table, for example) in the database.
DROP deletes an object in the database, usually irretrievably.
ALTER modifies the structure an existing object in various ways—for example, adding a
column to an existing table
TRUNCATE - remove all records from a table, including all spaces allocated for the records
are removed
COMMENT - add comments to the data dictionary
RENAME - rename an object
2. Data Manipulation Language (DML)
The DML Language for accessing and manipulating the data organized by the appropriate data
model. It is the subset of SQL used to add, update and delete data and statements are used for
managing data within schema objects.
The acronym CRUD refers to all of the major functions that need to be implemented in a
relational database application to consider it complete. Each letter in the acronym can be mapped
to a standard SQL statement:
Windows Server 2008 also provides the Hyper-V virtualization systems. SQL Server 2008 and
all of its components, including SSRS, are supported in virtual environments created using
Hyper-V, provided of course sufficient CPU and RAM resources are allocated to the virtual
machine and that the virtual machine runs an operating system supported by SQL Server
Reporting Services (SSRS).
Tables 5.4, 5.5, and 5.6 list operating system requirements and additional software requirements
for installation of Reporting Services on 32- and 64-bit platforms.
TABLE 5.4 Operating Systems That Can Run 32-Bit Versions of Report Server
NOTE
Systems that are not explicitly listed in Table 5.4 are not supported by Reporting Services. For
example, Reporting Services 32-bit is not supported on Windows 2003 64-bit Itanium.
For situations with heavy memory or I/O requirements, such as heavy graphics and PDF
rendering, customers can benefit from deploying SSRS on a 64-bit platform. Table 5.5 outlines
SSRS support on a 64-bit platform.
Express
Enterprise x64 Standard x64 Workgroup x64 Web x64
x64
Windows XP Pro x64 No Yes Yes Yes No
Windows Server 2003 Standard x64 Yes Yes Yes Yes Yes
Windows Server 2003 Data Center
Yes Yes Yes Yes Yes
x64
Windows Server 2003 Enterprise x64 Yes Yes Yes Yes Yes
Windows Vista x64 Ultimate No Yes Yes Yes Yes
Windows Vista x64 Home Premium No No Yes No Yes
Windows Vista x64 Home Basic No No Yes No Yes
Windows Vista x64 Enterprise No Yes Yes Yes Yes
Windows Vista x64 Business No Yes Yes Yes Yes
Windows Server 2008 Standard x64 Yes Yes Yes Yes Yes
Windows Server 2008 Data Center
Yes Yes Yes Yes Yes
x64
Windows Server 2008 Enterprise x64 Yes Yes Yes Yes Yes
The following operating systems are supported by SQL Server Enterprise/Developer Edition
IA64:
Note that with any 64-bit operating system, management tools may be supported in WOW64.
WOW64 allows native 32-bit code to execute natively on non-32-bit systems.
NOTE
Development tools such as Business Intelligence Development Studio (BIDS) are neither
installed nor supported on the IA64 platform. For IA64 deployments, use development tools
installed on a separate 32-bit or x64 workstation.
Table 5.6 outlines additional software requirements for both 32- and 64-bit platforms and
optional software that can be installed to benefit Reporting Services.
.NET Framework Windows 2003 IA63 requires .NET Framework 2.0 SP1.
Microsoft Data Access Components (MDAC) All versions require MDAC 2.8 SP1 or higher.
3. Setup Support Rules opens. Click on "show details to ensure that all the tests passed
successfully
Then click on OK
6. The SQL Server 2008 Setup opens with a first "product key" tab
As we use a specific free version of SQL Serveur, no activation key is needed.
Simply click "next"
7. Read the licence terms
Check the box "I accept the licence terms"
Click on "Next"
10. On the "features selection" tab choose "Data Engine Services" and "Management tools" (this
is the Management Studio Express)
check the features directory (no need to change normally) click "next"
11. On the "instance Configuration" check that the parameters are like the screenshot on the left
(nothing to change normally)
Click "Next"
20. To ensure SQL Express is running correctly, run "SQL Server Configuration Manager"
On the left column click on "SQL Server Services
On the right column, ensure that SQL Server (SQLEXPRESS) is running correctly (otherwise
right-click on the device to start it)
21. Browse the new directory "Microsoft SQL Server 2008" and open the SQL Server
Management Studio to ensure it has been correctly installed
22. If you used to work with SQL Server 2000 our SQL Server 2005 before, you will probably
obtain this message
"Do you want to import your customized user settings...". Simply click Yes (or no as you prefer
it doesn't matters concerning Octopus)
* You can find the name of your computer on the control panel>System
Does it opens ? -> Congratulations, you can now go to the next step: Install Octopus