<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2234050870648484428</id><updated>2012-01-17T22:01:47.823-08:00</updated><category term='MYSQL'/><category term='UBUNTU'/><category term='ORACLE'/><category term='UTILITIES'/><category term='WINDOWS XP'/><category term='JAVA'/><category term='SQL SERVER 2008'/><category term='WINDOWS SERVER 2008'/><category term='HTML'/><title type='text'>FREE LESSONS</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-8320125418031767578</id><published>2011-11-03T08:27:00.000-07:00</published><updated>2011-11-03T08:27:19.651-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>LESSON 4 – HOW TO CREATE A TABLE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cy7ydeEBEko/TrKxGEZi5JI/AAAAAAAAD4M/m3WBNDu8WYE/s1600/mysql_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="117" src="http://4.bp.blogspot.com/-cy7ydeEBEko/TrKxGEZi5JI/AAAAAAAAD4M/m3WBNDu8WYE/s200/mysql_logo.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;In today's lesson, we will discuss the commands to construct tables on MySQL. Data cannot exist by itself inside a database. It must be saved in a structural and organized way within an object called table. Tables are the fundamental objects that carry and present our data in an organized and secure fashion. In other words, our data must be saved to table(s) and tables are saved in a database. So, after the creation of a database, the second and most important task is to create the tables where we will insert our data.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;To create a table in MySQL, we must use the clause command CREATE TABLE followed by the name of the new table, followed by a set of column definitions. At the end of the statement, we can optionally specify the storage engine type we would like to use. A column definition is a constraint placed on a particular column to limit the type of values that you can store in that column. In gerenal, there are three major categories of data types: numeric, string, and date/time. Each one of those categories includes subcategories that present specific characteristics.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;The numeric data category deals exclusively with numbers. MySQL supports all kinds of integer numbers including INTEGER, SMALLINT, DECIMAL and NUMERIC as well as all the decimal numbers including FLOAT, REAL, and DOUBLE PRECISION. Keep in mind that the keyword INT refers to an integer number whereas the keyword DEC refers to a decimal number. If you wonder, why we have so many different data types in the same category (eg. for INTEGER numbers) the answer is simply to save storage space. Each of the data types need a different size of bytes to describe a number. The online manual (&lt;a href="http://dev.mysql.com/doc/refman/5.5/en/storage-requirements.html"&gt;http://dev.mysql.com/doc/refman/5.5/en/storage-requirements.html&lt;/a&gt;) of MySQL 5.5 gives us a complete description of each data type and the bytes they require.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-LZsBQm2yp3Q/TrKxQV9LOOI/AAAAAAAAD4U/43HU-vHFXss/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="224" src="http://4.bp.blogspot.com/-LZsBQm2yp3Q/TrKxQV9LOOI/AAAAAAAAD4U/43HU-vHFXss/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;By looking at the table above, we can conclude that each data type has the ability to cover different ranges of numbers. In other words, a data type that uses 8 bytes (eg. BIGINT) has the ability to describe and store a greater range of numbers than a data type of size 2 bytes (eg. SMALLINT). The following table describes fully the range for each integer type.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-tli1oLAp7pE/TrKxWzDvs1I/AAAAAAAAD4c/k9ZCbZnmtbE/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="http://2.bp.blogspot.com/-tli1oLAp7pE/TrKxWzDvs1I/AAAAAAAAD4c/k9ZCbZnmtbE/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Let's create our first table. We will use a  code example that builds a table named “payment” and has columns consisting of only with numeric data types. In future lessons, we will refer to the rest of the data types as well.  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;CREATE TABLE payment &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;payment_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT primary key,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;customer_id SMALLINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;staff_id TINYINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;rental_id INT DEFAULT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;amount DECIMAL(5,2) NOT NULL&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;First, we have to choose the database on which we will create the table. The command that we need to run is &lt;span style="color: #2300dc;"&gt;&lt;b&gt;USE SAKILA&lt;/b&gt;&lt;/span&gt;. Please read Lesson 3 in case you have not created the sakila database yet.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-C1fFZNyuUPU/TrKxe1uH_aI/AAAAAAAAD4k/Yh9nHCY445s/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-C1fFZNyuUPU/TrKxe1uH_aI/AAAAAAAAD4k/Yh9nHCY445s/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;The second step is to run the code and we will have the table created in the sakila database.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-aEWgMjyDgxU/TrKxmgGhooI/AAAAAAAAD4s/skdtKGEpeaA/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://4.bp.blogspot.com/-aEWgMjyDgxU/TrKxmgGhooI/AAAAAAAAD4s/skdtKGEpeaA/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Let's explain with more details what each of these commands mean.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: red;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;&lt;b&gt;CREATE TABLE payment&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: red;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;payment_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT primary key,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;customer_id SMALLINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;staff_id TINYINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;rental_id INT DEFAULT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;amount DECIMAL(5,2) NOT NULL&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: red;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;The CREATE TABLE command always comes first and is followed by the name of the table. Inside the parentheses we will define each of the column along with their data types and any extra constraints. Please notice that the second parentheses is followed by a semicolon symbol which indicates the end of the statement.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;CREATE TABLE payment &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt; &lt;span style="color: red;"&gt; &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;payment_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT primary key,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;customer_id SMALLINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;staff_id TINYINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;rental_id INT DEFAULT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;amount DECIMAL(5,2) NOT NULL&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;This is the definition for the first column called “payment_id”. The type of data that can accept is of type “smallint” (see the table at the beginning of this lesson).  When the “unsigned” option follows a numeric data type, no negative values are permitted in the column. The option “not null” means that the column can not be left blank. In any database table, one field should be the key field – a field that can contain no duplicates. In this table, payment_id is the key field because it contains the “primary key” property. The “auto_increment” property automatically assigns a value to the field, increasing the previous number by one for each new row addition. This ensures that the NOT NULL (can't be blank) and the PRIMARY KEY (can't have duplicates) properties of the field are both satisfied. Please note that there can be only one AUTO_INCREMENT column per table, it must be indexed, and it cannot have a DEFAULT value. An AUTO_INCREMENT column works properly only if it contains positive values. Inserting a negative number is regarded as inserting a very large positive number. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;CREATE TABLE payment &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;payment_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT primary key,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;customer_id SMALLINT UNSIGNED NOT NULL,&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;staff_id TINYINT UNSIGNED NOT NULL,&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;rental_id INT DEFAULT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;amount DECIMAL(5,2) NOT NULL&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;The customer_id column accepts data of smallint, not negative and can not be blank whereas the column staff_id accepts data of type tinyint, not negative and can not be blank as well.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;CREATE TABLE payment &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;payment_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT primary key,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;customer_id SMALLINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;staff_id TINYINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;rental_id INT DEFAULT NULL,&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;amount DECIMAL(5,2) NOT NULL&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;The keyword “default” informs the user that in case that he/she inserts data to all columns besides the rental_id, then the null value (blank) will be used as a default value for the column.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;CREATE TABLE payment &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;payment_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT primary key,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;customer_id SMALLINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;staff_id TINYINT UNSIGNED NOT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;rental_id INT DEFAULT NULL,&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;  &lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;amount DECIMAL(5,2) NOT NULL&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;The numeric data type DECIMAL(5,2) means that the column amount displays data with up to 5 characters which 2 of them will be used for decimal places, such as 456.78.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;You can check whether the tables in your database have been set up correctly using the following command:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;SHOW TABLES;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-8TW0vePm0Ok/TrKxzo7p2GI/AAAAAAAAD40/YL5-0SOFd-o/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-8TW0vePm0Ok/TrKxzo7p2GI/AAAAAAAAD40/YL5-0SOFd-o/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &lt;br /&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;You can get more information about the structure of each table by using the &lt;span style="color: #2300dc;"&gt;&lt;b&gt;DESCRIBE&lt;/b&gt;&lt;/span&gt; command.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-OPGYG_ZRnFc/TrKx6JzC-sI/AAAAAAAAD48/5pyquKIgHDw/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-OPGYG_ZRnFc/TrKx6JzC-sI/AAAAAAAAD48/5pyquKIgHDw/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;We can delete a single table with the &lt;span style="color: #2300dc;"&gt;&lt;b&gt;DROP TABLE&lt;/b&gt;&lt;/span&gt; statement followed by the table name.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-VgaR-07k65Q/TrKyCg1xmBI/AAAAAAAAD5E/Ko6bddE6kBo/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-VgaR-07k65Q/TrKyCg1xmBI/AAAAAAAAD5E/Ko6bddE6kBo/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;We are ready now to follow the same steps but this time through the graphical interface of TOAD. Our task is to create the exact same table with all the options. The first thing we need to do is to connect to the sakila database. Under the Object Explorer you should not see any tables because we have dropped them all. Move to the table named Tables and click on the “create a table” icon to start the creation of our payment table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0jMjd2PoL0s/TrKyK5Su_wI/AAAAAAAAD5M/8pcPXGMjX_w/s1600/pic8a.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-0jMjd2PoL0s/TrKyK5Su_wI/AAAAAAAAD5M/8pcPXGMjX_w/s1600/pic8a.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-fhs4TPcgMNc/TrKyP0oygmI/AAAAAAAAD5U/sp3DB_rlIGU/s1600/pic8b.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://2.bp.blogspot.com/-fhs4TPcgMNc/TrKyP0oygmI/AAAAAAAAD5U/sp3DB_rlIGU/s320/pic8b.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Then click on the columns option to create the individual columns (click the Add button) along with their options.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Bm7SyerpW7M/TrKyWoieuYI/AAAAAAAAD5c/Ups9xvE30nU/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://1.bp.blogspot.com/-Bm7SyerpW7M/TrKyWoieuYI/AAAAAAAAD5c/Ups9xvE30nU/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Click OK to complete the creation of the table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-rQUPrQPGIXA/TrKydqtm-xI/AAAAAAAAD5k/_iIaxW3OBy0/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="166" src="http://2.bp.blogspot.com/-rQUPrQPGIXA/TrKydqtm-xI/AAAAAAAAD5k/_iIaxW3OBy0/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;This table is not the actual table of the sakila database. So we have to drop it again. Right click on the payment table icon and choose drop from the pop up menu.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-RE6jGdtgKsk/TrKyk7MWemI/AAAAAAAAD5s/Ti5-k_TQRm4/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-RE6jGdtgKsk/TrKyk7MWemI/AAAAAAAAD5s/Ti5-k_TQRm4/s320/pic11.jpg" width="124" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Next time we will discuss the creation of tables having string and date data types. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Michail Kassapoglou&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.free-lessons.org/"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;http://www.free-lessons.org &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-8320125418031767578?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/8320125418031767578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=8320125418031767578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/8320125418031767578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/8320125418031767578'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/11/lesson-4-how-to-create-table.html' title='LESSON 4 – HOW TO CREATE A TABLE'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-cy7ydeEBEko/TrKxGEZi5JI/AAAAAAAAD4M/m3WBNDu8WYE/s72-c/mysql_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-1443432840215616661</id><published>2011-11-02T10:05:00.000-07:00</published><updated>2011-11-02T10:05:36.163-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>LESSON 3 – CREATING A NEW DATABASE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-pT3PgUXzofU/TrF2aMigNDI/AAAAAAAAD18/M58dIYpkt9w/s1600/mysql_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="117" src="http://4.bp.blogspot.com/-pT3PgUXzofU/TrF2aMigNDI/AAAAAAAAD18/M58dIYpkt9w/s200/mysql_logo.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;MySQL is one of the modern DBMS (Database Management Systems) databases. Its primary role besides storing data is to control and secure access to information throughout a secure rights management system. Each time a user tries to modify a data volume (by inserting, deleting, or updating data), the DBMS system is responsible to follow this process from the beginning all the way to the completion of the task. In other words, it plays the role of “mediator” simply because the DBMS does not allow the user to access the data directly.  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;The MySQL database can handle the management of multiple databases simultaneously. By default, a database by the name “mysql” already has been created in your computer, right after the completion of the initial installation. Just type the command &lt;span style="color: #2300dc;"&gt;&lt;b&gt;SHOW DATABASES&lt;/b&gt;&lt;/span&gt; to verify it. This database is used exclusively for recording system events and changes such as creation of a new database, deletion of a table, etc. In other words, any new item created by a user must be recorded so that MySQL knows its existence.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-OZ20PQcUdcs/TrF2imlcclI/AAAAAAAAD2E/ERj3TEnvQJM/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://4.bp.blogspot.com/-OZ20PQcUdcs/TrF2imlcclI/AAAAAAAAD2E/ERj3TEnvQJM/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;However, when we want to store our data we have to create our own database and not to use the one that the management system of MySQL is using. The creation of a MySQL database includes the execution of the clause &lt;span style="color: #2300dc;"&gt;&lt;b&gt;CREATE DATABASE&lt;/b&gt;&lt;/span&gt; followed by the desired database name. The new database will be the main storage area of our data and it will provide an organized and secure structure to safeguard data.  In the following example we create a database with the name “sakila”. This database  will be our main course of study in future lessons. It is given as an example database from MySQL (&lt;a href="http://dev.mysql.com/doc/index-other.html"&gt;http://dev.mysql.com/doc/index-other.html&lt;/a&gt;). Later on, we will populate the database with tables and data. But before we get to that point, we need to create our first database.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-OkqGF1F4DHs/TrF2qMWUYvI/AAAAAAAAD2M/zwfFZMp0HGw/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://3.bp.blogspot.com/-OkqGF1F4DHs/TrF2qMWUYvI/AAAAAAAAD2M/zwfFZMp0HGw/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;The command clause CREATE DATABASE by default creates a database with default character set and collation. As character set we define a collection of letters, numbers, and symbols that create the values inserted in a database, whereas a collation is the sorting and grouping of values of a particular character set. Let's explain these two concepts a little bit more using the following simple example. Let's suppose, we have an alphabet consisting of 4 letters “A”, “B”, “a” and “b”. If we assign a number to each of these letters we will have something like “A”=0, “B”=1, “a”=2, and “b”=3. Based on this example, we can say that “A” is a character, the number 0 is its code, and the entire group of all the 4 characters and their codes is defined as a character set. If we need to compare the letter “A” with the letter “B” for sorting purposes, then a comparison among their code numbers will take place. Because 0 is less than 1 then “A” is less than “B”. This act of sorting and comparison is what collation is all about. MySQL is capable of supporting quite few character sets. To see the character sets that your system supports simply execute the command &lt;span style="color: #2300dc;"&gt;&lt;b&gt;SHOW CHARACTER SET&lt;/b&gt;&lt;/span&gt;.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-CjvIGiH80vw/TrF2yxH6C6I/AAAAAAAAD2U/25QWcLS06-0/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-CjvIGiH80vw/TrF2yxH6C6I/AAAAAAAAD2U/25QWcLS06-0/s320/pic3.jpg" width="308" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Each character set is followed by at least one collation. To see the list of collations supported by your system just type the command &lt;span style="color: #2300dc;"&gt;&lt;b&gt;SHOW COLLATION&lt;/b&gt;&lt;/span&gt;.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-P3TlVqK65a8/TrF25hYv6gI/AAAAAAAAD2c/BHr_75Bramg/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-P3TlVqK65a8/TrF25hYv6gI/AAAAAAAAD2c/BHr_75Bramg/s320/pic4.jpg" width="308" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;The previous list showed us all the possible collations that our system can support. If we want to get more specific information such as what are the supported collations on a greek character set then we have to filter our request using the “like” command. Your command should be something similar to this: &lt;span style="color: #2300dc;"&gt;&lt;b&gt;show collation like '%greek%';&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-9RwfUV4-AhM/TrF3AcHcgyI/AAAAAAAAD2k/o0niI_6v18M/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-9RwfUV4-AhM/TrF3AcHcgyI/AAAAAAAAD2k/o0niI_6v18M/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;In the previous picture, we saw the name of the collation and a short description such as “general_ci”. The term “ci” stands for case insensitive, whereas the term “bin” on the “greek_bin” collation means binary. The question now is how we can create a database which from the start we define the desired character set and collation. By default, if none of these parameters are defined MySQL will use the character set and collation of the computer system where is installed. The following command gives you an idea of how to define a database along with the desired optional properties. Be careful to add the semicolon only to the last command line.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;create database sakila2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;default character set latin1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;default collate latin1_bin;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FowuiVhhbbk/TrF3HJrOwmI/AAAAAAAAD2s/UfVRwpb8-aE/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-FowuiVhhbbk/TrF3HJrOwmI/AAAAAAAAD2s/UfVRwpb8-aE/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;In case we did a mistake and we defined wrong values for the character set and the collation (or we just accepted the default values), we can always go back and alter the original settings by defining new values for those two parameters. To implement the changes, we use the clause &lt;span style="color: #2300dc;"&gt;&lt;b&gt;ALTER DATABASE&lt;/b&gt;&lt;/span&gt; followed by a new value for the optional parameter. The following example shows you how to change the default settings from latin1 to greek.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;alter database sakila2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;character set greek&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;collate greek_bin;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-pbnjoIs9gTw/TrF3QQUC5GI/AAAAAAAAD20/KwyYzaXp9Jo/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://3.bp.blogspot.com/-pbnjoIs9gTw/TrF3QQUC5GI/AAAAAAAAD20/KwyYzaXp9Jo/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;To delete a database, you must run the command &lt;span style="color: #2300dc;"&gt;&lt;b&gt;DROP DATABASE&lt;/b&gt;&lt;/span&gt; followed by the name of the database.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;drop database sakila2;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-B3rVecRbaso/TrF3XPaG6NI/AAAAAAAAD28/2dXLporiFpE/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/-B3rVecRbaso/TrF3XPaG6NI/AAAAAAAAD28/2dXLporiFpE/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;The task of creating databases, tables and various other items in MySQL can be done not only with the use of commands but also with the use of free utilities. One of the most popular and free programs available that serves this purpose is TOAD (&lt;a href="http://www.quest.com/toad-for-mysql/"&gt;http://www.quest.com/toad-for-mysql/&lt;/a&gt;).&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-3DymAVUXaY0/TrF3e-3tHzI/AAAAAAAAD3E/SrpeNdQrS6I/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://2.bp.blogspot.com/-3DymAVUXaY0/TrF3e-3tHzI/AAAAAAAAD3E/SrpeNdQrS6I/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;This free version of TOAD is only available for the Windows platform and only for MySQL. In order to connect to the system, we first click on the “create a new connection” button (looks like a power plug) on the Connection Manager pane. On the “create new connection” window, we need to provide the username and password for the root account of the MySQL as shown in the following picture. There is no need to define a name for a database.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-OtB92iEw4v4/TrF3mhTWnpI/AAAAAAAAD3M/cafLB_enkKc/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-OtB92iEw4v4/TrF3mhTWnpI/AAAAAAAAD3M/cafLB_enkKc/s320/pic10.jpg" width="207" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;When we have succeeded connecting to the MySQL system, then we can browse the available databases using the Object Explorer.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-65C7PCgXaPM/TrF3togNFRI/AAAAAAAAD3U/I7ZHKb-XiFU/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-65C7PCgXaPM/TrF3togNFRI/AAAAAAAAD3U/I7ZHKb-XiFU/s320/pic11.jpg" width="183" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;Let's use the graphical environment of TOAD to create for second time the sakila2 database that we have previously erased. All we have to do is to go to &lt;span style="color: #2300dc;"&gt;&lt;b&gt;File&lt;/b&gt;&lt;/span&gt; → &lt;span style="color: #2300dc;"&gt;&lt;b&gt;New&lt;/b&gt;&lt;/span&gt; → &lt;span style="color: #2300dc;"&gt;&lt;b&gt;Database&lt;/b&gt;&lt;/span&gt;, type the name of the new database and click OK. After the creation of the database, its name will appear on the Object Explorer.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-dQ4T2iu6QKw/TrF3105HruI/AAAAAAAAD3c/k74QVHwr1gc/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-dQ4T2iu6QKw/TrF3105HruI/AAAAAAAAD3c/k74QVHwr1gc/s320/pic12.jpg" width="229" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-xOTdkd4s1jc/TrF38pdeWXI/AAAAAAAAD3k/LiBKahBsxT4/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-xOTdkd4s1jc/TrF38pdeWXI/AAAAAAAAD3k/LiBKahBsxT4/s1600/pic13.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-2pvraW-I7hc/TrF4DYRTexI/AAAAAAAAD30/EwXPpCcSgfw/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-2pvraW-I7hc/TrF4DYRTexI/AAAAAAAAD30/EwXPpCcSgfw/s1600/pic14.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;There is also another way to create a database through the Object Explorer. Move to databases tab ,where you can see a list of all the databases, and click on the first database icon.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-0svr7yANrcY/TrF4LFgmbeI/AAAAAAAAD38/9G3qxUkcR8s/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-0svr7yANrcY/TrF4LFgmbeI/AAAAAAAAD38/9G3qxUkcR8s/s320/pic15.jpg" width="167" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;All that it takes to delete a database is to right click on the icon of the database and chose drop from the menu.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xZIo35LI41Y/TrF4Roul4HI/AAAAAAAAD4E/2waa98Sbd94/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-xZIo35LI41Y/TrF4Roul4HI/AAAAAAAAD4E/2waa98Sbd94/s320/pic16.jpg" width="168" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;Michail Kassapoglou &lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail-Kassapoglou@hotmail.com"&gt;&lt;span style="color: navy;"&gt;&lt;u&gt;Michail-Kassapoglou@hotmail.com&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://translate.googleusercontent.com/translate_c?act=url&amp;amp;hl=en&amp;amp;ie=UTF8&amp;amp;prev=_t&amp;amp;rurl=translate.google.com&amp;amp;sl=el&amp;amp;tl=en&amp;amp;u=http://kassapoglou.blogspot.com/&amp;amp;usg=ALkJrhjLihOBgIEnm4mV91lgXUEsRzE_nw"&gt;&lt;span style="color: navy;"&gt;&lt;u&gt;http://www.free-lessons.org&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-1443432840215616661?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/1443432840215616661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=1443432840215616661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/1443432840215616661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/1443432840215616661'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/11/lesson-3-creating-new-database.html' title='LESSON 3 – CREATING A NEW DATABASE'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-pT3PgUXzofU/TrF2aMigNDI/AAAAAAAAD18/M58dIYpkt9w/s72-c/mysql_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-5252105262981976017</id><published>2011-11-01T07:55:00.000-07:00</published><updated>2011-11-01T07:55:24.876-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>LESSON 2 – UBUNTU INSTALLATION OF MYSQL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-7tOXudYDQ6I/TrAGvlxEU_I/AAAAAAAADz8/KpxwsJIfbI0/s1600/mysql_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="117" src="http://4.bp.blogspot.com/-7tOXudYDQ6I/TrAGvlxEU_I/AAAAAAAADz8/KpxwsJIfbI0/s200/mysql_logo.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="JUSTIFY" lang="en-US"&gt;&lt;span style="font-weight: normal;"&gt;In this lesson, we will see the process of installing MySQL on Ubuntu environment. In general, using MySQL in a Linux environment is a very common combination mainly in a middle-size businesses. Both products are free, stable and with high performance rates. Before we start the installation, we need to download all the latest updates for our existing Ubuntu system. This is an easy process even for novice users. All we have to do is to go to &lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;System&lt;/b&gt;&lt;/span&gt;&lt;span style="font-weight: normal;"&gt; → &lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Administration&lt;/b&gt;&lt;/span&gt;&lt;span style="font-weight: normal;"&gt; → &lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Update Manager&lt;/b&gt;&lt;/span&gt;&lt;span style="font-weight: normal;"&gt;. You will need an Internet connection throughout the entire installation process.&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-n402nrGNMFw/TrAG3wvahgI/AAAAAAAAD0E/48F9zX5X5Os/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="270" src="http://1.bp.blogspot.com/-n402nrGNMFw/TrAG3wvahgI/AAAAAAAAD0E/48F9zX5X5Os/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;If there are any available updates, they will appear as a list inside the Update Manager window and the Install Updates button will be activated. When the process of downloading and installing the updates is completed, you might be prompted to restart your system. Go ahead and accept this and then you are ready to install MySQL. The following figure show an up-to-date Ubuntu system.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-L0NzGWYA7Ng/TrAG_k6R-KI/AAAAAAAAD0M/WQUmQ4UJzJc/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-L0NzGWYA7Ng/TrAG_k6R-KI/AAAAAAAAD0M/WQUmQ4UJzJc/s320/pic2.jpg" width="272" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &lt;br /&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;We open a terminal window and type the following command:&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;sudo apt-get install mysql-server&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;This will trigger the installation of MySQL which will be completed in a very short period of time. Ubuntu will requires from you to type the password for the sudo user of your system.&amp;nbsp;&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xI_5ZwLQKPw/TrAHGiU_7qI/AAAAAAAAD0U/j-xTvgc3B_k/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="270" src="http://1.bp.blogspot.com/-xI_5ZwLQKPw/TrAHGiU_7qI/AAAAAAAAD0U/j-xTvgc3B_k/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-4qKIFzvEQ-U/TrAHPkQVmhI/AAAAAAAAD0c/eA-z3WphRm4/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="102" src="http://3.bp.blogspot.com/-4qKIFzvEQ-U/TrAHPkQVmhI/AAAAAAAAD0c/eA-z3WphRm4/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;MySQL needs to reserve some hard drive space for the installation. We type the letter “y” to agree on this and we press Enter.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-F8VNMKkUTu8/TrAHW1zldII/AAAAAAAAD0k/0LE1RJzrP34/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://4.bp.blogspot.com/-F8VNMKkUTu8/TrAHW1zldII/AAAAAAAAD0k/0LE1RJzrP34/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;On this step, Ubuntu gets out to the Internet (to the Ubuntu Repository) to get the necessary files for the installation of MySQL.  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Zu_S0VtfSBo/TrAHdn96_2I/AAAAAAAAD0s/M7Stj6C1veA/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://2.bp.blogspot.com/-Zu_S0VtfSBo/TrAHdn96_2I/AAAAAAAAD0s/M7Stj6C1veA/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Now it is the time to set the password for the root account of MySQL. This is an account with administration privileges on the mysql service and environment. Do not confuse the root account of a user on Ubuntu with the root of MySQL.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-iDTlA265Wb0/TrAHkZgJvfI/AAAAAAAAD00/nItSGpoiWdM/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://1.bp.blogspot.com/-iDTlA265Wb0/TrAHkZgJvfI/AAAAAAAAD00/nItSGpoiWdM/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;We have to enter the password for the root account one more time for verification purposes.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-mDt4KR20vfc/TrAHs9a3YJI/AAAAAAAAD08/NtmmoeWkGZ4/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://2.bp.blogspot.com/-mDt4KR20vfc/TrAHs9a3YJI/AAAAAAAAD08/NtmmoeWkGZ4/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;nbsp; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;During this last step we just wait for the completion of the installation.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-OifsIwtHCzk/TrAH1fHIT7I/AAAAAAAAD1E/Rb3E2BERfWc/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://4.bp.blogspot.com/-OifsIwtHCzk/TrAH1fHIT7I/AAAAAAAAD1E/Rb3E2BERfWc/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY"&gt;All that is left now is to try to connect to the database and check its functionality. To connect to the database we have to type the following command:&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;mysql -u root -p&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY"&gt;The mysql command declares that we want to activate a session with the mysql service. The -u switch indicates that an account with connection and user privileges will follow right away (root). Finally, the -p switch indicates that a password will be required right after we press Enter. When we are done typing the correct password for the root account, the prompt changes to “mysql&amp;gt;”  informing us that the user has been successfully connected to the database.&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-t2kDNBkIx3Y/TrAH8u8xh4I/AAAAAAAAD1M/JQGyZPGuiVQ/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="158" src="http://4.bp.blogspot.com/-t2kDNBkIx3Y/TrAH8u8xh4I/AAAAAAAAD1M/JQGyZPGuiVQ/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;All we have to do now, is to try the command “show databases;” just to verify the functionality of the database. Do not forget the semicolon at the end of the statement.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-b_LI_-jvdEM/TrAIEPVxJNI/AAAAAAAAD1U/ZZAIG9pR8b0/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="198" src="http://4.bp.blogspot.com/-b_LI_-jvdEM/TrAIEPVxJNI/AAAAAAAAD1U/ZZAIG9pR8b0/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;To terminate the session we type the command exit and we press Enter.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-DZ8pbHrPf8Q/TrAIP3yR3RI/AAAAAAAAD1k/bnTnnwOFJuY/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="205" src="http://1.bp.blogspot.com/-DZ8pbHrPf8Q/TrAIP3yR3RI/AAAAAAAAD1k/bnTnnwOFJuY/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY"&gt;This completes the installation of the MySQL database on a Ubuntu platform.&lt;/div&gt;&lt;div align="JUSTIFY" lang="en-US" style="font-weight: normal;"&gt;Michail Kassapoglou&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-5252105262981976017?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/5252105262981976017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=5252105262981976017' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/5252105262981976017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/5252105262981976017'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/11/lesson-2-ubuntu-installation-of-mysql.html' title='LESSON 2 – UBUNTU INSTALLATION OF MYSQL'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-7tOXudYDQ6I/TrAGvlxEU_I/AAAAAAAADz8/KpxwsJIfbI0/s72-c/mysql_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-5036480314361822080</id><published>2011-10-31T10:13:00.000-07:00</published><updated>2011-10-31T10:14:27.647-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>LESSON 1 – WINDOWS INSTALLATION OF MYSQL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-8joOLZgEbAU/Tq7SINN6h6I/AAAAAAAADxE/e2QguMFtcow/s1600/mysql_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="116" src="http://1.bp.blogspot.com/-8joOLZgEbAU/Tq7SINN6h6I/AAAAAAAADxE/e2QguMFtcow/s200/mysql_logo.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;This new series of lessons explain the basic operational concepts of MySQL database – from installation all the way to basic administration. We will use the Windows platform as our main operating system. However, you are free to use any other Windows version you like, even a Linux based such as Ubuntu or Fedora. The only difference using MySQL on Windows instead of Linux operating systems is on the installation steps. After the completion of the installation, the commands and the administrative tasks are executed exactly the same way on both operating system platforms.  &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;The first thing we need to do is to get to the official web site location of MySQL and download the latest version of the Community server edition. This is the free version of MySQL database. On the download section ( &lt;a href="http://www.mysql.com/downloads/mysql/"&gt;http://www.mysql.com/downloads/mysql/&lt;/a&gt;) you can choose the operating system on which you will be installing MySQL. In our case, we will be downloading the 32 bit version for Windows as the following figure shows.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Z0vol8uaMCY/Tq7SwvvE3dI/AAAAAAAADxM/ObgRqmtKQMs/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="204" src="http://4.bp.blogspot.com/-Z0vol8uaMCY/Tq7SwvvE3dI/AAAAAAAADxM/ObgRqmtKQMs/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;The process of installing MySQL on Windows is relatively simple. Basically, you run the installation program and then you complete the steps of the MySQL Server Instance Configuration Wizard. To start the installation process you need to double click on the .msi file that you have just downloaded. As a final note, pay attention to the fact that you must install MySQL on Windows using an account that has administrative rights, or there will be a security problem with the installation.  &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;When the installation process begins the first screen of the Setup Wizard will be similar to the following figure (just click on the Next button to continue to the next step):&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-DqYzPS6asqE/Tq7S5D-a1AI/AAAAAAAADxU/gvYoJ2NLFDM/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://4.bp.blogspot.com/-DqYzPS6asqE/Tq7S5D-a1AI/AAAAAAAADxU/gvYoJ2NLFDM/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Accept the license agreement and click on the Next button to continue the installation.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-lPrrz6BS560/Tq7TBXntzwI/AAAAAAAADxc/cnsLFhCVjfY/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://3.bp.blogspot.com/-lPrrz6BS560/Tq7TBXntzwI/AAAAAAAADxc/cnsLFhCVjfY/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;In this step, you will have to pick one of the three installation options: Typical, Complete and Custom. The typical installation includes the MySQL server and the command-line utilities. The Complete installation will install all the components in the installation package including the embedded server library, documentation, etc. Finally, the custom option will give you a complete control over the packages you want to install. By choosing the Complete option (which is our choice), you will advance to a verification screen.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-RZigPCat5Qw/Tq7TIdk9mTI/AAAAAAAADxk/4M8M4GNuaGY/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://3.bp.blogspot.com/-RZigPCat5Qw/Tq7TIdk9mTI/AAAAAAAADxk/4M8M4GNuaGY/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;We are ready to start the installation. So, just click on the Install button to initiate the process.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-BECwc8ArNTA/Tq7TPZACPDI/AAAAAAAADxs/fXXjtSnW9Zg/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://3.bp.blogspot.com/-BECwc8ArNTA/Tq7TPZACPDI/AAAAAAAADxs/fXXjtSnW9Zg/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;The following window just informs us about the benefits that we gain if we decide to subscribe to the comprehensive solution of MySQL Enterprise edition. Just click on the Next button.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-TcPDmQhiPCU/Tq7TWn1dZ0I/AAAAAAAADx0/kr9OVnSgFLg/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://1.bp.blogspot.com/-TcPDmQhiPCU/Tq7TWn1dZ0I/AAAAAAAADx0/kr9OVnSgFLg/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;We also click Next on the informative window about the MySQL Enterprise Monitor Service.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-bUI-EoygV8M/Tq7TfwVpCFI/AAAAAAAADx8/B9qo5zvdY38/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://1.bp.blogspot.com/-bUI-EoygV8M/Tq7TfwVpCFI/AAAAAAAADx8/B9qo5zvdY38/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;We now find ourselves on the second stage of the installation where we have the option to launch the MySQL Configuration Wizard, create a configuration file, install the MySQL service and configure security settings. Make sure that the option “Launch the MySQL Instance Configuration Wizard” is checked and click on the Finish button.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-oEwgwZYYBhY/Tq7TnjQ0w1I/AAAAAAAADyE/QF40g1MoOhI/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://4.bp.blogspot.com/-oEwgwZYYBhY/Tq7TnjQ0w1I/AAAAAAAADyE/QF40g1MoOhI/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Click Next on the “Welcome to the MySQL Server Instance Configuration Wizard” window.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-4oWXeFUYGeA/Tq7T0cNSavI/AAAAAAAADyM/MrMiqZOqPSw/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://1.bp.blogspot.com/-4oWXeFUYGeA/Tq7T0cNSavI/AAAAAAAADyM/MrMiqZOqPSw/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;This window offers you two configuration options: Detailed Configuration and Standard Configuration. The Standard configuration is for new users who want to get started quickly and do not have enough experience with the MySQL database yet. The Detailed configuration will give you more control over the configuration. The purpose of this lesson is to familiarize you with all the installation options and for that reason we will follow the detailed configuration. Click on the Next button to go through with the rest of the configuration steps. In case you want to choose the Standard configuration, the MySQL Configuration Wizard will automatically configure all the options except for the Service and Security options.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-F7y2mk5p6OQ/Tq7UZ8m4EII/AAAAAAAADyU/gEOgycsOtfo/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-F7y2mk5p6OQ/Tq7UZ8m4EII/AAAAAAAADyU/gEOgycsOtfo/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Choosing the Detailed Configuration installation path, requires from you to choose one of the three available server types: Developer Machine, Server Machine, and Dedicated MySQL Server Machine. The Developer Machine is the best choice when we install MySQL on a desktop system limiting the consumption on the system resources. The Server Machine option is the proper choice when the MySQL is intended for testing or low use purposes. It is allowed to have other server application running on the same machine because the mysqld service is configured to use moderate amount of system resources. Finally, the Dedicated MySQL Server Machine option is intended for full production use. It is best not to have any other applications running on the server besides MySQL. For the purposes of this lesson, we will choose the Developer Machine option.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Xx8ymwAZnEc/Tq7U2T59oMI/AAAAAAAADyc/JHo9n5JID18/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-Xx8ymwAZnEc/Tq7U2T59oMI/AAAAAAAADyc/JHo9n5JID18/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;On this window, we need to choose one of the three available database usage types:  Multifunctional, Transactional, and Non-Transactional. The Multifunctional Database option enables both the InnoDB and MyISAM storage engines. Most people use MyISAM if they need speed and InnoDB for data integrity. Even though MyISAM is faster than InnoDB in the MySQL world, InnoDB is fast compared to any other database engine. With InnoDB you get transactions, speed and data integrity. Also, InnoDB tables can be of any size even on operating systems where file size is limited to 2GB. If you choose this option server resources are used equally between the two storage engines. The Transactional Database Only option directs the majority of the storage engine resources for use by InnoDB. Do not forget that InnoDB storage engine supports transactions whereas MyISAM does not. Finally, the Non-Transactional Database Only option disables the InnoDB storage engine leaving only the MyISAM storage engine to consume the system resources. For the purposes of this lesson we will choose the Multifunctional Database.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Y8Ilweo32kw/Tq7U-SyejOI/AAAAAAAADyk/nOpAeBSzAOo/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://3.bp.blogspot.com/-Y8Ilweo32kw/Tq7U-SyejOI/AAAAAAAADyk/nOpAeBSzAOo/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;If we want to move the InnoDB tablespace files to a different location, so you have available a larger file system partition or a RAID storage system, now is the time to do it. To change the default location for the InnoDB tablespace files, use the drop-down menu to select both a drive and directory path for the new location. For the purposes of this lesson, we will just accept the default settings.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-OznHNVzYiHg/Tq7V0OaNvMI/AAAAAAAADys/G6RKRzmVrZ8/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://3.bp.blogspot.com/-OznHNVzYiHg/Tq7V0OaNvMI/AAAAAAAADys/G6RKRzmVrZ8/s320/pic13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Here, we have the option to specify the maximum number of connections at any given time to mysqld service. We will pick the first option because during the learning process of this course we will not experience any heavy load traffic.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-q9VYS0twymg/Tq7V8DAl5tI/AAAAAAAADy0/Jga3KS2FLEw/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-q9VYS0twymg/Tq7V8DAl5tI/AAAAAAAADy0/Jga3KS2FLEw/s320/pic14.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;By default TCP/IP networking is enabled. If you want to disable TCP/IP networking and force all connections to be local, uncheck the box next to the Enable TCP/IP Networking option. In our lesson, we like to keep the networking option on. Notice that the default port for TCP/IP connections is 3306. As far as the strict mode goes, we accept the default setting (option is activated). Just click on the Next button to advance on the next step.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xpGWhBJCW9M/Tq7WEDX8CvI/AAAAAAAADy8/7PHr9WkevV4/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://1.bp.blogspot.com/-xpGWhBJCW9M/Tq7WEDX8CvI/AAAAAAAADy8/7PHr9WkevV4/s320/pic15.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;If you want your MySQL database to support many different languages in addition to English, then our best choice is the Best Support for Multilingualism. This option configures the utf8 character set as the default server character set. This will be our choice for this series of lessons.  Click Next to continue.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-cB90nUrAYsI/Tq7WN69QUGI/AAAAAAAADzE/C6GvaEZlWb0/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-cB90nUrAYsI/Tq7WN69QUGI/AAAAAAAADzE/C6GvaEZlWb0/s320/pic16.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Both of the options on this window provide an easy way to communicate with MySQL. The first option will start the mysqld service automatically on system startup whereas the second one will be used to include the directory where all of the client and server executables are kept in the Windows PATH variable. Make sure that both of these options are checked and click on the Next button.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-XwrOTnWO96U/Tq7WkesOQlI/AAAAAAAADzM/Xcns7kpUXHM/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-XwrOTnWO96U/Tq7WkesOQlI/AAAAAAAADzM/Xcns7kpUXHM/s320/pic17.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Even if you do not have to provide a root password in order to complete the installation, it is not the best practice as far as security goes. Set the root password by typing twice the same password word you think is the best to protect your system, on the two text boxes. Do not activate the remote access option. Click Next to continue.&amp;nbsp;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-aVuegGK8P1w/Tq7Wq68a8iI/AAAAAAAADzU/X8ZtVmEwSTQ/s1600/pic18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-aVuegGK8P1w/Tq7Wq68a8iI/AAAAAAAADzU/X8ZtVmEwSTQ/s320/pic18.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;You are just about ready to complete the installation. Just click on the Execute button to initiate the final step of the installation.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-vNRHE8OMBtc/Tq7WxHSuACI/AAAAAAAADzc/RWdx6xb7Gbk/s1600/pic19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://4.bp.blogspot.com/-vNRHE8OMBtc/Tq7WxHSuACI/AAAAAAAADzc/RWdx6xb7Gbk/s320/pic19.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;That's it! You are done. Click the Finish button to exit the MySQL Configuration Wizard.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-OIMAwz4_K3M/Tq7W4PeWAjI/AAAAAAAADzk/5rdPaU7vyGA/s1600/pic20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://1.bp.blogspot.com/-OIMAwz4_K3M/Tq7W4PeWAjI/AAAAAAAADzk/5rdPaU7vyGA/s320/pic20.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Let's test the functionality of our installation. Go to &lt;span style="color: #2300dc;"&gt;&lt;b&gt;Start&lt;/b&gt;&lt;/span&gt; → &lt;span style="color: #2300dc;"&gt;&lt;b&gt;All Programs &lt;/b&gt;&lt;/span&gt;→ &lt;span style="color: #2300dc;"&gt;&lt;b&gt;MySQL Command&lt;/b&gt;&lt;/span&gt;-&lt;span style="color: #2300dc;"&gt;&lt;b&gt;line&lt;/b&gt;&lt;/span&gt; Shell.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ZhPT9aT9OEI/Tq7W-RZ0KwI/AAAAAAAADzs/eAmrMOd867Q/s1600/pic21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-ZhPT9aT9OEI/Tq7W-RZ0KwI/AAAAAAAADzs/eAmrMOd867Q/s320/pic21.jpg" width="255" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Enter the password for the root account. On the Mysql prompt type the command “SHOW DATABASES;”. This command will show you a list of all the active databases. Do not forget to type the semicolon at the end of the statement. When you are done, type exit and then press enter to exit the mysql window.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-TAJTIJcy-sY/Tq7XEMklSXI/AAAAAAAADz0/mSzzDzA2myc/s1600/pic22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://4.bp.blogspot.com/-TAJTIJcy-sY/Tq7XEMklSXI/AAAAAAAADz0/mSzzDzA2myc/s320/pic22.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Congratulations! You have successfully completed the installation of MySQL database on a Windows platform.&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;Michail Kassapoglou&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-5036480314361822080?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/5036480314361822080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=5036480314361822080' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/5036480314361822080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/5036480314361822080'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-1-windows-installation-of-mysql.html' title='LESSON 1 – WINDOWS INSTALLATION OF MYSQL'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-8joOLZgEbAU/Tq7SINN6h6I/AAAAAAAADxE/e2QguMFtcow/s72-c/mysql_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-1527515995225731535</id><published>2011-10-30T11:44:00.000-07:00</published><updated>2011-10-30T11:44:24.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 7 – FLOATING POINT TYPES</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-_Df79jSon90/Tq2aeOXB45I/AAAAAAAADwk/RiUKr8-DjC4/s1600/java_image.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-_Df79jSon90/Tq2aeOXB45I/AAAAAAAADwk/RiUKr8-DjC4/s200/java_image.jpeg" width="109" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;In today's lesson, we will remain on the primitive data types section from the oracle online tutorial (&lt;a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html"&gt;http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html&lt;/a&gt; ).&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-pOBIus60A10/Tq2an1dXv5I/AAAAAAAADws/OljFiLj9Yfc/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="226" src="http://3.bp.blogspot.com/-pOBIus60A10/Tq2an1dXv5I/AAAAAAAADws/OljFiLj9Yfc/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Two of the eight primitive data types are used for storing floating-point numbers: float and double. The only difference between them is their size, with a float being 32 bits and a double being twice that size.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-IrHqN2DXjGs/Tq2aurITzYI/AAAAAAAADw0/yyHpz4dygqE/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="39" src="http://4.bp.blogspot.com/-IrHqN2DXjGs/Tq2aurITzYI/AAAAAAAADw0/yyHpz4dygqE/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;You declare floating-point variables in a similar way to what you've already used for integers. You can declare and initialize a variable of type double with the following statement:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;double temperature= 36.80;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Floating-point literals are treated as a double value by default. A floating-point literal is any literal that contains a decimal point. If you want a floating-point literal to be treated as a float, you need to append an F to the literal. The name double refers to the fact that these numbers have twice the precision of the float type.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The following FloatTest program demonstrates using the float and double data types.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-rP12wkU0-Mc/Tq2a2WbtwtI/AAAAAAAADw8/qrznCsd52dA/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-rP12wkU0-Mc/Tq2a2WbtwtI/AAAAAAAADw8/qrznCsd52dA/s320/pic3.jpg" width="302" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;Line 7&lt;/span&gt; – the 3.14159 floating-point literal is treated as a double&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;Line 8&lt;/span&gt; – the 2.7F floating-point literal is treated as a float because it has an F appended to it.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;Line 13&lt;/span&gt; – Because both 15 and 4 are int values, their quotient is also an int, in this case 3. The remainder is truncated. The value of f is assigned to the int 3, so f becomes 3.0. To fix the problem use casting such as f = (float) n / d.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;Line 17&lt;/span&gt; – a double is being multiplied by two ints. Before multiplication occurs, the int values are promoted to doubles and the result is therefore a double.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;There are also three special floating-point values to denote overflows and errors:&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Positive infinity&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Negative infinity&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;NaN (not a number)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;For example, the result of dividing a positive number by 0 is positive infinity.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&amp;nbsp;&amp;nbsp;There are some new features that were added in Java SE 7 according to oracle (&lt;a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html"&gt;http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html&lt;/a&gt; ). Any &lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;number of underscore characters (&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;) can appear anywhere between digits in a numerical literal. This feature enables you, for example, to separate groups of digits in numeric literals, which can improve the readability of your code.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;For instance, if your code contains numbers with many digits, you can use an underscore character to separate digits in groups of three, similar to how you would use a punctuation mark like a comma, or a space, as a separator.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;The following example shows other ways you can use the underscore in numeric literals:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="western" style="margin-left: 0.31in; margin-right: 0.31in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;long creditCardNumber = 1234_5678_9012_3456L;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;long socialSecurityNumber = 999_99_9999L;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;float pi =  3.14_15F;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;long hexBytes = 0xFF_EC_DE_5E;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;long hexWords = 0xCAFE_BABE;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;long maxLong = 0x7fff_ffff_ffff_ffffL;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;byte nybbles = 0b0010_0101;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;long bytes = 0b11010010_01101001_10010100_10010010;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;You can place underscores only between digits; you cannot place underscores in the following places:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;  &lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;At  the beginning or end of a number&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;  &lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Adjacent  to a decimal point in a floating point literal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Prior  to an &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;or  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;L  s&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;uffix&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;  &lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;In  positions where a string of digits is expected&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;The following examples demonstrate valid and invalid underscore placements (which are highlighted) in numeric literals:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="western" style="margin-left: 0.31in; margin-right: 0.31in;"&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;float pi1 = 3_.1415F;      // Invalid; cannot put underscores adjacent to a decimal point&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;float pi2 = 3._1415F;      // Invalid; cannot put underscores adjacent to a decimal point&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;long socialSecurityNumber1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;= 999_99_9999_L;         // Invalid; cannot put underscores prior to an L suffix&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;int x1 = _52;              // This is an identifier, not a numeric literal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;int x2 = 5_2;              // OK (decimal literal)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;int x3 = 52_;              // Invalid; cannot put underscores at the end of a literal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;int x4 = 5_______2;        // OK (decimal literal)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;int x5 = 0_x52;            // Invalid; cannot put underscores in the 0x radix prefix&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;int x6 = 0x_52;            // Invalid; cannot put underscores at the beginning of a number&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;int x7 = 0x5_2;            // OK (hexadecimal literal)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;int x8 = 0x52_;            // Invalid; cannot put underscores at the end of a number&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt; &lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Michail Kassapoglou&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-1527515995225731535?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/1527515995225731535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=1527515995225731535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/1527515995225731535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/1527515995225731535'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-7-floating-point-types.html' title='LESSON 7 – FLOATING POINT TYPES'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-_Df79jSon90/Tq2aeOXB45I/AAAAAAAADwk/RiUKr8-DjC4/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-9082471162628861586</id><published>2011-10-30T06:08:00.000-07:00</published><updated>2011-10-30T06:08:45.069-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 6 – INTEGER TYPES</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-mmso_BYlHuw/Tq1Lk-4-UGI/AAAAAAAADwE/Hi5-wMOivWs/s1600/java_image.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-mmso_BYlHuw/Tq1Lk-4-UGI/AAAAAAAADwE/Hi5-wMOivWs/s200/java_image.jpeg" width="109" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Java has eight data types that are built into the language. These eight data types, often referred to as the primitive types, are the building blocks from which classes are written. We will be based our lesson on the Oracle's online tutorial on primitive types (&lt;a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html"&gt;http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html&lt;/a&gt; ). In today's lesson we will be discussing the integer types only.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9x6g1YFe1yE/Tq1Ltxe0MGI/AAAAAAAADwM/UrZQX431_Ak/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://1.bp.blogspot.com/-9x6g1YFe1yE/Tq1Ltxe0MGI/AAAAAAAADwM/UrZQX431_Ak/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Let's take a quick look on the integer data types, the number of bits they consume in storage, and then range of values that can stored in each type.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rlJ5cWxXuYk/Tq1L00305NI/AAAAAAAADwU/1fRar9REuqI/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="64" src="http://3.bp.blogspot.com/-rlJ5cWxXuYk/Tq1L00305NI/AAAAAAAADwU/1fRar9REuqI/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Under Java, the ranges of the integer types do not depend on the machine on which you will be running the Java code. This alleviates a major pain for the programmer who wants to move software from one platform to another, or even between operating systems on the same platform.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;There are four types of variables that you can use to store integer data. All of these are signed. That is, they can store both negative and positive values. The four integer types differ in the range of values they can store, so the choice of type for a variable depends on the range of data values you are likely to need.  &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Let's go back and talk about variables now and complete their definition. Variables are used to store data. In Java, a variable needs to declared. Declaring a variable involves two steps: giving the variable name and stating what type of data is to be stored in the variable. For example, the following statements are variable declarations:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;int x;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;long salary;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The term variable is used because the data stored in a variable can vary. In other words, you can change the value of a variable. In Java, you use the assignment operator = to assign a variable to a particular value. For example, the following statements declare an integer x and assign it the value 12.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;int x;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;x=12;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;You can also declare and assign a variable at the same time, such as:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;int x = 12;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Any integer literal that you specify as a sequence of decimal digits is of type int by default. If you want to define an integer literal of type long, you need to append an L to the value such as 124587L. You can also use a lowercase letter l, but do not because it is too easily confused with the digit 1. Be careful, an integer literal without a suffix L is considered to be an int. Therefore, the following will generate a compile error because 9988776655 is larger than the capacity for an int:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;long x =  9988776655;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;To correct the problem, and an L at the end of the number like this:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;long x =  9988776655L;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Note that if you try to use a variable in a calculation that has not had a value assigned to it, your program will not compile. So get into the habit of always initializing your variables when you declare them. You can declare a variable just about anywhere in your program, but you must declare each variable before you it in a calculation. As a last note, you must not assign a value that exceeds the capacity of a variable. For instance, the highest number of a byte is 127. Therefore, the following code generates a compiler error because 500 is too big for a byte&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;byte x = 500;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Let's see now a complete program called IntegerTest that demonstrates using the integral types.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eopNFJ1pau8/Tq1MF6Wi3uI/AAAAAAAADwc/ovt49cXJVRo/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-eopNFJ1pau8/Tq1MF6Wi3uI/AAAAAAAADwc/ovt49cXJVRo/s320/pic3.jpg" width="313" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 8&lt;/b&gt;&lt;/span&gt; – We assign the number 250 to the integer variable x.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 9&lt;/b&gt;&lt;/span&gt; – We display the current value that variable x holds in memory.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 11&lt;/b&gt;&lt;/span&gt;- We can declare more than one variable at a time as long as the variables are the same data types.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 14&lt;/b&gt;&lt;/span&gt; – Java performs integer arithmetic at the int level, so b+c returns an int. This means that the sum must be cast to a short before assigning it to the value to a because a is a short. The cast operator consists of placing the data type that the value is being cast to in parentheses. In this example, (b+c) was being cast to an int, so int was placed in parentheses right before (b+c).&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 17 &lt;/b&gt;&lt;/span&gt;– The variable y is declared as a long and assigned to an integer literal that is larger than 32 bits. The literal is appended with an L to denote it as a long. This line of code would not compile if the L were omitted.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 21&lt;/b&gt;&lt;/span&gt; – y is a long and x is an int. These two variables are different data types, but no cast operator is used. This is because an int is assumed of fitting into a long without any loss of data. When y is assigned to x, the value of x is simply promoted to a long and stored in y.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;b&gt;Line 23&lt;/b&gt;&lt;/span&gt; – Assigning the byte s to the short c requires a cast operator. The short c is 16 bits and s is only 8, so there is a possible loss of data. Without the cast operator, the assignment will not compile.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;For general-purpose programming, the decimal system is likely to be the only number system you'll ever use. However, if you need to use another number system, the following example show the correct syntax. The prefix 0x indicates hexadecimal and 0b indicates binary:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;int decVal = 26; //The number 26, in decimal&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;int hexVal = 0x1a; //The number 26, in hexadecimal&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;int binVal = 0b11010; //The number 26, in binary&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Integral literals can be expressed by these number systems:&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Decimal: Base 10, whose  digits consists of the numbers 0 through 9; this is the number  system you use every day&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Hexadecimal: Base 16,  whose digits consist of the numbers 0 through 9 and the letters A  through F&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Binary: Base 2, whose  digits consists of the numbers 0 and 1. You can create binary  literals in Java SE 7 and later&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Michail Kassapoglou&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-9082471162628861586?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/9082471162628861586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=9082471162628861586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/9082471162628861586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/9082471162628861586'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-6-integer-types.html' title='LESSON 6 – INTEGER TYPES'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-mmso_BYlHuw/Tq1Lk-4-UGI/AAAAAAAADwE/Hi5-wMOivWs/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-2382275849260680360</id><published>2011-10-29T11:04:00.000-07:00</published><updated>2011-10-29T11:04:06.197-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 5 – NAMING YOUR VARIABLES</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-D-GMnN2R1qw/Tqw_ive-02I/AAAAAAAADvs/1MZNzO4agYE/s1600/java_image.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/-D-GMnN2R1qw/Tqw_ive-02I/AAAAAAAADvs/1MZNzO4agYE/s200/java_image.jpeg" width="109" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;From today's lesson, we will use the online tutorial from Oracle (&lt;a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/variables.html"&gt;http://download.oracle.com/javase/tutorial/java/nutsandbolts/variables.html&lt;/a&gt; ) as our guide of our theory. We will expand on this theory, we will explain the source code line by line, and we will add even more examples for your understanding.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-FkJU4j7jpDA/Tqw_s4-y7MI/AAAAAAAADv0/VZ4cZBMlx4M/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="129" src="http://3.bp.blogspot.com/-FkJU4j7jpDA/Tqw_s4-y7MI/AAAAAAAADv0/VZ4cZBMlx4M/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;A variable reserves a portion of memory in your system to store information about your java program. In order for us to be able to handle the variable (and as a result its corresponding value inside system's memory), we have to name each variable we are using. By naming the variable we are able to assign values to them and do calculations without worrying about memory management.  &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Each named piece of memory that you define in your program (in other words for every variable you define) is able to store data only of one particular type. If you define a variable to store integers, for example, then you can not assign any other kind of number to this variable besides integers. Since the type of data that each variable can store is fixed, the compiler can verify that each variable you define in your program is not used in a manner or a context that is inappropriate to its type. The values that we assign to each variable are called literals. So, before you can use a variable you must specify its name and type in a declaration statement.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The name that you choose for a variable is called an identifier. Identifiers are those words in your Java code that you choose. For example, in the previous lesson you wrote a program inside a class named SimpleDemo. The name SimpleDemo is an identifier.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&amp;nbsp;&amp;nbsp;In Java, you will need to identify many elements in your code, including class names, methods, fields, variables, and package names. The names you choose are called identifiers and must adhere to the following rules:&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;An identifier cannot be  a keyword or true, false, or null&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;An identifier can  consist of letters, digits 0-9, the underscore, or the dollar sign&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;An identifier must  start with a letter, an underscore, or a dollar sign&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;I want to mention one more time that Java is a case-sensitive programing language which means that FreeLessons and freelessons are not the same. Also, you can not include blanks in the middle of a name. If you want to give emphasis on two separate words then use the underscore symbol between them such as Free_Lessons. The documentation of Oracle (&lt;a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/variables.html"&gt;http://download.oracle.com/javase/tutorial/java/nutsandbolts/variables.html&lt;/a&gt; ) also mentions that a variable's name can have unlimited-length sequence of Unicode letters and digits.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;I have mentioned earlier that a variable can not have use the same name as the name of a keyword. The keywords of a programming language are the words that define the language, have special meaning to the compiler, and cannot be used as identifiers. The following table displays all the Java keywords.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-npNWYYTv64U/Tqw_6pRoKCI/AAAAAAAADv8/uQVB8PE33Qc/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="125" src="http://3.bp.blogspot.com/-npNWYYTv64U/Tqw_6pRoKCI/AAAAAAAADv8/uQVB8PE33Qc/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The keywords const and goto cannot be used in Java. They were added to the list of keywords so they would generate compiler errors for developers who were converting C and C++ code over to Java. There are three more reserved words in Java: true, false, and null. Technically, they are literal values and not keywords. However, they cannot be used as identifiers, and they have a specific meaning to the Java compiler.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;As a last advice, just to follow oracle's suggestions, if the name of a variable consists of only one word, spell that word in all lowercase letters. If it consists of more than one word, capitalize the first letter of each subsequent word.  &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Next time we will discuss the eight primitive types that give us the ability to declare a variable to the type of literal that will be accepted as a correct value.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Michail Kassapoglou&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-2382275849260680360?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/2382275849260680360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=2382275849260680360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2382275849260680360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2382275849260680360'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-5-naming-your-variables.html' title='LESSON 5 – NAMING YOUR VARIABLES'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-D-GMnN2R1qw/Tqw_ive-02I/AAAAAAAADvs/1MZNzO4agYE/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-311621518015094263</id><published>2011-10-29T06:55:00.000-07:00</published><updated>2011-10-29T06:55:27.088-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 4 – LANGUAGE FUNDAMENTALS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-9axQMbE0bv4/TqwFa4OHlaI/AAAAAAAADvc/27aRY1VaKN0/s1600/java_image.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://2.bp.blogspot.com/-9axQMbE0bv4/TqwFa4OHlaI/AAAAAAAADvc/27aRY1VaKN0/s200/java_image.jpeg" width="109" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;On this lesson we will take a closer look on the simple program that we wrote on the previous lesson. If you do not have the SimpleDemo project available, please follow the procedure on Lesson 3 to create it again. The code of the program looks like this:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;public class SimpleDemo {&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;    public static void main(String [ ]args){&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;        System.out.print("Free Lessons Rocks!!");&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Let's not forget the most important rule about Java – that is a case-sensitive language. If you make any mistakes in capitalization the program will not run. Now let's look at this source code line by line.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: red;"&gt;public class SimpleDemo {&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;The keyword &lt;b&gt;public&lt;/b&gt; is called an access modifier. An access modifier controls the level of access other elements of a program have to this code.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;They keyword &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;class&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; defines the beginning of a class followed by the name class. Everything in a Java program must be inside a class. That is the reason that Java is build from the beginning to be a pure Object-Oriented programing language. The name for the class can begin with a letter, and after that, it can have any combination of letters and digits. Finally, you can not use a Java reserved word for a class name. We will talk more about reserved words when we discuss variables. You do not have to worry about making the file name the same as the name of the public class because NetBeans is taking care of that. The opening brace ( {  ) marks the beginning of the class. In Java, the code for any class or method must be started by an opening brace { and ended by a closing brace }. &lt;/span&gt; &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: red;"&gt; public static void main(String [ ]args){&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;Every Java application contains a class that defines a method called main( ). This method is executed first in an application. The simplest possible Java application program consists of one class containing just the method main( ). The main( ) method has a particular fixed form and you will fully understand the meaning of the entire source when we discuss about objects and arrays. For now, it is enough to know that the word &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; indicates that the main( ) method is globally accessible from everywhere within the project, the word &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;static&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; ensures that the main( ) method is accessible even though no objects of the class exist and the word &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; indicates that the method does not return a value back to the program. Inside the parenthesis the &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;String []args&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; indicates an array that accepts String values mostly when we run a Java Program from the command line. The main point here to keep in your mind is that the main( ) method will execute all the source code that we write inside its braces.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: red;"&gt;System.out.print("Free Lessons Rocks!!");&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="color: black;"&gt;&lt;b&gt;System&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; is a class that contains objects that encapsulate the standard I/O devices for your system. In other words, the keyboard for command-line input and the command-line output to the display. It is contained in the package java.lang, so it is always accessible just by using the simple class name System. &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="color: black;"&gt;The static object &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;out&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; represents the standard output stream – the command-line on your display screen – and is a data member of the class System. The out is static because it exists even though there are no objects of type System. &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="color: black;"&gt;Finally, the object out calls the &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;println( )&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; method that outputs the text string that appears between the parentheses to your display. This is the usual way how a method can be called by an object – by using the object name followed by the method name with a period separating them. But this will be more clear when we discuss about classes and objects.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;One last thing worth mentioning is the ability to add comments to your program. Comments in Java do not show up in the executable program. The most common method is a //. You can use this for a comment that will run from the // to the end of the line. Or you can you the /* and */ comment delimiters that let you block off a longer comment.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-PYpAhmUtVLc/TqwFthA0aKI/AAAAAAAADvk/0l9FA7rAj4Y/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="218" src="http://1.bp.blogspot.com/-PYpAhmUtVLc/TqwFthA0aKI/AAAAAAAADvk/0l9FA7rAj4Y/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;Michail Kassapoglou&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;&lt;span style="color: #2300dc;"&gt;Michail.Kassapoglou@free-lessons.org&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;&lt;span style="color: #2300dc;"&gt;http://www.free-lessons.org&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-311621518015094263?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/311621518015094263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=311621518015094263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/311621518015094263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/311621518015094263'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-4-language-fundamentals.html' title='LESSON 4 – LANGUAGE FUNDAMENTALS'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-9axQMbE0bv4/TqwFa4OHlaI/AAAAAAAADvc/27aRY1VaKN0/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-6022383861021891206</id><published>2011-10-28T06:54:00.000-07:00</published><updated>2011-10-28T06:54:42.148-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 3 – OUR FIRST JAVA PROGRAM USING NETBEANS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-345qIdIdW4o/TqqyOEpi6UI/AAAAAAAADtM/houwHIaR4Jk/s1600/java_image.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/-345qIdIdW4o/TqqyOEpi6UI/AAAAAAAADtM/houwHIaR4Jk/s200/java_image.jpeg" width="109" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;In today's lesson, we will create a simple but complete java program using the graphical environment of NetBeans. In order to start the NetBeans IDE, double click on the blue cube icon on your desktop. The picture below shows how the NetBeans environment looks like right after the end of its installation and without any applications created yet.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-KcyK6XypClM/TqqyY1skOsI/AAAAAAAADtU/cC9o054C2XM/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="189" src="http://2.bp.blogspot.com/-KcyK6XypClM/TqqyY1skOsI/AAAAAAAADtU/cC9o054C2XM/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The NetBeans environment requires every java program, even the most simple one, to start with the creation of a project which includes all the files associated with the functionality of the application. After a successful build and execution of the application, a file with the name of the application and a .jar extension will be created. The jar file is the executable final product. There are no .exe extensions when we create Java applications. For the practical part of our lesson, we will create a new project with the name SimpleDemo by clicking on the File menu and then on the New Project option. On the new window that appears select Java under the Categories and Java Application under the Projects and then click on the next button.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-4IfCl9IJn2U/TqqyhUYSLTI/AAAAAAAADtc/O_6DSh0ZkoY/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-4IfCl9IJn2U/TqqyhUYSLTI/AAAAAAAADtc/O_6DSh0ZkoY/s1600/pic2.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YK8hA6gn6ZM/TqqymPJX_SI/AAAAAAAADtk/bNMOisfwpHQ/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="220" src="http://2.bp.blogspot.com/-YK8hA6gn6ZM/TqqymPJX_SI/AAAAAAAADtk/bNMOisfwpHQ/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Because this is our first application ever, NetBeans takes few seconds to activate the necessary libraries to support the project. This is one time process and you will never see it happening again. On the next window, we need to give a name to the project (SimpleDemo) and accept or change the directory where the project files will be located. Make sure you clear the options “Create Main Class” and “Set as Main Project”. These are excellent features to use when you know enough about Java. At this point we will be creating everything from scratch without getting any help from templates provided by the NetBeans. In that way, we will obtain a better understanding of the theory behind of every single line of code we write. When you have completed these steps, click on the Finish button to complete the creation of the project.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-uC7SLyiEEGQ/Tqqyt18LDtI/AAAAAAAADts/sCQbaZFbiro/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="220" src="http://1.bp.blogspot.com/-uC7SLyiEEGQ/Tqqyt18LDtI/AAAAAAAADts/sCQbaZFbiro/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-7u4uHL1bW40/TqqyySn4WVI/AAAAAAAADt0/EeQ69irhZ90/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-7u4uHL1bW40/TqqyySn4WVI/AAAAAAAADt0/EeQ69irhZ90/s320/pic5.jpg" width="302" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;After the creation of our project, the next step is to create a package which will contain our .java files. Packages classify and group . java files together for easy troubleshooting and access permissions.  Something similar to creating folders on your Windows desktop to organize your files and assigning access permissions to users. Practically, the creation of a package corresponds to a creation of a folder under the NetBeans directory. To create a package, right click on the Source Packages folder, then choose new and then Java Package.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-vFoBewk6I3I/Tqqy6EI49XI/AAAAAAAADt8/jVjPzyFrvTg/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="264" src="http://1.bp.blogspot.com/-vFoBewk6I3I/Tqqy6EI49XI/AAAAAAAADt8/jVjPzyFrvTg/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;All we have to do now is to name the package. The name of the package has nothing to do with the ability of the project to run, so it can be anything you like. It can be different from the project name as well. However, it is thoughtful to give a name to the package that describes the kind of classes that are included in it. Let's name our package SimpleDemo.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-knVa1_ynyao/TqqzCHC5R3I/AAAAAAAADuE/7LtERp1z7zc/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="220" src="http://1.bp.blogspot.com/-knVa1_ynyao/TqqzCHC5R3I/AAAAAAAADuE/7LtERp1z7zc/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-MGJ6q-_KmGk/TqqzG-siD7I/AAAAAAAADuM/3OO4RjtcJfM/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-MGJ6q-_KmGk/TqqzG-siD7I/AAAAAAAADuM/3OO4RjtcJfM/s320/pic8.jpg" width="304" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;You should repeat this process every time you build a new application in java. The last step we have to complete is to create an empty class file which will contain our code. We right click on the SimpleDemo package, we choose New and then Java Class. On the New Java Class window, name the class SimpleDemo and click the button Finish.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9-aBqTfBZkc/TqqzOqfGxnI/AAAAAAAADuU/eB9UJy-ptiM/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://1.bp.blogspot.com/-9-aBqTfBZkc/TqqzOqfGxnI/AAAAAAAADuU/eB9UJy-ptiM/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-BOU-MLdr_3E/TqqzUk7R8SI/AAAAAAAADuc/cIQp_XYQwXA/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="220" src="http://1.bp.blogspot.com/-BOU-MLdr_3E/TqqzUk7R8SI/AAAAAAAADuc/cIQp_XYQwXA/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-h6mGUG-OkPg/TqqzZy5pmUI/AAAAAAAADuk/qUdJNEgHZGg/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://4.bp.blogspot.com/-h6mGUG-OkPg/TqqzZy5pmUI/AAAAAAAADuk/qUdJNEgHZGg/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Some simple but necessary lines of code appear on your screen. NetBeans prepares the environment for the programmer by creating an empty class, naming the .java file with the same name as the class, and defines the class on the correct package. On this lesson we will not explain the code, but we will just write a simple code and show how to execute a java program. Type the following code inside the java class and click the Save All Files icon to save your code.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-dQuc2l1n-g8/TqqzgzdUQII/AAAAAAAADus/wCprgxs4L_8/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="208" src="http://3.bp.blogspot.com/-dQuc2l1n-g8/TqqzgzdUQII/AAAAAAAADus/wCprgxs4L_8/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Before we run our project, we must be able to see the output message of our program on the screen or even debugging messages from the Java compiler. So it is necessary to go to the Window menu, to pick Output and then again Output as it is shown below. When you done, the Output pane will be showing at the bottom of your screen.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-o0yOz4lIGmc/TqqzoOu712I/AAAAAAAADu0/Dh9pjOHYG-E/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-o0yOz4lIGmc/TqqzoOu712I/AAAAAAAADu0/Dh9pjOHYG-E/s320/pic13.jpg" width="266" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-1eLXrHIWzVU/Tqqzt_f2gNI/AAAAAAAADu8/bBIkNDf0Ej4/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="210" src="http://3.bp.blogspot.com/-1eLXrHIWzVU/Tqqzt_f2gNI/AAAAAAAADu8/bBIkNDf0Ej4/s320/pic14.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Right click on the SimpleDemo project icon and choose Run from the menu. If you see a new window asking which one is the executable class (the class that contains the main method) just accept the default setting. You should be able to see the result on the output pane.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rX5q5DWXRyI/Tqqz2Av7yaI/AAAAAAAADvE/H3DkXX4UFUo/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://3.bp.blogspot.com/-rX5q5DWXRyI/Tqqz2Av7yaI/AAAAAAAADvE/H3DkXX4UFUo/s320/pic15.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;When we were installing NetBeans, we have accepted the default settings including the place where the NetBean projects will be saved. That location was the My Documents folder on a Windows System.  Inside the NetBeans Project folder we will find another folder with the name of our application. If you double click on it, you will see the structure that NetBeans uses to organize its files. The folder name src has the .java files whereas the build folder contains the .class files.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-rBuMhmWCmL0/Tqqz89jOIPI/AAAAAAAADvM/eczIGW0uDIw/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="210" src="http://4.bp.blogspot.com/-rBuMhmWCmL0/Tqqz89jOIPI/AAAAAAAADvM/eczIGW0uDIw/s320/pic16.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-O9yaMkzWSFA/Tqq0A0eHwhI/AAAAAAAADvU/L8kziov3S9k/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="210" src="http://4.bp.blogspot.com/-O9yaMkzWSFA/Tqq0A0eHwhI/AAAAAAAADvU/L8kziov3S9k/s320/pic17.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;This completes the steps you need to run any kind of Java Standard Edition application using NetBeans. From next time, we will start explaining the java theory and analyzing every single line of code of our java programs.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Michail Kassapoglou&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-6022383861021891206?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/6022383861021891206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=6022383861021891206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6022383861021891206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6022383861021891206'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-3-our-first-java-program-using.html' title='LESSON 3 – OUR FIRST JAVA PROGRAM USING NETBEANS'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-345qIdIdW4o/TqqyOEpi6UI/AAAAAAAADtM/houwHIaR4Jk/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-6068826505277590001</id><published>2011-10-26T10:11:00.000-07:00</published><updated>2011-10-27T10:52:59.901-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 2 – INSTALLATION OF NETBEANS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-uJMz9-NcPpQ/Tqg98quLzhI/AAAAAAAADr0/LlaCaz0sTMc/s1600/java_image.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/-uJMz9-NcPpQ/Tqg98quLzhI/AAAAAAAADr0/LlaCaz0sTMc/s200/java_image.jpeg" width="109" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;NetBeans is an Integrated Development Environment (IDE) and platform and supports several programming languages either by build-in support or by installing additional plugins. As a Java IDE, NetBeans has built-in support for Java SE (Standard Edition) applications, Java ME (Micro Edition) and Java EE (Enterprise Edition) applications. During our lessons, we will be focusing on the Java SE development capabilities of NetBeans, and how to take advantage of NetBeans features to help us develop Java SE applications more efficiently. &lt;/span&gt; &lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;NetBeans can be obtained by downloading the latest version from &lt;a href="http://netbeans.org/downloads/index.html"&gt;http://netbeans.org/downloads/index.html&lt;/a&gt;. NetBeans download includes different NetBeans bundles that provide different levels of functionality. Click on the right most download button to download NetBeans with all available bundles. The NetBeans download page should detect the operating system being used to access it, and the appropriate platform should be selected by default.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-MM2gS9qoxHc/Tqg-Ib1NbmI/AAAAAAAADr8/UoA7UfKZIeE/s1600/netbeans_pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="163" src="http://3.bp.blogspot.com/-MM2gS9qoxHc/Tqg-Ib1NbmI/AAAAAAAADr8/UoA7UfKZIeE/s320/netbeans_pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;To install NetBeans on Windows platforms, simply navigate to the folder where NetBeans was downloaded and double-click on the executable file. Click Next to accept the default settings and to continue to the next screen.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-FnttFC_je0s/Tqg-QlCXkwI/AAAAAAAADsE/5ozHXwMCClk/s1600/netbeans_pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-FnttFC_je0s/Tqg-QlCXkwI/AAAAAAAADsE/5ozHXwMCClk/s320/netbeans_pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;Check the “I accept the terms in the license agreement” box and click on the Next button.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-QK-HtZOWA3s/Tqg-Ys0SSYI/AAAAAAAADsM/9UQUR8eoCIg/s1600/netbeans_pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/-QK-HtZOWA3s/Tqg-Ys0SSYI/AAAAAAAADsM/9UQUR8eoCIg/s320/netbeans_pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;JUnit is an open source framework designed for the purpose of writing and running tests in the Java programming language. JUnit has a graphical user interface making it possible to write and test source code quickly and easily. JUnit allows the developer to incrementally build test suites to measure progress and detect unintended side effects. At this point of the installation, you have the choice to install Junit or just to skip its installation for now. However, you have the option through the available plugins to install it later at any time. I think is a great tool to play with when you start getting comfortable with java. So click on “I accept the terms in the license agreement, Install JUnit” option and click on the Next button.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-t3WVsqGOcO4/Tqg-hheqsgI/AAAAAAAADsU/b6HS5jDCrto/s1600/netbeans_pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-t3WVsqGOcO4/Tqg-hheqsgI/AAAAAAAADsU/b6HS5jDCrto/s320/netbeans_pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;At this point the installer will prompt us for a NetBeans installation directory and for a JDK to use with NetBeans. We accept the default settings and we click on the Next button.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-_HpLhoNjx1c/Tqg-pBJaQ5I/AAAAAAAADsc/mU84s3e_2Gc/s1600/netbeans_pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-_HpLhoNjx1c/Tqg-pBJaQ5I/AAAAAAAADsc/mU84s3e_2Gc/s320/netbeans_pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;The installer will not prompt us for an installation directory for the GlassFish application server. We accept the default setting and we click on the Next button.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-kQYR0ouKUos/Tqg-v7PQqVI/AAAAAAAADsk/yDyPlKmNVc0/s1600/netbeans_pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-kQYR0ouKUos/Tqg-v7PQqVI/AAAAAAAADsk/yDyPlKmNVc0/s320/netbeans_pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;At this point the installer will display a summary of our choices. After reviewing the summary, we need to click on the button labeled Install to begin the installation.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-RA-OJUdsmZ0/Tqg-3qyfWjI/AAAAAAAADss/gaw2oEH4GMk/s1600/netbeans_pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-RA-OJUdsmZ0/Tqg-3qyfWjI/AAAAAAAADss/gaw2oEH4GMk/s320/netbeans_pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;At this point the installation will begin. The installer displays a progress bar indicating how far along in the installation it is.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-wi326xVkrJ4/Tqg-_ZN-ngI/AAAAAAAADs0/D1LhZ6Idpmo/s1600/netbeans_pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/-wi326xVkrJ4/Tqg-_ZN-ngI/AAAAAAAADs0/D1LhZ6Idpmo/s320/netbeans_pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;After NetBeans and all related components have been installed, the installer indicates a successful installation, giving us the option to contribute anonymous usage data. It is up to you if you want to choose this option or not. Click the Finish button to exit the installer.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-kybuXbA621w/Tqg_F0l-S3I/AAAAAAAADs8/DEzF5pB2YLU/s1600/netbeans_pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-kybuXbA621w/Tqg_F0l-S3I/AAAAAAAADs8/DEzF5pB2YLU/s320/netbeans_pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;The installer places a NetBeans icon on the desktop that looks like a blue cube. Double-click on the icon to start NetBeans. Once NetBeans starts, we should see a page with links to demos, tutorials, sample projects, etc.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-dvuVvYCzFko/Tqg_MFTPCcI/AAAAAAAADtE/HanDadw5png/s1600/netbeans_pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="189" src="http://2.bp.blogspot.com/-dvuVvYCzFko/Tqg_MFTPCcI/AAAAAAAADtE/HanDadw5png/s320/netbeans_pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;This completes the installation of NetBeans. Next time, we will create our first Java application using NetBeans.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;Michail Kassapoglou&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-6068826505277590001?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/6068826505277590001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=6068826505277590001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6068826505277590001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6068826505277590001'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-2-installation-of-netbeans.html' title='LESSON 2 – INSTALLATION OF NETBEANS'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-uJMz9-NcPpQ/Tqg98quLzhI/AAAAAAAADr0/LlaCaz0sTMc/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-5012015198595225190</id><published>2011-10-26T07:37:00.000-07:00</published><updated>2011-10-27T10:52:50.875-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>LESSON 1 - INTRODUCTION TO JAVA</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;img border="0" height="200" src="http://2.bp.blogspot.com/-mEltyg-eBU8/TqgYsRUBBTI/AAAAAAAADqE/TY93eF6PLZQ/s200/java_image.jpeg" width="109" /&gt;&amp;nbsp;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;Java is an innovative programming language that has become the language of choice for programs that need to run on a variety of different computer systems. It is an object-oriented programming language that manages to avoid many of the difficulties and complications that are inherent in some other object-oriented languages, making it easy to learn and very straight-forward to use.&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;A Java program can be written once and then run on many different devices. Your programs will run just as well on a PC running any supported version of Microsoft Windows as it will on Linux. This is possible because a Java program does not execute directly on your computer. To be more specific, the compiled java code, which is referred to as &lt;b&gt;bytecode&lt;/b&gt;, is well defined and looks the same no matter what type of device you are targeting. This is because in Java, the platform you target is a Java Virtual Machine, or &lt;b&gt;JVM&lt;/b&gt; for short. You do not write Java programs for Windows or Unix but you write programs to run on a JVM. The main point here is that if you want your java program to run on a Windows operating system, you need a JVM for Windows and if you want your java program to run on Unix operatic system you need a JVM for Unix. The end result of all this process is that when you run a Java program, you are really running a JVM and the JVM is interpreting your Java code.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: normal;"&gt;Based on the preceding short explanation, we can expand a little bit more on the JVM theory. The Java Platform consists of two elements – a software implementation of a hypothetical computer called the Java Virtual Machine (JVM) and the Java Application Programming Interface (API). The following picture is taken from the oracle java site (&lt;/span&gt;&lt;a href="http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html"&gt;http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html&lt;/a&gt;). &lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-z_8Jv8FyAsM/TqgZLOrP20I/AAAAAAAADqM/nz86jEiKdRU/s1600/JVM_pic1.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-z_8Jv8FyAsM/TqgZLOrP20I/AAAAAAAADqM/nz86jEiKdRU/s1600/JVM_pic1.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;According to the online documentation on the Oracle's site (&lt;a href="http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html"&gt;http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html&lt;/a&gt; ) an API is a large collection of ready-made software components that provides the facilities you need to write a full interactive application in Java. It is grouped into libraries of related classes and interfaces; these libraries are known as packages. But, what is the JVM and how does it work?&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;For one more time we have to refer to the official site of Oracle to get a complete answer about the JVM (&lt;a href="http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html"&gt;http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html&lt;/a&gt; ). According to the online documentation, in the Java programming language, all source code is first written in plain text files ending with the &lt;b&gt;.java&lt;/b&gt; extension. Those source files are then compiled into &lt;b&gt;.class&lt;/b&gt; files by the &lt;b&gt;javac&lt;/b&gt; compiler. A &lt;b&gt;.class &lt;/b&gt;file does not contain code that is native to your processor; it instead contains bytecodes – the machine language of the Java Virtual Machine (Java VM). The java launcher tool then runs your application with an instance of the Java Virtual Machine. The following picture is taken from the Oracle web site (&lt;a href="http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html"&gt;http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html&lt;/a&gt; ).&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-G9jK8H7njQs/TqgZcveyYmI/AAAAAAAADqU/jrBtzHeGD0o/s1600/JVM_pic2.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="55" src="http://1.bp.blogspot.com/-G9jK8H7njQs/TqgZcveyYmI/AAAAAAAADqU/jrBtzHeGD0o/s320/JVM_pic2.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;But what is practically the JVM? How can I install it? The JVM is a virtual environment that is operational when we download and install the JRE (Java Runtime Environment) from the Oracle site.  We have to download the appropriate JRE for our operating system (Windows , Linux, etc). When we do that then we will be able to only run java applications on our system. In order to be able to develop applications as well, we need to download the JDK (Java Development Kit) that is our major development tool and it also includes the JRE for running and testing our applications. Now that you are aware of the Java technology let's review one more time the process:&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;We download the JDK  development tool for writing our java applications&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;JDK includes the JRE so  we can run our application as well&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;When we compile the  .java file (using the command javac), a second file .class will be  created. This new file contains the compiled version of our program  and it is runnable.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;If we want to run our  finished application to a different client computer system, then we  have to install first the appropriate JRE on that system and then  run the .class file.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The following picture is taken from the Oracle java site (&lt;a href="http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html"&gt;http://download.oracle.com/javase/tutorial/getStarted/intro/definition.html&lt;/a&gt; ).&amp;nbsp;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ikOAWs8QxQ0/TqgZmAga1tI/AAAAAAAADqc/zS583RX0JIw/s1600/JVM_pic3.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="307" src="http://4.bp.blogspot.com/-ikOAWs8QxQ0/TqgZmAga1tI/AAAAAAAADqc/zS583RX0JIw/s320/JVM_pic3.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The first step we have to take in order to be able to follow along with this course is to download the latest JDK from the Oracle java site (&lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html"&gt;http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html&lt;/a&gt;). I will be running Java in a Windows System, so I will be downloading the Windows version of JDK.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-M6DfuVT-ui4/TqgZvDuNRVI/AAAAAAAADqk/hmwF3pFRw20/s1600/Download_pic4.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="215" src="http://1.bp.blogspot.com/-M6DfuVT-ui4/TqgZvDuNRVI/AAAAAAAADqk/hmwF3pFRw20/s320/Download_pic4.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;When the download process is complete, double click on the JDK &lt;b&gt;.exe&lt;/b&gt; file to initiate the installation process. Just click the NEXT button and accept all the default settings till the installation process is done.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0uZngL0njw8/TqgZ1_HOn9I/AAAAAAAADqs/X2CCpPpfizo/s1600/JDK_Install_pic5.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://2.bp.blogspot.com/-0uZngL0njw8/TqgZ1_HOn9I/AAAAAAAADqs/X2CCpPpfizo/s320/JDK_Install_pic5.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;After you are done installing the JDK, you need to carry out one additional step: Add the jdk/bin directory to the execution path, the list of directories that the operating system traverses to locate executable files. If you have Windows XP then you click on the Start button then choose Control Panel, switch to the Classic View, and select the System icon. If you have Windows 7 then you need to select Advanced System Settings.&amp;nbsp;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-1G8seBqbrQA/TqgZ90gHTAI/AAAAAAAADq0/PRX3lXhPjr4/s1600/Windows_pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="312" src="http://2.bp.blogspot.com/-1G8seBqbrQA/TqgZ90gHTAI/AAAAAAAADq0/PRX3lXhPjr4/s320/Windows_pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;In the system properties dialog, click the Advanced tab, then click on the Environment button. Find a variable named &lt;b&gt;Path&lt;/b&gt;. Click the Edit button. Add the jdk\bin directory to the beginning of the path, using a semicolon to separate the new entry:&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;b&gt;C:\Program Files\Java\jdk1.7.0_01\bin; &lt;/b&gt; &lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;You need to restart your computer in order for the changes to take effect.&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-iNcuBBBJOYU/TqgaGC5JDzI/AAAAAAAADq8/WXEZBRit93k/s1600/Windows_pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://1.bp.blogspot.com/-iNcuBBBJOYU/TqgaGC5JDzI/AAAAAAAADq8/WXEZBRit93k/s320/Windows_pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Let's write a simple java program using the Windows notepad program. It does not matter if you do not understand the code at this point. We just want to understand how to run a java program through the command line. Write the following program and then save it using the same name as the name of the class (FreeLessons) adding the extension .java at the end of the file (FreeLessons.java). I will save this file on my &lt;a href="http://www.blogger.com/post-edit.g?blogID=2234050870648484428&amp;amp;postID=5012015198595225190"&gt;C:\&lt;/a&gt; drive in a folder named java.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-mt5mXP5qcVM/TqgaYPrQ60I/AAAAAAAADrE/uXBF2X75xdU/s1600/program_pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="106" src="http://4.bp.blogspot.com/-mt5mXP5qcVM/TqgaYPrQ60I/AAAAAAAADrE/uXBF2X75xdU/s320/program_pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ppoosCizIoY/Tqgad0VMcYI/AAAAAAAADrM/DUq2aa8KWjY/s1600/program_pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="245" src="http://3.bp.blogspot.com/-ppoosCizIoY/Tqgad0VMcYI/AAAAAAAADrM/DUq2aa8KWjY/s320/program_pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Before, we compile the program, let's check if Java has been installed correctly on our system by typing the command &lt;b&gt;java -version&lt;/b&gt;. You should see something similar to the following picture.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-8L2PB-kqQXE/TqgamJF69EI/AAAAAAAADrU/F5TV5xF6K04/s1600/program_pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="180" src="http://1.bp.blogspot.com/-8L2PB-kqQXE/TqgamJF69EI/AAAAAAAADrU/F5TV5xF6K04/s320/program_pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Now, change the directory to the folder where you have saved the FreeLessons.java file and run the &lt;b&gt;javac&lt;/b&gt; command to compile the program followed by the complete name of the file. Keep in mind that Java is case sensitive, even though Windows are not. You need to type in the name of the class using proper case.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-CCOxlDy8PWQ/Tqgas5SP95I/AAAAAAAADrc/_sril5kKK4Q/s1600/program_pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://2.bp.blogspot.com/-CCOxlDy8PWQ/Tqgas5SP95I/AAAAAAAADrc/_sril5kKK4Q/s320/program_pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;The javac tool compiles Java classes into bytecode. If the compiler is successful, no message will be displayed and the command prompt will come back. You should see now a new file: FreeLessons.class.  This is the bytecode file generated from the compiler. All bytecode appears in .class files. The extension is appropriate because within that .class file is the bytecode describing a single class.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-GJFGmeyGlAs/TqgazdC8gLI/AAAAAAAADrk/LKK3AisWL10/s1600/program_pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://1.bp.blogspot.com/-GJFGmeyGlAs/TqgazdC8gLI/AAAAAAAADrk/LKK3AisWL10/s320/program_pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;After you have successfully compiled FreeLessons.java and created the FreeLessons.class file, you can now run the program using the java tool. The java tool requires the name of the bytecode file that you want to execute. You do not use the .class extension when running Java programs with the java tools. The JVM only interprets bytecode in .class files, so the .class extension is not needed. An error occurs if you include the extension.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-LEJFAv-trSY/Tqga6jfL2BI/AAAAAAAADrs/qjN7FrIegzE/s1600/program_pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161" src="http://3.bp.blogspot.com/-LEJFAv-trSY/Tqga6jfL2BI/AAAAAAAADrs/qjN7FrIegzE/s320/program_pic13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Congratulations! You have just compiled and run your first Java program. What happened? The javac program is the Java compiler. It compiles the FreeLessons.java into the file FreeLessons.class. The java program launches the Java virtual machine. It executes the bytecodes that the compiler placed in the class file.  &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Next time, we will see how to compile a program with NetBeans, an integrated development environment.  &lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Michail Kassapoglou&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.free-lessons.org/"&gt;http://www.free-lessons.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-5012015198595225190?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/5012015198595225190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=5012015198595225190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/5012015198595225190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/5012015198595225190'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/10/lesson-1-introduction-to-java.html' title='LESSON 1 - INTRODUCTION TO JAVA'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-mEltyg-eBU8/TqgYsRUBBTI/AAAAAAAADqE/TY93eF6PLZQ/s72-c/java_image.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-2946600980044535431</id><published>2011-06-22T01:00:00.000-07:00</published><updated>2011-06-22T01:00:58.600-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WINDOWS XP'/><title type='text'>WINDOWS XP - Lesson 5</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-11ONJerC36I/TgGfPhnCc3I/AAAAAAAADlM/efLT9zQFGFE/s1600/windows_xp_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-11ONJerC36I/TgGfPhnCc3I/AAAAAAAADlM/efLT9zQFGFE/s1600/windows_xp_logo.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;Το κουμπί START (βρίσκεται κάτω και αριστερά στην οθόνη σας) είναι το σημείο εκκίνησης για οποιαδήποτε ενέργεια θέλουμε να πραγματοποιήσουμε στον υπολογιστή μας – από την απεγκατάσταση ενός προγράμματος μέχρι την ανάγνωση του ηλεκτρονικού μας ταχυδρομείου (email). Ο σημαντικός ρόλος που έχει στην οργάνωση των μενού στα Windows XP είχε σαν αποτέλεσμα να του προστεθούν μεμονωμένες ιδιότητες και ρυθμίσεις για την καλύτερη διαχείρισή του. Στο σημερινό μάθημα θα δούμε τις ρυθμίσεις και τις ιδιότητες του START και πως αυτές επηρεάζουν την αποδοτικότητα του μέσου χρήστη των Windows XP.&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;Όταν ολοκληρωθεί η εγκατάσταση των Windows XP, το να κάνουμε αριστερό κλικ με το ποντίκι μας στο κουμπί START είναι το επόμενο λογικό βήμα μιας και δεν υπάρχει καμία άλλη ορατή διαθέσιμη επιλογή στην επιφάνεια εργασίας. Αφού το επιλέξουμε, θα εμφανιστεί η πιο κάτω οργανωμένη λίστα προγραμμάτων που αντιπροσωπεύουν τις διαθέσιμες υπηρεσίες που προσφέρει ο συγκεκριμένος υπολογιστής.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-4m1WJXDYNNw/TgGfYZ9dLYI/AAAAAAAADlQ/fjW0aSOOsY8/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-4m1WJXDYNNw/TgGfYZ9dLYI/AAAAAAAADlQ/fjW0aSOOsY8/s320/pic1.jpg" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;Ας δούμε όμως πιο αναλυτικά τις πληροφορίες που μας προσφέρονται και πως αυτές οργανώνονται μέσα στο παραλληλόγραμμο πλαίσιο. Σαν πρώτη παρατήρηση, βλέπουμε στην πάνω αριστερά περιοχή (κάθε περιοχή χωρίζεται από την επόμενη με μια οριζόντια γραμμή) δύο εικονίδια – το εικονίδιο του Internet Explorer με το οποίο μπορούμε να δούμε ιστοσελίδες στο διαδίκτυο και εκείνο του E-mail με το οποίο, αφού γίνουν οι κατάλληλες ρυθμίσεις, μπορούμε να διαβάσουμε το ηλεκτρονικό μας ταχυδρομείο. Τα δύο αυτά εικονίδια αντιπροσωπεύουν (σαν προκαθορισμένη ρύθμιση) τα προγράμματα που χρησιμοποιεί ο χρήστης πιο συχνά στην καθημερινή του εργασία με τον υπολογιστή. Αυτή την μικρή λίστα λογικό είναι να θελήσουμε να την αλλάξουμε εφόσον εγκαταστήσουμε και δικά μας προγράμματα. Οπότε ο σκοπός που έχει αυτή η μικρή περιοχή είναι να μας δίνει μια γρήγορη πρόσβαση σε κάποια προγράμματα που χρησιμοποιούμε πολύ συχνά. Εδώ όμως υπάρχουν δύο μικρές λεπτομέρειες που μας περιορίζουν:&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;· Η μικρή αυτή λίστα δεν αναβαθμίζεται αυτόματα. Αν θελήσουμε να αναβαθμίσουμε την λίστα και να καταχωρήσουμε ένα καινούργιο πρόγραμμα, θα πρέπει να το κάνουμε μόνοι μας. Αργότερα στο σημερινό μάθημα θα δούμε πως να προσθέσουμε περισσότερα από δύο προγράμματα μόνιμα στη λίστα.&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;Η λίστα αναφέρεται μόνο σε προγράμματα που ανήκουν στην κατηγορία των web browsers (όπως Mozilla, Chrome, Explorer κτλ) και την κατηγορία των email clients (όπως Outlook Express, Outlook, Thunderbird κτλ). Τα βήματα για να προσθέσουμε και άλλου είδους προγράμματα θα τα δούμε στην συνέχεια του μαθήματος.&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-bXaoMGAljMQ/TgGfjPU7ztI/AAAAAAAADlU/HcFhe5v7LZU/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-bXaoMGAljMQ/TgGfjPU7ztI/AAAAAAAADlU/HcFhe5v7LZU/s320/pic2.jpg" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;Αν θελήσουμε να αλλάξουμε τα προγράμματα με δύο άλλα που καλύπτουν καλύτερα τις ανάγκες μας τότε δεν έχουμε παρά να ακολουθήσουμε τα πιο κάτω βήματα:&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;1. Κάνουμε δεξί κλικ επάνω στο start κουμπί και από το εμφανιζόμενο μενού επιλέγουμε properties.&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-NLcmBQtuEEo/TgGfpcveKMI/AAAAAAAADlY/QdOcJWJ4ZTE/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-NLcmBQtuEEo/TgGfpcveKMI/AAAAAAAADlY/QdOcJWJ4ZTE/s1600/pic3.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;2. Δίπλα από το Start Menu, πατάμε το κουμπί Customize..&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-IxcVIzxhjxY/TgGfwVOfIRI/AAAAAAAADlc/39KDAnILCBQ/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-IxcVIzxhjxY/TgGfwVOfIRI/AAAAAAAADlc/39KDAnILCBQ/s320/pic4.jpg" width="266" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;3. Από το εμφανιζόμενο παράθυρο, επιλέγουμε τα επιθυμητά προγράμματα από τις λίστες Internet και E-mail. Για να εμφανιστεί ένα καινούργιο πρόγραμμα σε μια από αυτές τις λίστες, πρέπει επίσημα να έχει αναγνωριστεί ότι εξυπηρετεί έναν τουλάχιστον από τους δύο αυτούς σκοπούς. Ένα πρόγραμμα που συνήθως εμφανίζεται μετά την εγκατάστασή του είναι ο Mozilla. Για να δείξουμε όμως το πώς μια αλλαγή επηρεάζει την λίστα μας, δεν θα εγκαταστήσουμε νέο πρόγραμμα ακόμα, αλλά θα επιλέξουμε ένα από την ήδη υπάρχων λίστα και πιο συγκεκριμένα το Hotmail.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-SLuGuSIEByE/TgGf2Z9AzoI/AAAAAAAADlg/WGe0m5lJLS0/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-SLuGuSIEByE/TgGf2Z9AzoI/AAAAAAAADlg/WGe0m5lJLS0/s320/pic5.jpg" width="299" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-U0pvCZRCbdE/TgGf_4b8JEI/AAAAAAAADlk/_zx-ZZiHQfw/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-U0pvCZRCbdE/TgGf_4b8JEI/AAAAAAAADlk/_zx-ZZiHQfw/s320/pic6.jpg" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Επίσης, μπορούμε να αλλάξουμε την σειρά εμφάνισης των εικονιδίων. Αρκεί να κάνουμε κλικ επάνω στο εικονίδιο που μας ενδιαφέρει και χωρίς να αφήσουμε το κουμπί από το ποντίκι μας να μεταφέρουμε το εικονίδιο στην επιθυμητή θέση όπως δείχνει η πιο κάτω εικόνα.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-3wTrA4bMeWY/TgGgHcdZ9TI/AAAAAAAADlo/_WEN6n7Mljk/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-3wTrA4bMeWY/TgGgHcdZ9TI/AAAAAAAADlo/_WEN6n7Mljk/s320/pic7.jpg" width="273" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;Ακριβώς από κάτω από την περιοχή για την οποία μόλις μιλήσαμε υπάρχει μια άλλη ομάδα εικονιδίων τα οποία ανήκουν στην κατηγορία εκείνων των προγραμμάτων που έχουν χρησιμοποιηθεί πιο πρόσφατα. Η λίστα αυτή είναι δυναμική και όσο πιο πολλές φορές χρησιμοποιούμε ένα πρόγραμμα, τόσο πιο συχνά θα το βλέπουμε να εμφανίζεται σε αυτή την λίστα. Η μόνη επέμβαση που μπορούμε να κάνουμε εδώ είναι να ορίσουμε τον αριθμό των εικονιδίων (και κατά συνέπεια των προγραμμάτων) που θα εμφανίζονται σε αυτή την λίστα.&lt;br /&gt;&lt;br /&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;Κάνουμε λοιπόν δεξί κλικ με το ποντίκι μας επάνω στο start κουμπί και επιλέγουμε properties από το εμφανιζόμενο μενού. Στην συνέχεια επιλέγουμε Customize... για να βρεθούμε στο ίδιο παράθυρο όπως και προηγουμένως μόνο που αυτή την φορά θα μας απασχολήσει η περιοχή με το όνομα Programs. Ο εμφανιζόμενος αριθμός είναι ο αριθμός των εικονιδίων που θα εμφανίζεται στο start menu και τον οποίο μπορούμε να αλλάξουμε. Το κουμπί Clear List καθαρίζει την τρέχων εμφανιζόμενη λίστα η οποία θα γεμίσει πάλι όπως θα ανοίγουμε καινούργια προγράμματα προς χρήση. Πριν φύγουμε από αυτό το παράθυρο επιλογών, παρατηρήστε ότι έχουμε την δυνατότητα να αυξήσουμε (ή να μειώσουμε το μέγεθος των εικονιδίων).&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-MVynDeggaSk/TgGgSR_TR8I/AAAAAAAADls/Jo4tM_2ok4U/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-MVynDeggaSk/TgGgSR_TR8I/AAAAAAAADls/Jo4tM_2ok4U/s320/pic8.jpg" width="241" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-KtfaSUKwc4E/TgGgWbpWl7I/AAAAAAAADlw/ks3DUpIpZC0/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-KtfaSUKwc4E/TgGgWbpWl7I/AAAAAAAADlw/ks3DUpIpZC0/s320/pic9.jpg" width="239" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Προχωρώντας την ανάλυσή μας στην δεξιά πλευρά, η πρώτη ομάδα εικονιδίων (δεξιά και πάνω) είναι εκείνη η οποία μας δίνει πρόσβαση κατά πρώτο λόγο στο σκληρό ή σκληρούς δίσκους του υπολογιστή μας (My Computer) και κατά δεύτερο λόγο σε φακέλους στους οποίους ο χρήστης μπορεί να αποθηκεύσει και να κατηγοριοποιήσει τα δεδομένα του όπως να βάλει τις φωτογραφίες στο φάκελο My Pictures και τα αρχεία του στο φάκελο My Documents.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xrY-M4ANWC8/TgGgcY3lz4I/AAAAAAAADl0/5D12dge0qcQ/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-xrY-M4ANWC8/TgGgcY3lz4I/AAAAAAAADl0/5D12dge0qcQ/s320/pic10.jpg" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Ο τρόπος εμφάνισης αυτών των εικονιδίων τροποποιείται εάν αλλάξουμε τις ρυθμίσεις τους από τα properties του start κουμπιού.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-GuGhqJofVZs/TgGgi0ukQsI/AAAAAAAADl4/NgERlHdS3LU/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-GuGhqJofVZs/TgGgi0ukQsI/AAAAAAAADl4/NgERlHdS3LU/s320/pic11.jpg" width="266" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Ας κάνουμε ένα παράδειγμα αλλάζοντας τον τρόπο εμφάνισης του εικονιδίου Control Panel. Η αρχική ρύθμιση είναι το Display as a link δηλαδή κάθε φορά που επιλέγουμε αυτό το εικονίδιο με το ποντίκι να μας ανοίγει καινούργιο παράθυρο για να δούμε τα περιεχόμενα του. Αλλάζοντας αυτή την ρύθμιση στο Display as a menu τότε χωρίς να ανοίγεται καινούργιο παράθυρο θα εμφανίζονται οι υποκατηγορίες του όπως δείχνει και το πιο κάτω παράδειγμα.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-vk5clzOBCv4/TgGgo-3TS7I/AAAAAAAADl8/e5liuEJaqV8/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-vk5clzOBCv4/TgGgo-3TS7I/AAAAAAAADl8/e5liuEJaqV8/s320/pic12.jpg" width="304" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-gLXHgm7Vyxo/TgGgshqNDII/AAAAAAAADmA/_vpmwrKz15U/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-gLXHgm7Vyxo/TgGgshqNDII/AAAAAAAADmA/_vpmwrKz15U/s320/pic13.jpg" width="306" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Ας δείξουμε όμως μια ακόμα δυνατότητα που έχουμε για να μειώσουμε τον χρόνο πρόσβασης σε μια εφαρμογή που χρησιμοποιούμε είτε συχνά είτε καθημερινά. Σαν πρώτο βήμα, έκανα εγκατάσταση τον browser Mozilla έτσι ώστε να υπάρχει ένα καινούργιο πρόγραμμα στον υπολογιστή εκτός από τα αυτά που αποκτήσαμε με την εγκατάσταση του προγράμματος. Η πρώτη παρατήρηση που έχουμε να κάνουμε είναι ότι τοποθέτησε τον εαυτό μου στην μόνιμη περιοχή εμφάνισης εφαρμογών.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-r2jDzFq3e1U/TgGgyyame-I/AAAAAAAADmE/xOoMBjXmKLU/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-r2jDzFq3e1U/TgGgyyame-I/AAAAAAAADmE/xOoMBjXmKLU/s320/pic14.jpg" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Σε περίπτωση που θέλουμε να έχουμε και την επιλογή του Internet Explorer, μπορούμε να πάμε στο start μετά στο All Programs και αφού βρούμε το εικονίδιο του Internet Explorer να κάνουμε δεξί κλικ με το ποντίκι μας επάνω του. Από το εμφανιζόμενο μενού, επιλέγουμε Pin to Start Menu.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zyPRh2Y94Xw/TgGg8_ryPKI/AAAAAAAADmI/sSle60avtNs/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-zyPRh2Y94Xw/TgGg8_ryPKI/AAAAAAAADmI/sSle60avtNs/s320/pic15.jpg" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-f9l_BwrkYTk/TgGhAgxwaiI/AAAAAAAADmM/2lkrUShClvA/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-f9l_BwrkYTk/TgGhAgxwaiI/AAAAAAAADmM/2lkrUShClvA/s320/pic16.jpg" width="239" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Μπορούμε να ακολουθήσουμε την ίδια ακριβώς διαδικασία για οποιοδήποτε πρόγραμμα που έχουμε εγκαταστήσει στον υπολογιστή μας. Εάν θέλουμε να κάνουμε την ακριβώς αντίθετη κίνηση (δηλαδή να αφαιρέσουμε ένα πρόγραμμα από την λίστα) τότε δεν έχουμε παρά να κάνουμε δεξί κλικ επάνω στο εικονίδιο και από το εμφανιζόμενο μενού να επιλέξουμε Unpin from Start Menu.  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-VeRbfWwIr0E/TgGhIJ8D57I/AAAAAAAADmQ/lC4bG4SK4GY/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-VeRbfWwIr0E/TgGhIJ8D57I/AAAAAAAADmQ/lC4bG4SK4GY/s320/pic17.jpg" width="222" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Μιχάλης Κασάπογλου&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail.Kassapoglou@free-lessons.org&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-2946600980044535431?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/2946600980044535431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=2946600980044535431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2946600980044535431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2946600980044535431'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/windows-xp-lesson-5.html' title='WINDOWS XP - Lesson 5'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-11ONJerC36I/TgGfPhnCc3I/AAAAAAAADlM/efLT9zQFGFE/s72-c/windows_xp_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-7262327115798541652</id><published>2011-06-10T00:12:00.000-07:00</published><updated>2011-06-10T00:12:01.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WINDOWS SERVER 2008'/><title type='text'>WINDOWS SERVER 2008 Lesson 3 - Creating Users</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-OlUNDTeNEwY/TfHBuELOW2I/AAAAAAAADh0/3q8U2GzPBnE/s1600/windows_2008_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-OlUNDTeNEwY/TfHBuELOW2I/AAAAAAAADh0/3q8U2GzPBnE/s1600/windows_2008_logo.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο σημερινό μάθημα θα μιλήσουμε για την δημιουργία λογαριασμού χρήστη στο &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt;. Επίσης θα αναφερθούμε στις ιδιότητες της καρτέλας του χρήστη (αφού δημιουργήσουμε τον λογαριασμό) και τι πρέπει να προσέξουμε για να εξασφαλίσουμε την ασφάλεια τόσου του λογαριασμού όσο και του δικτύου μας. Ο λογαριασμός που θα δημιουργήσουμε θα επιτρέψει στον χρήστη να συνδεθεί για μέσω του υπολογιστή του στο δίκτυο και να αποκτήσει πρόσβαση σε χρήσιμους πόρους.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Για να μπορέσει να ενωθεί ο χρήστης στο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; το οποίο επιθυμεί, θα πρέπει να προϋπάρχει ένας λογαριασμός χρήστη (&lt;/span&gt;user&lt;span lang="el-GR"&gt; &lt;/span&gt;account&lt;span lang="el-GR"&gt;) που θα του επιτρέπει την πρόσβαση. Επίσης στον λογαριασμό αυτό, εκτός από δικαιώματα σύνδεσης, θα δοθούν και δικαιώματα πρόσβασης σε αρχεία, φακέλλους, εκτυπωτές κτλ. Για να δημιουργήσουμε ένα απλό λογαριασμό χρήστη πηγαίνουμε &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Start&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; → &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;All&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Programs&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; → &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Administrative&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Tools&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; → &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Active&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Directory&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Users&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;and&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Computers&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-JT-xOnKzzTs/TfHB1lY49mI/AAAAAAAADh4/FFX_C8Wan-Y/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://2.bp.blogspot.com/-JT-xOnKzzTs/TfHB1lY49mI/AAAAAAAADh4/FFX_C8Wan-Y/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μπαίνοντας μέσα στην κονσόλα του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; &lt;/span&gt;Users&lt;span lang="el-GR"&gt; &lt;/span&gt;and&lt;span lang="el-GR"&gt; &lt;/span&gt;Computers&lt;span lang="el-GR"&gt; και αφού πατήσουμε το (+) σύμβολο δίπλα από το &lt;/span&gt;domain&lt;span lang="el-GR"&gt; &lt;/span&gt;FREELESSONS&lt;span lang="el-GR"&gt;.&lt;/span&gt;ORG&lt;span lang="el-GR"&gt;, θα δούμε ότι οι υπολογιστές και οι χρήστες που ανήκουν στο συγκεκριμένο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; έχουν οργανωθεί από το σύστημα σε φακέλλους που ονομάζονται &lt;/span&gt;Organizational&lt;span lang="el-GR"&gt; &lt;/span&gt;Units&lt;span lang="el-GR"&gt; (για αυτά θα μιλήσουμε σε μελλοντικά μαθήματα). Ένα από αυτά τα &lt;/span&gt;Organizational&lt;span lang="el-GR"&gt; &lt;/span&gt;Units&lt;span lang="el-GR"&gt; (ή &lt;/span&gt;OU&lt;span lang="el-GR"&gt; όπως συνηθίζουμε να τα αποκαλούμε) ονομάζεται &lt;/span&gt;USERS&lt;span lang="el-GR"&gt;. Εάν κάνουμε μια φορά κλικ επάνω στο &lt;/span&gt;OU&lt;span lang="el-GR"&gt; &lt;/span&gt;Users&lt;span lang="el-GR"&gt; από την δεξιά πλευρά θα μας εμφανιστούν όλοι οι προκαθορισμένοι από το σύστημα χρήστες που ήδη υπάρχουν και τα γκρουπ στα οποία μπορώ να τους κάνω μέλος για να μπορέσουν να αποκτήσουν περισσότερα δικαιώματα. Τα εικονίδια που αντιπροσωπεύουν χρήστες έχουν έναν χαρακτήρα ενώ εκείνα που αντιπροσωπεύουν γκρουπ έχουν δύο.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-DFJ2mpDs9Cc/TfHB8Txc9mI/AAAAAAAADh8/FoOMAzn2owo/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://1.bp.blogspot.com/-DFJ2mpDs9Cc/TfHB8Txc9mI/AAAAAAAADh8/FoOMAzn2owo/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Για να δημιουργήσουμε έναν χρήστη δεν έχουμε παρά να κάνουμε δεξί κλικ επάνω στο &lt;/span&gt;OU&lt;span lang="el-GR"&gt; μέσα στο οποίο μας ενδιαφέρει να δημιουργήσουμε τον χρήστη και από το εμφανιζόμενο μενού να επιλέξουμε &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;New&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; → &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;User&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;. Τα &lt;/span&gt;OU&lt;span lang="el-GR"&gt; για τώρα απλά σκεφτείτε ότι είναι φάκελλοι που μας βοηθάνε να οργανώσουμε τους χρήστες μας κάτι ανάλογο των φακέλλων (&lt;/span&gt;folders&lt;span lang="el-GR"&gt;) στην επιφάνεια εργασίας μέσα στα οποία οργανώνουμε τα αρχεία μας. Αυτό σημαίνει ότι μπορώ να μετακινήσω τον χρήστη σε οποιοδήποτε &lt;/span&gt;OU&lt;span lang="el-GR"&gt; αργότερα εάν το θελήσω.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-WyuROpcXFHo/TfHCCJ4f_jI/AAAAAAAADiA/6bEuWs7P2_U/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="230" src="http://3.bp.blogspot.com/-WyuROpcXFHo/TfHCCJ4f_jI/AAAAAAAADiA/6bEuWs7P2_U/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Το εμφανιζόμενο παράθυρο μας ζητάει να εισάγουμε ορισμένες πληροφορίες για τον λογαριασμό του χρήστη. Το απαραίτητο στοιχείο είναι το όνομα του λογαριασμού (&lt;/span&gt;User&lt;span lang="el-GR"&gt; &lt;/span&gt;logon&lt;span lang="el-GR"&gt; &lt;/span&gt;name&lt;span lang="el-GR"&gt;) όπως θα καταγραφεί στο &lt;/span&gt;active&lt;span lang="el-GR"&gt; &lt;/span&gt;directory&lt;span lang="el-GR"&gt; και το οποίο θα χρησιμοποιήσει ο χρήστης για να ενωθεί στο δίκτυο.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Τα υπόλοιπα στοιχεία είναι προαιρετικά αλλά τα θεωρώ αναγκαία όμως γιατί είναι πολύ εύκολο αργότερα να βρούμε τον λογαριασμό του χρήστη και να κάνουμε αλλαγές. Καλό είναι επίσης να υιοθετήσετε έναν σταθερό τρόπο για την δημιουργία των ονομάτων των λογαριασμών – π.χ. το μικρό όνομα του χρήστη και το πρώτο γράμμα από το επίθετο. Αφού συμπληρώσουμε τα στοιχεία σε αυτό το παράθυρο πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να μεταφερθούμε στις επόμενες επιλογές.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-XKy3xP0C0SU/TfHCIzdoqNI/AAAAAAAADiE/RvOSOiAJOgE/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="268" src="http://4.bp.blogspot.com/-XKy3xP0C0SU/TfHCIzdoqNI/AAAAAAAADiE/RvOSOiAJOgE/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Σε αυτό το παράθυρο εισάγουμε τον κωδικό πρόσβασης με τον οποίο θα συνδεθεί ο χρήστης. Γράφουμε τον κωδικό δύο φορές για να επιβεβαιώσουμε ότι δεν έχει γίνει κάποιο λάθος στους χαρακτήρες. Στο ίδιο παράθυρο υπάρχουν επίσης τέσσερα κουτάκια που είναι προαιρετικές επιλογές.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;User&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;must&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;change&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;password&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;at&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;next&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;logon&lt;/span&gt;&lt;span lang="el-GR"&gt;: Ενεργοποιούμε αυτή την επιλογή εάν θέλουμε να δώσουμε στον χρήστη το δικαίωμα, την πρώτη φορά που θα συνδεθεί, να αλλάξει τον κωδικό πρόσβασης. Στο δικό μας παράδειγμα δεν θέλουμε να είναι ενεργοποιημένη αυτή η επιλογή.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;User&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;cannot&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;change&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;password&lt;/span&gt;&lt;span lang="el-GR"&gt;: Χρησιμοποιούμε αυτή την επιλογή όταν έχουμε πολλούς χρήστες που συνδέονται στο δίκτυο με τον ίδιο λογαριασμό και δεν θέλουμε να αλλάξει ο κωδικός πρόσβασης. Μια άλλη χρήση αυτής της επιλογής είναι όταν δεν θέλουμε να αλλάξει ο κωδικός πρόσβασης για λογαριασμούς που αφορούν &lt;/span&gt;services&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;Password&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;never&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;expires&lt;/span&gt;&lt;span lang="el-GR"&gt;: Ενεργοποιούμε αυτή την επιλογή όταν δεν θέλουμε ποτέ να λήξει ο κωδικός πρόσβασης του λογαριασμού. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;Account&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;is&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;disabled&lt;/span&gt;&lt;span lang="el-GR"&gt;: Με αυτή την επιλογή μπορούμε να απενεργοποιήσουμε έναν λογαριασμό. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο δικό μας το παράδειγμα, δεν είναι απαραίτητο να διατηρήσουμε κάποια από τις επιλογές ενεργή, οπότε καθαρίζουμε όλα τα τετραγωνάκια και αφού έχουμε γράψει δύο φορές το κωδικό πρόσβασης που θα δώσουμε στον χρήστη πατάμε το κουμπί N&lt;/span&gt;EXT&lt;span lang="el-GR"&gt; να συνεχίσουμε στην επόμενη οθόνη.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-vx-7CcswQD0/TfHCRsbRX0I/AAAAAAAADiI/lijm2EjOx10/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="269" src="http://1.bp.blogspot.com/-vx-7CcswQD0/TfHCRsbRX0I/AAAAAAAADiI/lijm2EjOx10/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Βρισκόμαστε π&lt;/span&gt;&lt;span lang="el-GR"&gt;ια στο τελευταίο στάδιο της διαδικασίας. Εδώ απλά βεβαιώνουμε ότι δεχόμαστε την δημιουργία του λογαριασμού με όλες τις επιλογές που επιλέξαμε πατώντας το κουμπί &lt;/span&gt;FINISH&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-S51PaPk1L28/TfHCZZ1igrI/AAAAAAAADiM/ssOQj2nwQrk/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="268" src="http://1.bp.blogspot.com/-S51PaPk1L28/TfHCZZ1igrI/AAAAAAAADiM/ssOQj2nwQrk/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μετά την ολοκλήρωση της διαδικασίας, ο καινούργιος λογαριασμός θα εμφανιστεί στο &lt;/span&gt;OU&lt;span lang="el-GR"&gt; μέσα στο οποίο αρχικά ξεκινήσαμε την διαδικασία.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-w-ExrS1fAoE/TfHCpgCHllI/AAAAAAAADiQ/lP7tTzQ3y-U/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://4.bp.blogspot.com/-w-ExrS1fAoE/TfHCpgCHllI/AAAAAAAADiQ/lP7tTzQ3y-U/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε περίπτωση που χρειαστεί να συμπληρώσουμε ή να αλλάξουμε κάποια στοιχεία στο λογαριασμό του χρήστη τότε δεν έχουμε παρά να κάνουμε δεξί κλικ επάνω στον λογαριασμό και να επιλέξουμε &lt;/span&gt;properties&lt;span lang="el-GR"&gt;. Με αυτή την επιλογή μας θα βρεθούμε μπροστά σε ένα παράθυρο με πολλαπλές καρτέλες που η κάθε μια αναφέρεται σε ιδιότητες διαφορετικών τεχνολογιών. Η καρτέλα όλως που μας ενδιαφέρει για την διαχείριση ενός απλού λογαριασμού χρήστη είναι αυτή με το όνομα &lt;/span&gt;Account&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-AP19ZfsmMu0/TfHCw8XkIsI/AAAAAAAADiU/sA1AKbgokts/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="230" src="http://1.bp.blogspot.com/-AP19ZfsmMu0/TfHCw8XkIsI/AAAAAAAADiU/sA1AKbgokts/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Sj1shAfRuCk/TfHC1B4c2QI/AAAAAAAADiY/zopOgKgCPRQ/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-Sj1shAfRuCk/TfHC1B4c2QI/AAAAAAAADiY/zopOgKgCPRQ/s320/pic9.jpg" width="249" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Όπως βλέπουμε υπάρχουν αρκετές επιλογές με τις οποίες μπορούμε να περιορίσουμε τις δυνατότητες του χρήστη και κατά συνέπεια να αυξήσουμε την ασφάλεια του δικτύου μας. Ας δώσουμε όμως τους ορισμούς για τις ποιο χρήσιμες και συνηθισμένες από αυτές. Οι επιλογές που δεν αναφέρονται παραμένουν απενεργοποιημένες και σπάνια έως και καθόλου δεν τις χρησιμοποιούμε σε απλά σενάρια κατασκευής δικτύων.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Logon&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Hours&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Πατώντας επάνω στο συγκεκριμένο κουμπί μπορούμε να ρυθμίσουμε τις ώρες και τις ημέρες της εβδομάδας που επιτρέπουμε στον χρήστη να ενωθεί στο δίκτυο. Στην παρακάτω εικόνα βλέπετε έναν τυπικό περιορισμό χρήστη στον οποίο επιτρέπεται η πρόσβαση στο δίκτυο μόνο από Δευτέρα έως Παρασκευή από τις 8 το πρωί μέχρι τις 5 το απόγευμα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-EwyvJjEla6w/TfHC-hHw_GI/AAAAAAAADic/JcUeklEFEDY/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-9fGdi8y3pik/TfHDF6A-vXI/AAAAAAAADig/5rRVr5zCmsw/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-9fGdi8y3pik/TfHDF6A-vXI/AAAAAAAADig/5rRVr5zCmsw/s320/pic10.jpg" width="248" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-EwyvJjEla6w/TfHC-hHw_GI/AAAAAAAADic/JcUeklEFEDY/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-o1pZg97zdYk/TfHDLIIrc_I/AAAAAAAADik/htEfIrhm3Wk/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="197" src="http://1.bp.blogspot.com/-o1pZg97zdYk/TfHDLIIrc_I/AAAAAAAADik/htEfIrhm3Wk/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Log&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;on&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;to&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Εδώ περιορίζουμε τον χρήστη να μπορεί να συνδεθεί στο δίκτυο δια μέσου μόνο ενός συγκεκριμένου υπολογιστή. Χωρίς αυτό τον περιορισμό, ο χρήστης με το όνομα του λογαριασμού του και με τον κωδικό πρόσβασης που του δώσαμε μπορεί να συνδεθεί από οποιονδήποτε υπολογιστή στο δίκτυο του &lt;/span&gt;domain&lt;span lang="el-GR"&gt;. Για να τον περιορίσουμε, γράφουμε το όνομα ή ονόματα των υπολογιστών δια μέσω των οποίον επιτρέπουμε την ένωση στο δίκτυο και πατάμε το κουμπί &lt;/span&gt;add&lt;span lang="el-GR"&gt; για να προστεθούν στην λίστα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-w6mvn0DlgwM/TfHDZWc3kRI/AAAAAAAADio/y2sBFIGwmKU/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-w6mvn0DlgwM/TfHDZWc3kRI/AAAAAAAADio/y2sBFIGwmKU/s320/pic12.jpg" width="250" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-XpK-FSojFJY/TfHDdrsGbuI/AAAAAAAADis/lmv571kQUV8/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-XpK-FSojFJY/TfHDdrsGbuI/AAAAAAAADis/lmv571kQUV8/s320/pic13.jpg" width="291" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Unlock&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;account&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Υπάρχουν πολιτικές ασφάλειας στα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;Server&lt;span lang="el-GR"&gt; οι οποίες έχουν την δυνατότητα να κλειδώνουν τον λογαριασμό ενός χρήστη εάν δεν εισάγει επιτυχώς το όνομα και το κωδικό πρόσβασης. Συνήθως δίνουμε τρεις ευκαιρίες στον χρήστη. Εάν λοιπόν ο λογαριασμός κλειδώσει, θα πρέπει να έρθουμε σε αυτή την καρτέλα και να βγάλουμε το τσεκ από την αντίστοιχη επιλογή.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;User&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;must&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;change&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;password&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;at&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;next&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;logon&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Ενεργοποιούμε αυτή την επιλογή εάν θέλουμε να δώσουμε στον χρήστη το δικαίωμα, την πρώτη φορά που θα συνδεθεί, να αλλάξει τον κωδικό πρόσβασης.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;User&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;cannot&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;change&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;password&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Χρησιμοποιούμε αυτή την επιλογή όταν έχουμε πολλούς χρήστες που συνδέονται στο δίκτυο με τον ίδιο λογαριασμό και δεν θέλουμε να αλλάξει ο κωδικός πρόσβασης. Μια άλλη χρήση αυτής της επιλογής είναι όταν δεν θέλουμε να αλλάξει ο κωδικός πρόσβασης για λογαριασμούς που αφορούν &lt;/span&gt;services&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Password&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;never&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;expires&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Ενεργοποιούμε αυτή την επιλογή όταν δεν θέλουμε ποτέ να λήξει ο κωδικός πρόσβασης του λογαριασμού.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Store&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;password&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;using&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;reversible&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;encryption&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Κάθε φορά που δίνουμε έναν κωδικό πρόσβασης για ένα λογαριασμό, αυτός αποθηκεύεται μέσα στο &lt;/span&gt;active&lt;span lang="el-GR"&gt; &lt;/span&gt;directory&lt;span lang="el-GR"&gt; σε κρυπτογραφημένη μορφή και εκτός από το ίδιο το &lt;/span&gt;active&lt;span lang="el-GR"&gt; &lt;/span&gt;directory&lt;span lang="el-GR"&gt; δεν μπορεί να διαβαστεί ξανά από καμία εφαρμογή. Αυτή η επιλογή δεν πρέπει να ενεργοποιείται γιατί αδυνατίζει το επίπεδο ασφάλειας του λογαριασμού. Ο μόνο λόγος που θα είναι απαραίτητη η ενεργοποίηση αυτής της επιλογής είναι όταν υπάρχει κάποια εφαρμογή στο δίκτυο που χρειάζεται να γνωρίζει τους κωδικούς πρόσβασης. Για να το πούμε με πιο απλά λόγια, εάν ενεργοποιήσετε την επιλογή (χωρίς να είναι ανάγκη) τότε οι κωδικοί χάνουν την κρυπτογράφηση τους και είναι ισότιμοι με απλούς κωδικούς γραμμένους σε ένα απλό αρχείο σε &lt;/span&gt;text&lt;span lang="el-GR"&gt; &lt;/span&gt;format&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Account&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;is&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;disabled&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Με αυτή την επιλογή μπορούμε να απενεργοποιήσουμε έναν λογαριασμό.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;Smart&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;card&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;is&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;required&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;for&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;interactive&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;logon&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt;: Έξυπνες κάρτες (&lt;/span&gt;smart&lt;span lang="el-GR"&gt; &lt;/span&gt;cards&lt;span lang="el-GR"&gt;) ή οποιοδήποτε άλλη εξωτερική συσκευή (συνδεδεμένη με το &lt;/span&gt;active&lt;span lang="el-GR"&gt; &lt;/span&gt;directory&lt;span lang="el-GR"&gt;) που αποθηκεύει πληροφορίες για τον χρήστη μπορεί να συμμετέχει στην διαδικασία επιβεβαίωσης του λογαριασμού του κατά την είσοδο του στο δίκτυο. Εάν δεν έχετε τέτοιες εξωτερικές συσκευές δεν είναι ανάγκη να ενεργοποιήσετε αυτή την επιλογή. Συνήθως αυτές οι συσκευές προσθέτουν περαιτέρω ασφάλεια στο δίκτυο.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &amp;nbsp;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;&lt;u&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail-Kassapoglou@hotmail.com&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &amp;nbsp;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-7262327115798541652?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/7262327115798541652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=7262327115798541652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/7262327115798541652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/7262327115798541652'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/windows-server-2008-lesson-3-creating.html' title='WINDOWS SERVER 2008 Lesson 3 - Creating Users'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-OlUNDTeNEwY/TfHBuELOW2I/AAAAAAAADh0/3q8U2GzPBnE/s72-c/windows_2008_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-3543356949786635838</id><published>2011-06-10T00:01:00.000-07:00</published><updated>2011-06-10T00:01:13.422-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WINDOWS SERVER 2008'/><title type='text'>WINDOWS SERVER 2008 Lesson 2 - Installing Active Directory Services</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-HsD2Yz49CTg/TfG9S4Tr-zI/AAAAAAAADgE/SeQEN08aBiU/s1600/windows_2008_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-HsD2Yz49CTg/TfG9S4Tr-zI/AAAAAAAADgE/SeQEN08aBiU/s1600/windows_2008_logo.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο σημερινό μάθημα θα συγκεντρωθούμε στην δημιουργία του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; για ένα &lt;/span&gt;domain&lt;span lang="el-GR"&gt; το οποίο θα υποστηρίζεται από έναν μόνο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; &lt;/span&gt;controller&lt;span lang="el-GR"&gt;. Αυτό είναι το πιο απλό σενάριο που μπορεί να υπάρξει σε ένα δίκτυο το οποίο αποτελείται από &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; προϊόντα – δηλαδή να έχουμε έναν υπολογιστή που θα έχει τον ρόλο του &lt;/span&gt;server&lt;span lang="el-GR"&gt; στον οποίο έχουμε ενεργοποιήσει το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; ρόλο.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; &lt;/span&gt;Services&lt;span lang="el-GR"&gt; (&lt;/span&gt;AD&lt;span lang="el-GR"&gt; &lt;/span&gt;DS&lt;span lang="el-GR"&gt;) έχει σαν κύριο ρόλο του την αναγνώριση της ταυτότητας οποιουδήποτε χρήστη, υπολογιστή ή υπηρεσία προσπαθεί να αποκτήσει πρόσβαση στο δίκτυο μας. Εάν η αναγνώριση δεν είναι επιτυχής τότε η πρόσβαση δεν είναι δυνατή. Εάν όμως τα στοιχεία επιβεβαιωθούν τότε το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; θα δώσει περιορισμένη και ελεγχόμενη πρόσβαση στους πόρους του δικτύου με βάση τους κανόνες που έχει ορίσει ο &lt;/span&gt;Administrator&lt;span lang="el-GR"&gt;. Η ικανότητα του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; να ελέγχει την ταυτότητα και το είδος της πρόσβασης ονομάζεται &lt;/span&gt;IDA&lt;span lang="el-GR"&gt; (&lt;/span&gt;Identity&lt;span lang="el-GR"&gt; &lt;/span&gt;and&lt;span lang="el-GR"&gt; &lt;/span&gt;Access&lt;span lang="el-GR"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Για να μπορέσει το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; να αναγνωρίσει με επιτυχία την ταυτότητα του χρήστη, του υπολογιστή ή της υπηρεσίας αποθηκεύει πληροφορίες όπως το όνομα του χρήστη (&lt;/span&gt;username&lt;span lang="el-GR"&gt;), την μοναδική του αριθμό σε όλο το δίκτυο (&lt;/span&gt;SID&lt;span lang="el-GR"&gt;), και τον κωδικό πρόσβασης του (&lt;/span&gt;password&lt;span lang="el-GR"&gt;). Οπότε μια πρώτη ευθύνη που έχει το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; είναι να αποθηκεύει τις ταυτότητες τον αντικείμενων με ασφαλή τρόπο. Για αυτό άλλωστε και ονομάζεται πολλές φορές &lt;/span&gt;directory&lt;span lang="el-GR"&gt; ή &lt;/span&gt;identity&lt;span lang="el-GR"&gt; &lt;/span&gt;store&lt;span lang="el-GR"&gt;. Ο υπολογιστής στον οποίο έχει ενεργοποιηθεί ο ρόλος του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; και κατά συνέπεια διαφυλάσσει τις ταυτότητες ονομάζεται &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Controller&lt;span lang="el-GR"&gt;. Όταν τώρα ο χρήστης προσπαθήσει να αποκτήσει πρόσβαση στο δίκτυο, δίνοντας το &lt;/span&gt;username&lt;span lang="el-GR"&gt; και το &lt;/span&gt;password&lt;span lang="el-GR"&gt;, τα στοιχεία του θα επιβεβαιωθούν με αυτά που ήδη κατέχει το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt;. Αυτή είναι η διαδικασία επιβεβαίωσης της ταυτότητας του χρήστη ονομάζεται &lt;/span&gt;authentication&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Η διαδικασία επιβεβαίωσης της ταυτότητας του χρήστη, στηρίζεται σε ένα πρωτόκολλο που ονομάζεται &lt;/span&gt;Kerberos&lt;span lang="el-GR"&gt;. Το συγκεκριμένο πρωτόκολλο έχει αναλάβει να πιστοποιεί την ταυτότητα του χρήστη και να του καταχωρεί την άδεια πρόσβασης στο δίκτυο. Η διαδικασία αυτή είναι εντελώς αόρατη στον χρήστη. Απλά είναι χρήσιμο ακόμα και στα πρώτα αυτά μαθήματα να εξοικειωθείτε με κάποιες βασικές έννοιες.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Δύο ακόμα σημαντικές εργασίες με τις οποίες ασχολείται το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; είναι το είδος πρόσβασης που αποκτάει ο χρήστης στους πόρους τους συστήματος όσο και η παρακολούθηση τους. Με άλλα λόγια κάθε χρήστης από την στιγμή που αποκτάει πρόσβαση στο σύστημα μπορεί να αποκτήσει περιορισμένη πρόσβαση στους πόρους τους συστήματος που στηρίζονται σε κάποιους κανόνες ασφαλείας. Δηλαδή σε κάθε διαθέσιμο πόρο (&lt;/span&gt;resource&lt;span lang="el-GR"&gt;) ο &lt;/span&gt;Administrator&lt;span lang="el-GR"&gt; έχει ορίσει ποιος χρήστη και με τι είδος πρόσβασης μπορεί να τον χρησιμοποιήσει. Όταν ο χρήστης πάει να χρησιμοποιήσει το πόρο οι κανόνες θα εφαρμοστούν επάνω στον λογαριασμό του και η πρόσβαση θα είναι ελεγχόμενη. Εάν τώρα θέλουμε να παρακολουθήσουμε το πότε κάποιος χρήστης χρησιμοποίησε ή άλλαξε πόρους του δικτύου τότε η δυνατότητα παρακολούθησης (&lt;/span&gt;audit&lt;span lang="el-GR"&gt; &lt;/span&gt;trail&lt;span lang="el-GR"&gt;) είναι διαθέσιμη.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Υπάρχουν αρκετές ακόμα έννοιες και ορισμοί που θα μάθουμε κατά την διάρκεια των μαθημάτων μας, αλλά το πιο κύριο από όλα είναι να ενεργοποιήσουμε σωστά το ρόλο του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; στον &lt;/span&gt;server&lt;span lang="el-GR"&gt; μας και να εξηγήσουμε τα βασικά του στοιχεία. Ας δούμε λοιπόν αναλυτικά τα βήματα:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Σαν πρώτο βήμα, πατάμε το κουμπί &lt;/span&gt;START&lt;span lang="el-GR"&gt;, μετά επιλέγουμε &lt;/span&gt;Administrative&lt;span lang="el-GR"&gt; &lt;/span&gt;Tools&lt;span lang="el-GR"&gt; και τέλος επιλέγουμε &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Manager&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-9qDG4RmRNJs/TfG9kuERkaI/AAAAAAAADgI/rgxy9ii-MqU/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-9qDG4RmRNJs/TfG9kuERkaI/AAAAAAAADgI/rgxy9ii-MqU/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Από την λίστα των κατηγοριών που θα εμφανιστούν στα αριστερά της οθόνης μας, επιλέγουμε &lt;/span&gt;Roles&lt;span lang="el-GR"&gt; και από τις εμφανιζόμενες επιλογές που θα εμφανιστούν στα δεξιά της οθόνης μας (κάτω από τμήμα &lt;/span&gt;Roles&lt;span lang="el-GR"&gt; &lt;/span&gt;Summary&lt;span lang="el-GR"&gt;) επιλέγουμε &lt;/span&gt;Add&lt;span lang="el-GR"&gt; &lt;/span&gt;Roles&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-R9ah_KUmxYo/TfG9sVTZkbI/AAAAAAAADgM/VOBRJqTJD3g/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-R9ah_KUmxYo/TfG9sVTZkbI/AAAAAAAADgM/VOBRJqTJD3g/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο πρώτο παράθυρο που θα εμφανιστεί με το όνομα &lt;/span&gt;Before&lt;span lang="el-GR"&gt; &lt;/span&gt;You&lt;span lang="el-GR"&gt; &lt;/span&gt;Begin&lt;span lang="el-GR"&gt; πατήστε &lt;/span&gt;Next&lt;span lang="el-GR"&gt; να μεταφερθείτε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-TvS8a-4lvxg/TfG90ypxTFI/AAAAAAAADgQ/a9ud_RqkHlc/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-TvS8a-4lvxg/TfG90ypxTFI/AAAAAAAADgQ/a9ud_RqkHlc/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Από τους ρόλους που θα εμφανιστούν επιλέγουμε &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Services&lt;span lang="el-GR"&gt; και μετά πατάμε το κουμπί &lt;/span&gt;Next&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-TttS0i2Tlr4/TfG-AikZPgI/AAAAAAAADgU/42Qz-rpQ_mo/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-TttS0i2Tlr4/TfG-AikZPgI/AAAAAAAADgU/42Qz-rpQ_mo/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο παράθυρο που θα εμφανιστεί απλά λαμβάνουμε πληροφορίες για την λειτουργία του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt;. Απλά πατάμε το κουμπί &lt;/span&gt;Next&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-7-XuVZuDHyM/TfG-NyNiYKI/AAAAAAAADgY/Kn_8U2ULaHg/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="243" src="http://1.bp.blogspot.com/-7-XuVZuDHyM/TfG-NyNiYKI/AAAAAAAADgY/Kn_8U2ULaHg/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το σημείο λαμβάνουμε δύο πολύ σημαντικές πληροφορίες. Η πρώτη είναι ότι θα χρειαστεί να γίνει επανεκκίνηση μετά την εγκατάσταση του ρόλου και η δεύτερη ότι θα χρειαστεί επίσης να τρέξουμε την εντολή &lt;/span&gt;dcpromo&lt;span lang="el-GR"&gt;.&lt;/span&gt;exe&lt;span lang="el-GR"&gt;. Αυτό το δεύτερο βήμα είναι απαραίτητο γιατί θα πρέπει να δώσουμε έξτρα πληροφορίες όπως το όνομα του &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; το οποίο θέλουμε να δημιουργήσουμε. Όταν έχετε διαβάσει τις ενημερώσεις που εμφανίζονται στο παράθυρο πατάτε το &lt;/span&gt;Install&lt;span lang="el-GR"&gt; κουμπί.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-OjD7hoQ729g/TfG-Uv7HgnI/AAAAAAAADgc/K8z66ETpjz0/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-OjD7hoQ729g/TfG-Uv7HgnI/AAAAAAAADgc/K8z66ETpjz0/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το βήμα απλά περιμένουμε να ολοκληρωθεί η εγκατάσταση του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Services&lt;span lang="el-GR"&gt; ρόλου.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-TLh1drj3xKw/TfG-ccbcQrI/AAAAAAAADgg/4J5YtygAb4A/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-TLh1drj3xKw/TfG-ccbcQrI/AAAAAAAADgg/4J5YtygAb4A/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μετά το τέλος της εγκατάστασης, θα δείτε το μήνυμα &lt;/span&gt;Installation&lt;span lang="el-GR"&gt; &lt;/span&gt;succeeded&lt;span lang="el-GR"&gt; και απλά πατήστε το &lt;/span&gt;Close&lt;span lang="el-GR"&gt; κουμπί.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-YhGxu8cCQ1o/TfG-kxRBc1I/AAAAAAAADgk/2Va_235pZ2M/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-YhGxu8cCQ1o/TfG-kxRBc1I/AAAAAAAADgk/2Va_235pZ2M/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μετά την ολοκλήρωση της εγκατάστασης του ρόλου, η οθόνη σας θα γυρίσει πίσω στο κεντρικό μενού των ρόλων όπου εκεί θα παρατηρήσετε ότι υπάρχει ένα κόκκινο Χ σύμβολο που φανερώνει ένα μήνυμα λάθους. Εάν πατήσουμε επάνω του με το ποντίκι μας θα μας μεταφέρει αυτόματα στο &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Services&lt;span lang="el-GR"&gt; τομέα στον οποίο λαμβάνουμε για άλλη μια φορά το μήνυμα ότι θα πρέπει να τρέξουμε την εντολή &lt;/span&gt;dcpromo&lt;span lang="el-GR"&gt;.&lt;/span&gt;exe&lt;span lang="el-GR"&gt; για να ολοκληρωθεί η δημιουργία του καινούργιου &lt;/span&gt;Domain&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-J_2uI_R78LU/TfG-s4WApdI/AAAAAAAADgo/9u_hBztXmyk/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-J_2uI_R78LU/TfG-s4WApdI/AAAAAAAADgo/9u_hBztXmyk/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-2UzrubHrN-w/TfG-zRY-OPI/AAAAAAAADgs/pUNJ1wzaA_c/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-2UzrubHrN-w/TfG-zRY-OPI/AAAAAAAADgs/pUNJ1wzaA_c/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το σημείο μπορούμε απλά να κλείσουμε όλα τα παράθυρα που έχουμε ανοιχτά στην οθόνη μας, να πατήσουμε το &lt;/span&gt;Start&lt;span lang="el-GR"&gt; κουμπί (κάτω αριστερά στην οθόνη μας) και να επιλέξουμε το &lt;/span&gt;Command&lt;span lang="el-GR"&gt; &lt;/span&gt;Prompt&lt;span lang="el-GR"&gt; πρόγραμμα που βρίσκεται στην εμφανιζόμενη λίστα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-qh7BSgHBzic/TfG-8ceUUzI/AAAAAAAADgw/KqxSLfsT3qg/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-qh7BSgHBzic/TfG-8ceUUzI/AAAAAAAADgw/KqxSLfsT3qg/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Γράφουμε την εντολή &lt;/span&gt;dcpromo&lt;span lang="el-GR"&gt;.&lt;/span&gt;exe&lt;span lang="el-GR"&gt; και πατάμε &lt;/span&gt;ENTER&lt;span lang="el-GR"&gt; στο πληκτρολόγιο μας για να ολοκληρώσουμε την δημιουργία του &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; για την υποτιθέμενη εταιρεία μας. Εάν ο ρόλος του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; δεν ήταν ήδη εγκαταστημένος και ερχόμασταν απευθείας σε αυτό το βήμα και γράφαμε την &lt;/span&gt;dcpromo&lt;span lang="el-GR"&gt;.&lt;/span&gt;exe&lt;span lang="el-GR"&gt; εντολή τότε ο ρόλος πάλι θα γινόταν εγκατάσταση αυτόματα και μετά η &lt;/span&gt;dcpromo&lt;span lang="el-GR"&gt;.&lt;/span&gt;exe&lt;span lang="el-GR"&gt; εντολή θα συνέχιζε με τα δικά της βήματα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-47FIOQbBzWs/TfG_DwFAknI/AAAAAAAADg0/6qD_KsyTgZY/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="157" src="http://4.bp.blogspot.com/-47FIOQbBzWs/TfG_DwFAknI/AAAAAAAADg0/6qD_KsyTgZY/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Το πρώτο πα&lt;/span&gt;&lt;span lang="el-GR"&gt;ράθυρο που εμφανίζεται μας δίνει την δυνατότητα να επιλέξουμε ανάμεσα σε απλή εγκατάσταση και προχωρημένη εγκατάσταση. Εμείς επιλέγουμε την απλή εγκατάσταση για αυτό και απλά πατάμε το κουμπί &lt;/span&gt;Next&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα χωρίς να επιλέξουμε τίποτα άλλο.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-7xsQ3ch2slU/TfG_L3K6YTI/AAAAAAAADg4/9xMXOXb_BmY/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://1.bp.blogspot.com/-7xsQ3ch2slU/TfG_L3K6YTI/AAAAAAAADg4/9xMXOXb_BmY/s320/pic13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το παράθυρο δέχεστε ακόμα μια προειδοποίηση για το γεγονός ότι ο &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;Server&lt;span lang="el-GR"&gt; έχει πολύ διαφορετικό όσο και ανεπτυγμένο σύστημα κρυπτογράφησης και ασφάλειας κάτι που δύσκολα μπορεί να καταλάβουν παλαιότερα λειτουργικά συστήματα όπως &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;XP&lt;span lang="el-GR"&gt;. Οπότε σας ενημερώνει ότι υπάρχει περίπτωση αν δεν χρησιμοποιήσετε &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Vista&lt;span lang="el-GR"&gt; ή &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; 7 να μην μπορείτε να ενωθείτε στο &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; και κατά συνέπεια στο δίκτυο. &lt;/span&gt;Αφού διαβάσετε το μήνυμα πατάτε το κουμπί Next.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-G_Vgml-EA3U/TfG_Ucd_acI/AAAAAAAADg8/WQuVJZJLcqk/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://3.bp.blogspot.com/-G_Vgml-EA3U/TfG_Ucd_acI/AAAAAAAADg8/WQuVJZJLcqk/s320/pic14.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Το &lt;/span&gt;FOREST&lt;span lang="el-GR"&gt; ορίζει τα όρια ασφάλειας του δικτύου μας. Έξω από το &lt;/span&gt;FOREST&lt;span lang="el-GR"&gt; δεν μπορεί να γίνει αντιγραφή (&lt;/span&gt;replication&lt;span lang="el-GR"&gt;) κανένας κατάλογος (&lt;/span&gt;directory&lt;span lang="el-GR"&gt;) με τα αντικείμενα που περιλαμβάνει όπως &lt;/span&gt;users&lt;span lang="el-GR"&gt; ή &lt;/span&gt;computres&lt;span lang="el-GR"&gt;. Μέσα στο &lt;/span&gt;FOREST&lt;span lang="el-GR"&gt; μπορούν να υπάρξουν ένα ή και περισσότερα &lt;/span&gt;domains&lt;span lang="el-GR"&gt;. ΤΟ πρώτο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; που θα δημιουργηθεί είναι αυτό που στηρίζει και όλο το &lt;/span&gt;FOREST&lt;span lang="el-GR"&gt; για αυτό και ονομάζεται &lt;/span&gt;forest&lt;span lang="el-GR"&gt; &lt;/span&gt;root&lt;span lang="el-GR"&gt; &lt;/span&gt;domain&lt;span lang="el-GR"&gt;. Μέσα στο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; μπορούμε να κάνουμε συγκεκριμένη διαχείριση των μονάδων που περιέχει όπως να παρέχουμε ασφάλεια στους χρήστες, να αντιγράφουμε τον κατάλογο του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; σε ένα ή περισσότερους &lt;/span&gt;servers&lt;span lang="el-GR"&gt; κτλ. Οπότε, από την στιγμή που δεν προυπάρχει κανένα άλλο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; ή &lt;/span&gt;forest&lt;span lang="el-GR"&gt; σε ένα δίκτυο, τότε το πρώτο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; είναι αυτό που ταυτόχρονα δημιουργεί και στηρίζει ολόκληρο το &lt;/span&gt;forest&lt;span lang="el-GR"&gt;. &lt;/span&gt;Επιλέγουμε την δεύτερη επιλογή και πατάμε το κουμπί Next.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-v3RgDHa2LOQ/TfG_buApehI/AAAAAAAADhA/QSF-U3IzkyM/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://2.bp.blogspot.com/-v3RgDHa2LOQ/TfG_buApehI/AAAAAAAADhA/QSF-U3IzkyM/s320/pic15.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το βήμα θα δώσουμε όνομα στο &lt;/span&gt;Domain&lt;span lang="el-GR"&gt;. Συνήθως δίνουμε το όνομα της εταιρείας μας και μια κατάληξη .&lt;/span&gt;com&lt;span lang="el-GR"&gt;, .&lt;/span&gt;org&lt;span lang="el-GR"&gt; ή οτιδήποτε άλλη επίσημα αναγνωρίσιμη για να μπορεί να ανταποκρίνεται και στις ανάγκες αργότερα του Ίντερνετ και &lt;/span&gt;email&lt;span lang="el-GR"&gt;. Στο δικό μας παράδειγμα το ονομάζω &lt;/span&gt;freelessons&lt;span lang="el-GR"&gt;.&lt;/span&gt;org&lt;span lang="el-GR"&gt;. Εσείς μπορείτε να δώσετε οποιοδήποτε όνομα. &lt;/span&gt;Όταν τελειώσετε αυτή την διαδικασία πατήστε το κουμπί Next.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-8eou4i-Krdg/TfG_kmKGGII/AAAAAAAADhE/hn3s2-4nr-k/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://1.bp.blogspot.com/-8eou4i-Krdg/TfG_kmKGGII/AAAAAAAADhE/hn3s2-4nr-k/s320/pic16.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Ακόμα μια σημαντική επιλογή είναι αυτή του &lt;/span&gt;Functional&lt;span lang="el-GR"&gt; &lt;/span&gt;Level&lt;span lang="el-GR"&gt;. Εάν έχουμε παλαιότερα &lt;/span&gt;server&lt;span lang="el-GR"&gt; &lt;/span&gt;operating&lt;span lang="el-GR"&gt; &lt;/span&gt;systems&lt;span lang="el-GR"&gt; ήδη στο δίκτυο μας τότε καλό είναι να επιλέξουμε &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; 2000 ή &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2003 &lt;/span&gt;functional&lt;span lang="el-GR"&gt; &lt;/span&gt;level&lt;span lang="el-GR"&gt; για να μπορεί ο καινούργιος &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Controller&lt;span lang="el-GR"&gt; που στήνουμε να μιλάει και με τα ήδη υπάρχον συστήματα. Το τίμημα σε αυτή την επιλογή είναι ότι δεν θα μπορέσουμε να χρησιμοποιήσουμε τον &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 με όλα του τα χαρακτηριστικά ασφαλείας ενεργοποιημένα ειδάλλως δεν θα μπορεί να επικοινωνεί με τους άλλους &lt;/span&gt;servers&lt;span lang="el-GR"&gt;. Εάν πάλι είμαστε σίγουροι ότι όλα μας τα συστήματα είτε είναι &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 είτε θα αναβαθμιστούν σε &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; 2008 τότε η τελευταία επιλογή είναι η καλύτερη γιατί θα έχετε στα χέρια σας όλες τις επιλογές ασφαλείας του λειτουργικού συστήματος ενεργοποιημένες. Αυτό που πρέπει να θυμάστε είναι ότι το &lt;/span&gt;Functional&lt;span lang="el-GR"&gt; &lt;/span&gt;Level&lt;span lang="el-GR"&gt; καθορίζει την έκδοση (&lt;/span&gt;versions&lt;span lang="el-GR"&gt;) του λειτουργικού συστήματος που επιτρέπεται να ενωθεί στον &lt;/span&gt;server&lt;span lang="el-GR"&gt;. Επίσης μπορούμε ανά πάσα στιγμή να αυξήσουμε το &lt;/span&gt;Function&lt;span lang="el-GR"&gt; &lt;/span&gt;Level&lt;span lang="el-GR"&gt; αργότερα, δεν μπορούμε όμως ποτέ να πάμε πίσω. Οπότε δώστε λίγη προσοχή σε αυτή την επιλογή σας. Στο δικό μας παράδειγμα επιλέγουμε &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 και πατάμε το κουμπί &lt;/span&gt;Next&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-NXo3POC-QbY/TfG_teP6shI/AAAAAAAADhI/PnG4UC6L9Pg/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://1.bp.blogspot.com/-NXo3POC-QbY/TfG_teP6shI/AAAAAAAADhI/PnG4UC6L9Pg/s320/pic17.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Η επιλογή του &lt;/span&gt;DNS&lt;span lang="el-GR"&gt; είναι ήδη προεπιλεγμένη γιατί το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; λειτουργεί σε συνεργασία με το &lt;/span&gt;DNS&lt;span lang="el-GR"&gt; &lt;/span&gt;service&lt;span lang="el-GR"&gt;. Το &lt;/span&gt;DNS&lt;span lang="el-GR"&gt; κάνει την επίλυση ονομάτων (&lt;/span&gt;hostnames&lt;span lang="el-GR"&gt;) σε ηλεκτρονικές διευθύνσεις (&lt;/span&gt;IPs&lt;span lang="el-GR"&gt;). Κάθε φορά που ένας χρήστης προσπαθεί να βρει ένα πόρο (&lt;/span&gt;resource&lt;span lang="el-GR"&gt;) στο δίκτυο ρωτάει το &lt;/span&gt;DNS&lt;span lang="el-GR"&gt; πρώτα να ανακαλύψει την ηλεκτρονική του διεύθυνση και μετά μεταφέρεται στο επιθυμητό σημείο. Οπότε ταυτόχρονα με το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; ενεργοποιείται και το &lt;/span&gt;DNS&lt;span lang="el-GR"&gt; &lt;/span&gt;Service&lt;span lang="el-GR"&gt;. Επίσης, ο πρώτος &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Controller&lt;span lang="el-GR"&gt; (δηλαδή ο υπολογιστής επάνω στον οποίο είναι εγκαταστημένο το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt;) δεν μπορεί να έχει την ιδιότητα να είναι &lt;/span&gt;read&lt;span lang="el-GR"&gt;-&lt;/span&gt;only&lt;span lang="el-GR"&gt; αφού θα πρέπει να δημιουργηθούν καινούργιοι λογαριασμοί χρηστών αμέσως μετά την δημιουργία του. Τέλος επειδή δημιουργούμε το πρώτο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; στο &lt;/span&gt;forest&lt;span lang="el-GR"&gt;, αυτό το &lt;/span&gt;domain&lt;span lang="el-GR"&gt; θα έχει και τον ρόλο του &lt;/span&gt;Global&lt;span lang="el-GR"&gt; &lt;/span&gt;Catalog&lt;span lang="el-GR"&gt;, δηλαδή θα αναγνωρίζει όλα τα στοιχεία που θα δημιουργηθούν μέσα σε οποιοδήποτε άλλο &lt;/span&gt;domain&lt;span lang="el-GR"&gt; δημιουργηθεί μέσα στο ίδιο &lt;/span&gt;forest&lt;span lang="el-GR"&gt;. &lt;/span&gt;Πατάμε το κουμπί Next για να συνεχίσουμε.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-1EV2bO3KRaI/TfG_0zkwEZI/AAAAAAAADhM/nRNmD9guVrM/s1600/pic18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="303" src="http://1.bp.blogspot.com/-1EV2bO3KRaI/TfG_0zkwEZI/AAAAAAAADhM/nRNmD9guVrM/s320/pic18.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μην ανησυχήσετε αν λάβετε το πιο κάτω μήνυμα. Πατήστε &lt;/span&gt;YES&lt;span lang="el-GR"&gt; για να συνεχίσετε στο επόμενο παράθυρο.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-QZ4ptdKW9RM/TfHANI3LB6I/AAAAAAAADhQ/uJR4wJEqgyY/s1600/pic19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://4.bp.blogspot.com/-QZ4ptdKW9RM/TfHANI3LB6I/AAAAAAAADhQ/uJR4wJEqgyY/s320/pic19.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Δεχόμαστε τις προκαθορισμένες τοποθεσίες για το που θα εγκατασταθεί το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; (είναι το όνομα &lt;/span&gt;NTDS&lt;span lang="el-GR"&gt;) και το σημείο στο οποίο θα αποθηκευτούν οι κανόνες ασφαλείας που θα δημιουργήσουμε αργότερα (&lt;/span&gt;SYSVOL&lt;span lang="el-GR"&gt;). &lt;/span&gt;Απλά τα δεχόμαστε και πατάμε Next.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Jkp59LKP_XA/TfHAYS7jpkI/AAAAAAAADhU/QSEVqK7ecfA/s1600/pic20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://2.bp.blogspot.com/-Jkp59LKP_XA/TfHAYS7jpkI/AAAAAAAADhU/QSEVqK7ecfA/s320/pic20.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;nbsp; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε περίπτωση που υπάρχει πρόβλημα με το &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; και θα πρέπει να το επισκευάσετε θα σας ζητηθεί ο κωδικός πρόσβασης που θα γράψετε σε αυτό το βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-tHjOU8lr2CQ/TfHAfCU6JGI/AAAAAAAADhY/0vDsSNmbaAU/s1600/pic21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="303" src="http://3.bp.blogspot.com/-tHjOU8lr2CQ/TfHAfCU6JGI/AAAAAAAADhY/0vDsSNmbaAU/s320/pic21.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αυτό είναι το τελευταίο παράθυρο πριν αρχίσει η διαδικασία ολοκλήρωσης του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt;. Το παράθυρο μας παρουσιάζει μια σύντομη περίληψη των επιλογών μας. Εάν δεν έχουμε κάνει κανένα λάθος και συμφωνούμε με όλα πατάμε το κουμπί &lt;/span&gt;Next&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-4HTX6rONCKY/TfHAlqKW4aI/AAAAAAAADhc/5z5XXYUawgY/s1600/pic22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://1.bp.blogspot.com/-4HTX6rONCKY/TfHAlqKW4aI/AAAAAAAADhc/5z5XXYUawgY/s320/pic22.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-MhSVDNtLkBo/TfHAq9mLg0I/AAAAAAAADhg/xIDYlkuLk38/s1600/pic23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="303" src="http://4.bp.blogspot.com/-MhSVDNtLkBo/TfHAq9mLg0I/AAAAAAAADhg/xIDYlkuLk38/s320/pic23.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το τελευταίο βήμα απλά επιβεβαιωνόμαστε για την επιτυχής εγκατάσταση του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; ρόλου όπως και του &lt;/span&gt;DNS&lt;span lang="el-GR"&gt;. Πατάμε το κουμπί &lt;/span&gt;FINISH&lt;span lang="el-GR"&gt; και δεχόμαστε να ξεκινήσουμε τον &lt;/span&gt;Server&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-1NjyrCLFK-8/TfHAzNHXbmI/AAAAAAAADhk/MUJBtfHxBvU/s1600/pic24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://3.bp.blogspot.com/-1NjyrCLFK-8/TfHAzNHXbmI/AAAAAAAADhk/MUJBtfHxBvU/s320/pic24.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-suXXTiHYwBU/TfHA2YfUb9I/AAAAAAAADho/AQ0cuE36Vn0/s1600/pic25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="123" src="http://2.bp.blogspot.com/-suXXTiHYwBU/TfHA2YfUb9I/AAAAAAAADho/AQ0cuE36Vn0/s320/pic25.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μετά την επανεκκίνηση του συστήματος, μπορούμε να βεβαιώσουμε την λειτουργία του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt;, πηγαίνοντας στα &lt;/span&gt;Administrative&lt;span lang="el-GR"&gt; &lt;/span&gt;Tools&lt;span lang="el-GR"&gt; και επιλέγοντας &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; &lt;/span&gt;Users&lt;span lang="el-GR"&gt; &lt;/span&gt;and&lt;span lang="el-GR"&gt; &lt;/span&gt;Computers&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-k8OCmmUkM-Y/TfHA8oQesKI/AAAAAAAADhs/4jpv4kXU4g0/s1600/pic26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="238" src="http://1.bp.blogspot.com/-k8OCmmUkM-Y/TfHA8oQesKI/AAAAAAAADhs/4jpv4kXU4g0/s320/pic26.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-QEGSL4F0a2Q/TfHBBF79wDI/AAAAAAAADhw/QcO8V5jkzKw/s1600/pic27.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-QEGSL4F0a2Q/TfHBBF79wDI/AAAAAAAADhw/QcO8V5jkzKw/s320/pic27.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Εδώ ολοκληρώθηκε το μάθημα εγκατάστασης του &lt;/span&gt;Active&lt;span lang="el-GR"&gt; &lt;/span&gt;Directory&lt;span lang="el-GR"&gt; ρόλου σε έναν υπολογιστή ο οποίος τώρα έχει αναλάβει το ρόλου του &lt;/span&gt;Domain&lt;span lang="el-GR"&gt; &lt;/span&gt;Controller&lt;span lang="el-GR"&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Michail&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;-&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Kassapoglou&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;@&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;hotmail.com&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-3543356949786635838?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/3543356949786635838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=3543356949786635838' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/3543356949786635838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/3543356949786635838'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/windows-server-2008-lesson-2-installing.html' title='WINDOWS SERVER 2008 Lesson 2 - Installing Active Directory Services'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-HsD2Yz49CTg/TfG9S4Tr-zI/AAAAAAAADgE/SeQEN08aBiU/s72-c/windows_2008_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-2953396650106621784</id><published>2011-06-09T16:31:00.000-07:00</published><updated>2011-06-09T16:31:27.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WINDOWS SERVER 2008'/><title type='text'>WINDOWS SERVER 2008  Lesson 1 - Installation</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Rd4SrG9r03g/TfFUvjVS_GI/AAAAAAAADeY/TAdqgzxRpe0/s1600/windows_2008_logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-Rd4SrG9r03g/TfFUvjVS_GI/AAAAAAAADeY/TAdqgzxRpe0/s1600/windows_2008_logo.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στην σημερινή ενότητα θα μιλήσουμε για τις καινούργιες δυνατότητες που προστέθηκαν στα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 σε σύγκριση με τα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2003 και θα δείξουμε αναλυτικά τα βήματα εγκατάστασης του συγκεκριμένου λειτουργικού συστήματος εξηγώντας κάθε επιλογή μας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.19in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Σε γενικές γραμμές τα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 έχουν απορροφήσει και ενσωματώσει τα καλύτερα χαρακτηριστικά από τις τεχνολογίες του &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2003 και των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Vista&lt;span lang="el-GR"&gt;. Επίσης το &lt;/span&gt;kernel&lt;span lang="el-GR"&gt; έχει ξαναγραφτεί από την αρχή έτσι ώστε να μπορεί να ανταποκριθεί στις συνεχώς αυξανόμενες απαιτήσεις τις αγοράς όσο αφορά την διαχείριση του συστήματος και την ασφάλεια του. Ο κύριος σκοπός των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 είναι να διαβεβαιώσει τον &lt;/span&gt;administrator&lt;span lang="el-GR"&gt; ότι μπορεί να “αντέξει” με επιτυχία οποιοδήποτε μέγεθος δικτύου όποιες και αν είναι οι απατήσεις του. Για αυτό το λόγο έχουν δημιουργηθεί διάφορες εκδόσεις για την κάλυψη οποιουδήποτε σεναρίου δικτυακής υποδομής.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Η &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; λοιπόν προσφέρει τέσσερις βασικές εκδόσεις του συγκεκριμένου λειτουργικού συστήματος με τις εξής ονομασίες:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Windows&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Server&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Standard&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Αυτή είναι η βασική έκδοση του λειτουργικού η οποία εκτός από τις βασικές υπηρεσίες (όπως &lt;/span&gt;DNS&lt;span lang="el-GR"&gt;, &lt;/span&gt;DHCP&lt;span lang="el-GR"&gt; και &lt;/span&gt;TCP&lt;span lang="el-GR"&gt;/&lt;/span&gt;IP&lt;span lang="el-GR"&gt;), προσφέρει πολλές βελτιώσεις για &lt;/span&gt;storage&lt;span lang="el-GR"&gt; &lt;/span&gt;area&lt;span lang="el-GR"&gt; netwοrks (&lt;/span&gt;SANs&lt;span lang="el-GR"&gt;), βελτιωμένα &lt;/span&gt;services&lt;span lang="el-GR"&gt; πρόσβασης στο σύστημα και δυνατότητα δημιουργίας και συντήρησης ενός &lt;/span&gt;distributed&lt;span lang="el-GR"&gt; &lt;/span&gt;bile&lt;span lang="el-GR"&gt; &lt;/span&gt;system&lt;span lang="el-GR"&gt; (&lt;/span&gt;DFS&lt;span lang="el-GR"&gt;) &lt;/span&gt;namespace&lt;span lang="el-GR"&gt;. Η συγκεκριμένη έκδοση υποστηρίζει μέχρι 4 &lt;/span&gt;GB&lt;span lang="el-GR"&gt; μνήμης σε 32-&lt;/span&gt;bit&lt;span lang="el-GR"&gt; συστήματα και 32 &lt;/span&gt;GB&lt;span lang="el-GR"&gt; μνήμης σε 64-&lt;/span&gt;bit&lt;span lang="el-GR"&gt; συστήματα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Windows&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Server&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Enterprise&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Εδώ έχουμε διαθέσιμα όλα τα χαρακτηριστικά που αναφέρονται στην &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;Standard&lt;span lang="el-GR"&gt; έκδοση με επιπρόσθετη όμως υποστήριξη για &lt;/span&gt;clustering&lt;span lang="el-GR"&gt; (μέχρι 8-&lt;/span&gt;node&lt;span lang="el-GR"&gt; &lt;/span&gt;clusters&lt;span lang="el-GR"&gt;) και &lt;/span&gt;very&lt;span lang="el-GR"&gt; &lt;/span&gt;large&lt;span lang="el-GR"&gt; &lt;/span&gt;memory&lt;span lang="el-GR"&gt; (&lt;/span&gt;VLM&lt;span lang="el-GR"&gt;) που φτάνει μέχρι τα 32 &lt;/span&gt;GB&lt;span lang="el-GR"&gt; σε 32-&lt;/span&gt;bit&lt;span lang="el-GR"&gt; συστήματα και 2 ΤΒ σε 64-&lt;/span&gt;bit&lt;span lang="el-GR"&gt; συστήματα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Windows&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Server&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Datacenter&lt;/b&gt;&lt;b&gt;&lt;span lang="el-GR"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Αυτή η έκδοση έχει δημιουργηθεί για περιβάλλοντα όπου χρειάζεται ισχυρή υπολογιστή δύναμη και για αυτό υποστηρίζει από 8 μέχρι 64 &lt;/span&gt;CPU&lt;span lang="el-GR"&gt;, &lt;/span&gt;clustering&lt;span lang="el-GR"&gt; μέχρι 8 &lt;/span&gt;nodes&lt;span lang="el-GR"&gt; και μνήμη από 64 &lt;/span&gt;GB&lt;span lang="el-GR"&gt; (σε 32-&lt;/span&gt;bit&lt;span lang="el-GR"&gt;) έως 2 ΤΒ (σε 64-&lt;/span&gt;bit&lt;span lang="el-GR"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Windows Web Server 2008:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Αυτή η έκδοση υποστηρίζει μέχρι 2 &lt;/span&gt;GB&lt;span lang="el-GR"&gt; μνήμης και δύο &lt;/span&gt;CPU&lt;span lang="el-GR"&gt; και είναι είναι σχεδιασμένη αποκλειστικά για να τρέχει &lt;/span&gt;WEB&lt;span lang="el-GR"&gt; εφαρμογές για το &lt;/span&gt;Internet&lt;span lang="el-GR"&gt; αλλά και για το εσωτερικό δίκτυο της εταιρείας (&lt;/span&gt;intranet&lt;span lang="el-GR"&gt;). Υποστηρίζει όλες τις τελευταίες τεχνολογίες της &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; όπως &lt;/span&gt;Internet&lt;span lang="el-GR"&gt; &lt;/span&gt;Information&lt;span lang="el-GR"&gt; &lt;/span&gt;Services&lt;span lang="el-GR"&gt; (&lt;/span&gt;IIS&lt;span lang="el-GR"&gt;) 7.0, &lt;/span&gt;ASP&lt;span lang="el-GR"&gt;.&lt;/span&gt;NET&lt;span lang="el-GR"&gt; και το &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; .&lt;/span&gt;NET&lt;span lang="el-GR"&gt; &lt;/span&gt;Framework&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Σε μελλοντικά μαθήματα θα αναλύσουμε περισσότερα και σε μεγαλύτερο βάθος χαρακτηριστικά των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008. Για τώρα όμως ποιο πολύ σημασία έχει να εγκαταστήσουμε το συγκεκριμένο λειτουργικό και να δούμε μια προς μια τις επιλογές με τις οποίες θα βρεθούμε αντιμέτωποι. Στο σημερινό μάθημα θα δούμε τα βήματα εγκατάστασης των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 σε έναν &lt;/span&gt;server&lt;span lang="el-GR"&gt; υπολογιστή στον οποίο δεν υπάρχει εγκατεστημένο κανένα άλλο λειτουργικό. Σε περίπτωση που θέλετε να κάνετε &lt;/span&gt;upgrade&lt;span lang="el-GR"&gt; από &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2003 σε &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 καλό είναι να συμβουλευτείτε το &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Catalog&lt;span lang="el-GR"&gt; &lt;/span&gt;Web&lt;span lang="el-GR"&gt; &lt;/span&gt;site&lt;span lang="el-GR"&gt; (&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;u&gt;&lt;a href="http://www.windowsservercatalog.com/"&gt;&lt;span lang="el-GR"&gt;http://www.windowsservercatalog.com/&lt;/span&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;span lang="el-GR"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Σαν πρώτο βήμα, με το &lt;/span&gt;CD&lt;span lang="el-GR"&gt; των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2003 στο &lt;/span&gt;CD&lt;span lang="el-GR"&gt;-&lt;/span&gt;drive&lt;span lang="el-GR"&gt; ξεκινάμε τον υπολογιστή. Το πρώτο παράθυρο που μας εμφανίζεται ζητάει να επιλέξουμε την γλώσσα με την οποία θα εμφανίζονται τα μενού, την ώρα και τον τρόπο εμφάνισης συμβόλων και αριθμών όπως και την προκαθορισμένη γλώσσα την οποία θα χρησιμοποιούμε για να πληκτρολογούμε εντολές και κείμενο. Αφού επιλέξουμε τις επιθυμητές επιλογές πατάμε το κουμπί &lt;/span&gt;NEXT.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-cMJWFyplTAA/TfFVC2--MpI/AAAAAAAADec/wcNPHmzYkMc/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-cMJWFyplTAA/TfFVC2--MpI/AAAAAAAADec/wcNPHmzYkMc/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο επόμενο παράθυρο απλά μας ζητείται να επισημοποιήσουμε την διαδικασία εγκατάστασης των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008. Κάνουμε κλικ λοιπόν στην μοναδική επιλογή που εμφανίζεται με τον τίτλο &lt;/span&gt;Install&lt;span lang="el-GR"&gt; &lt;/span&gt;Now&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-iQZvywb910o/TfFVKr9DC1I/AAAAAAAADeg/bkg45ifUZYI/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-iQZvywb910o/TfFVKr9DC1I/AAAAAAAADeg/bkg45ifUZYI/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Επειδή για το σημερινό μάθημα χρησιμοποιώ το &lt;/span&gt;DVD&lt;span lang="el-GR"&gt; της &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; στο οποίο υπάρχουν τρία λειτουργικά συστήματα, επιλέγουμε το &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008 &lt;/span&gt;Enterprise&lt;span lang="el-GR"&gt;. Στην δική σας εγκατάσταση αυτή η επιλογή δεν θα υπάρχει μια και στο &lt;/span&gt;DVD&lt;span lang="el-GR"&gt; που θα χρησιμοποιήσετε θα υπάρχει ένα μόνο λειτουργικό προς εγκατάσταση. Πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-IOLTYs8FyDc/TfFVRHDpQ_I/AAAAAAAADek/qKQPJRRGdXM/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-IOLTYs8FyDc/TfFVRHDpQ_I/AAAAAAAADek/qKQPJRRGdXM/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αφού συμφωνήσουμε με τους όρους χρήσης του λειτουργικού (τσεκάροντας την επιλογή &lt;/span&gt;I&lt;span lang="el-GR"&gt; &lt;/span&gt;accept&lt;span lang="el-GR"&gt; &lt;/span&gt;the&lt;span lang="el-GR"&gt; &lt;/span&gt;license&lt;span lang="el-GR"&gt; &lt;/span&gt;terms&lt;span lang="el-GR"&gt;), πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-d7Ugl0wSz_Q/TfFVXym6RLI/AAAAAAAADeo/w4mZYgzNwfc/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-d7Ugl0wSz_Q/TfFVXym6RLI/AAAAAAAADeo/w4mZYgzNwfc/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Επειδή η δική μας εγκατάσταση είναι εξ ολοκλήρου από την αρχή, η επιλογή του &lt;/span&gt;upgrade&lt;span lang="el-GR"&gt; είναι απενεργοποιημένη. Οπότε επιλέγουμε την δεύτερη επιλογή και συνεχίζουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-woGBf_fdXIs/TfFVe6Gq86I/AAAAAAAADes/e9NyzzOLAew/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-woGBf_fdXIs/TfFVe6Gq86I/AAAAAAAADes/e9NyzzOLAew/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Υπάρχει μόνο ένας σκληρός δίσκος στον δικό μου υπολογιστή στον οποίο κάνω την εγκατάσταση και που ο οποίος αναγνωρίζεται από τα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008. Πατώντας το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt;, δεχόμαστε το γεγονός ότι τα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; θα χρησιμοποιήσουν ολόκληρο το μέγεθος του σκληρού δίσκου για την εγκατάσταση και χρήση του λειτουργικού.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eFaDyBU9kx8/TfFVlkRVFZI/AAAAAAAADew/-K7AFM7hLuw/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-eFaDyBU9kx8/TfFVlkRVFZI/AAAAAAAADew/-K7AFM7hLuw/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αρχίζει η μεταφορά αρχείων από το &lt;/span&gt;DVD&lt;span lang="el-GR"&gt; στο σκληρό δίσκο και η πρώτη φάση της εγκατάστασης. Το σύστημα θα κάνει αρκετές φορές επανεκκίνηση μέχρι να βρεθούμε μπροστά στην οθόνη που μας ζητάει να ορίσουμε τον κωδικό πρόσβασης για το σύστημα. Ορίστε λοιπόν ένα κωδικό πρόσβασης για τον &lt;/span&gt;Administrator&lt;span lang="el-GR"&gt; και πατήστε το κουμπί με το βέλος.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zjazlWGfP7I/TfFVr4y4J-I/AAAAAAAADe0/j2i8oHfyDdo/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/-zjazlWGfP7I/TfFVr4y4J-I/AAAAAAAADe0/j2i8oHfyDdo/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-YrjdEdodNt8/TfFVwZ4MBaI/AAAAAAAADe4/TwOgnuUYhx8/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/-YrjdEdodNt8/TfFVwZ4MBaI/AAAAAAAADe4/TwOgnuUYhx8/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Το παράθυρο που εμφανίζεται σε αυτό το στάδιο μας δίνει την δυνατότητα να τροποποιήσουμε το περιβάλλον του &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008. Δεν θα ασχοληθούμε πολύ με αυτές τις επιλογές σε αυτό το σημείο γιατί θα επιστρέψουμε πίσω σε αυτό το μενού πολλές φορές σε μελλοντικά μαθήματα. Σαν μικρή εισαγωγή όμως αξίζει να αναφέρουμε ότι πατώντας τα &lt;/span&gt;links&lt;span lang="el-GR"&gt; (τίτλοι δίπλα από τα εικονίδια) μας ανοίγει το κατάλληλο παράθυρο τροποποίησης μικρών λειτουργιών του &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Σε έναν &lt;/span&gt;Server&lt;span lang="el-GR"&gt;, η ποιο σημαντική ρύθμιση είναι η ηλεκτρονική διεύθυνση (&lt;/span&gt;IP&lt;span lang="el-GR"&gt;) την οποία έχει η κάρτα δικτύου. Το &lt;/span&gt;IP&lt;span lang="el-GR"&gt; του &lt;/span&gt;Server&lt;span lang="el-GR"&gt; πρέπει να είναι μόνιμο (στατικό) έτσι ώστε οι χρήστες που θα ενωθούν επάνω του πάντα να μπορούν να βρίσκουν τις διαθέσιμες υπηρεσίες που προσφέρει. Για να ορίσουμε λοιπόν μια μόνιμη &lt;/span&gt;IP&lt;span lang="el-GR"&gt; στο σύστημα μας, επιλέγουμε το &lt;/span&gt;Configure&lt;span lang="el-GR"&gt; &lt;/span&gt;networking&lt;span lang="el-GR"&gt; σαν πρώτο βήμα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-1CJQx2jhhgk/TfFV3FXdWcI/AAAAAAAADe8/Y2iFiB4kyoI/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://3.bp.blogspot.com/-1CJQx2jhhgk/TfFV3FXdWcI/AAAAAAAADe8/Y2iFiB4kyoI/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Υπάρχει μόνο μια συγκεκριμένη κάρτα δικτύου εγκατεστημένη στον &lt;/span&gt;Server&lt;span lang="el-GR"&gt; και η οποία εμφανίζεται. Κάνουμε λοιπόν διπλό κλικ επάνω στο εικονίδιο της κάρτας δικτύου να προχωρήσουμε στις ρυθμίσεις της.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-jAC7NL0sNDA/TfFV-U4wk6I/AAAAAAAADfA/1xHXg8YkmCw/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="241" src="http://4.bp.blogspot.com/-jAC7NL0sNDA/TfFV-U4wk6I/AAAAAAAADfA/1xHXg8YkmCw/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο νέο παράθυρο που θα εμφανιστεί, πατάμε το κουμπί &lt;/span&gt;Properties&lt;span lang="el-GR"&gt; και μετά επιλέγουμε &lt;/span&gt;Internet&lt;span lang="el-GR"&gt; &lt;/span&gt;Protocol&lt;span lang="el-GR"&gt; &lt;/span&gt;Version&lt;span lang="el-GR"&gt; 4 (&lt;/span&gt;TCP&lt;span lang="el-GR"&gt;/&lt;/span&gt;IPv&lt;span lang="el-GR"&gt;4) και πατάμε το κουμπί &lt;/span&gt;Properties&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-6SAxmAqZ_rc/TfFWFpPbQSI/AAAAAAAADfE/NnlE-HiVXKI/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://2.bp.blogspot.com/-6SAxmAqZ_rc/TfFWFpPbQSI/AAAAAAAADfE/NnlE-HiVXKI/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-7P0Xqm3cHOQ/TfFWKiIxJ0I/AAAAAAAADfI/ghs3hRjJ_P0/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="287" src="http://1.bp.blogspot.com/-7P0Xqm3cHOQ/TfFWKiIxJ0I/AAAAAAAADfI/ghs3hRjJ_P0/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Στις ρυθμίσεις τις κάρτας δικτύου, αλλάζουμε το Obtain an IP address automatically σε Use the following IP address. &lt;span lang="el-GR"&gt;Τα πεδία ξεκλειδώνουν, και μπορούμε να τοποθετήσουμε την δική μας στατική &lt;/span&gt;IP&lt;span lang="el-GR"&gt; για τον &lt;/span&gt;Server&lt;span lang="el-GR"&gt; μας. Εάν έχετε απορίες για τις επιλογές των &lt;/span&gt;IP&lt;span lang="el-GR"&gt;, σε μελλοντικό μάθημα θα αναλύσουμε λεπτομερειακά πως λειτουργούν και πως επιλέγονται σε ένα δίκτυο. Γράφουμε λοιπόν μια &lt;/span&gt;IP&lt;span lang="el-GR"&gt; της αρεσκείας μας και πατάμε ΟΚ σε αυτό το παράθυρο, και &lt;/span&gt;CLOSE&lt;span lang="el-GR"&gt; στα δύο επόμενα. Κλείνουμε το παράθυρο με το εικονίδιο της κάρτα δικτύου πατώντας στο Χ κουμπί επάνω δεξιά στην οθόνη σας.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-n7R8Ophtx7M/TfFWRoq1MfI/AAAAAAAADfM/TV78C3QHIUs/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-n7R8Ophtx7M/TfFWRoq1MfI/AAAAAAAADfM/TV78C3QHIUs/s320/pic13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Η δεύτερη σημαντική ρύθμιση σε έναν &lt;/span&gt;Server&lt;span lang="el-GR"&gt; είναι το όνομα με το οποίο μπορούν οι χρήστες να τον βρίσκουν στο δίκτυο. Αυτή η ρύθμιση γίνεται από το εικονίδιο &lt;/span&gt;Provide&lt;span lang="el-GR"&gt; &lt;/span&gt;computer&lt;span lang="el-GR"&gt; &lt;/span&gt;name&lt;span lang="el-GR"&gt; &lt;/span&gt;and&lt;span lang="el-GR"&gt; &lt;/span&gt;domain&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Y1v5OsTTBqk/TfFWYbCBuaI/AAAAAAAADfQ/jL1-dU3le_Q/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://2.bp.blogspot.com/-Y1v5OsTTBqk/TfFWYbCBuaI/AAAAAAAADfQ/jL1-dU3le_Q/s320/pic14.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Η διαδικασία της εγκατάστασης έχει ήδη αναθέσει ένα τυχαίο όνομα στον &lt;/span&gt;Server&lt;span lang="el-GR"&gt; που αποτελείται από αριθμούς και γράμματα. Ένα τέτοιο όνομα όμως δεν είναι εφικτό να το θυμάται κάποιος ούτε είναι λειτουργικό. Οπότε είναι απαραίτητο βήμα η αλλαγή του ονόματος του &lt;/span&gt;Server&lt;span lang="el-GR"&gt;. Κάνουμε κλικ επάνω στο κουμπί &lt;/span&gt;Change&lt;span lang="el-GR"&gt; για να ορίσουμε το καινούργιο όνομα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-avPlax8CcZA/TfFWfIENwoI/AAAAAAAADfU/8Y4wueERjcY/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-avPlax8CcZA/TfFWfIENwoI/AAAAAAAADfU/8Y4wueERjcY/s320/pic15.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αφού γράψουμε το καινούργιο όνομα, πατάμε το κουμπί ΟΚ στο παράθυρο για να μονιμοποιήσουμε την αλλαγή. Το σύστημα μας ενημερώνει ότι θα χρειαστεί να γίνει μια επανεκκίνηση στο σύστημα για να ολοκληρωθεί η διαδικασία αλλαγής ονόματος του &lt;/span&gt;server&lt;span lang="el-GR"&gt;. Δεχόμαστε την προειδοποίηση και πατάμε και εδώ το κουμπί ΟΚ.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-hUgowiynwkQ/TfFWlphdhJI/AAAAAAAADfY/TAYGQcpvKeA/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="241" src="http://2.bp.blogspot.com/-hUgowiynwkQ/TfFWlphdhJI/AAAAAAAADfY/TAYGQcpvKeA/s320/pic16.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-c3cvOkizXzM/TfFWqSx75cI/AAAAAAAADfc/7kommCs5ji0/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-c3cvOkizXzM/TfFWqSx75cI/AAAAAAAADfc/7kommCs5ji0/s320/pic17.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Η αλλαγή ήδη φαίνεται στο πρώτο τελευταίο ανοιχτό παράθυρο που ακόμα εμφανίζεται στην οθόνη μας. Πατάμε και εδώ το κουμπί &lt;/span&gt;CLOSE&lt;span lang="el-GR"&gt; για να μεταφερθούμε στο κύριο μέρος της διαδικασίας εγκατάστασης του &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-N4yPXxS9fgU/TfFWxTkc6JI/AAAAAAAADfg/GxcUjZfI1yE/s1600/pic18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/-N4yPXxS9fgU/TfFWxTkc6JI/AAAAAAAADfg/GxcUjZfI1yE/s320/pic18.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Επειδή σε αυτό το στάδιο δεν θέλουμε να κάνουμε επανεκκίνηση και να καθυστερούμε την διαδικασία εγκατάστασης, επιλέγουμε το &lt;/span&gt;Restart&lt;span lang="el-GR"&gt; &lt;/span&gt;Later&lt;span lang="el-GR"&gt; και συνεχίζουμε με την εγκατάσταση.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-UHNtuct5_0w/TfFW4qxDcvI/AAAAAAAADfk/JtdJFyoROac/s1600/pic19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-UHNtuct5_0w/TfFW4qxDcvI/AAAAAAAADfk/JtdJFyoROac/s320/pic19.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μετά την ολοκλήρωση των δύο αυτών σημαντικών βημάτων, ολοκληρώσαμε τον αριθμό των αναγκαίων ρυθμίσεων στις οποίες έπρεπε να επέμβουμε. Επιλέγουμε το τσεκ κουτάκι κάτω αριστερά στην οθόνη σας για να μην βγαίνει αυτό το παράθυρο κάθε φορά και έπειτα πατάμε το κουμπί &lt;/span&gt;CLOSE&lt;span lang="el-GR"&gt; για να γυρίσουμε στο κύριο μέρος της εγκατάστασης.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-y22EbGIiCDo/TfFW_2pNYJI/AAAAAAAADfo/tLQ0G8ZpfDI/s1600/pic20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-y22EbGIiCDo/TfFW_2pNYJI/AAAAAAAADfo/tLQ0G8ZpfDI/s320/pic20.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Η εγκατάσταση έχει ολοκληρωθεί και μια περίληψη των ρυθμίσεων εμφανίζεται στην οθόνη μας. Υπάρχει όμως μια προειδοποίηση που μας υπενθυμίζει ότι υπάρχει ακόμα ανάγκη να γίνει επανεκκίνηση στο σύστημα για να ολοκληρωθεί η αλλαγή του ονόματος. Επιλέγουμε τον σύνδεσμο &lt;/span&gt;Restart&lt;span lang="el-GR"&gt; και δεχόμαστε την επανεκκίνηση πατώντας το κουμπί &lt;/span&gt;YES&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-97x9z3rm1p8/TfFXGPoB-UI/AAAAAAAADfs/0N3i9UR5zok/s1600/pic21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="229" src="http://1.bp.blogspot.com/-97x9z3rm1p8/TfFXGPoB-UI/AAAAAAAADfs/0N3i9UR5zok/s320/pic21.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Μετά την επανεκκίνηση και την εισαγωγή του κωδικού πρόσβασης του &lt;/span&gt;Administrator&lt;span lang="el-GR"&gt; θα εμφανιστεί το σύστημα είναι σε πλήρη λειτουργία και θα μας εμφανιστεί η &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Manager&lt;span lang="el-GR"&gt; κονσόλα για να μας επιβεβαιώσει τις αλλαγές.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-0-PTGa-xwYY/TfFXL7Nq0XI/AAAAAAAADfw/pnCkuRytUSQ/s1600/pic22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/-0-PTGa-xwYY/TfFXL7Nq0XI/AAAAAAAADfw/pnCkuRytUSQ/s320/pic22.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Ug0SJsRiczw/TfFXPtVVdgI/AAAAAAAADf0/q7dyCFwbD7Q/s1600/pic23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-Ug0SJsRiczw/TfFXPtVVdgI/AAAAAAAADf0/q7dyCFwbD7Q/s320/pic23.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Για να μην εμφανίζεται η ίδια κονσόλα συνέχεια κάθε φορά που κάνετε &lt;/span&gt;logon&lt;span lang="el-GR"&gt; απλά τσεκάρουμε την επιλογή &lt;/span&gt;Do&lt;span lang="el-GR"&gt; &lt;/span&gt;not&lt;span lang="el-GR"&gt; &lt;/span&gt;show&lt;span lang="el-GR"&gt; &lt;/span&gt;me&lt;span lang="el-GR"&gt; &lt;/span&gt;this&lt;span lang="el-GR"&gt; &lt;/span&gt;console&lt;span lang="el-GR"&gt; &lt;/span&gt;at&lt;span lang="el-GR"&gt; &lt;/span&gt;logon&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Nglnep9CRM0/TfFXVREhp6I/AAAAAAAADf4/tVIzZWpQM0A/s1600/pic24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-Nglnep9CRM0/TfFXVREhp6I/AAAAAAAADf4/tVIzZWpQM0A/s320/pic24.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Για να κλείσουμε τον υπολογιστή, από το &lt;/span&gt;Start&lt;span lang="el-GR"&gt; κουμπί επιλέγουμε &lt;/span&gt;ShutDown&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-xyMordo5bwI/TfFXazpy9NI/AAAAAAAADf8/_ksiNYPUF7o/s1600/pic25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-xyMordo5bwI/TfFXazpy9NI/AAAAAAAADf8/_ksiNYPUF7o/s320/pic25.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Γράφουμε ένα σχόλιο στο πλαίσιο που ονομάζεται &lt;/span&gt;Comment&lt;span lang="el-GR"&gt; έτσι ώστε να ενεργοποιηθεί το &lt;/span&gt;OK&lt;span lang="el-GR"&gt; κουμπί.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-jmag4LYj544/TfFXgB-G77I/AAAAAAAADgA/-8EGm2D7NCU/s1600/pic26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-jmag4LYj544/TfFXgB-G77I/AAAAAAAADgA/-8EGm2D7NCU/s320/pic26.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Εδώ ολοκληρώνουμε την εγκατάσταση του λειτουργικού συστήματος &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; 2008. Ο υπολογιστής όμως στον οποίο είναι εγκαταστημένο το λειτουργικό σύστημα δεν μπορεί να έχει την συμπεριφορά ενός &lt;/span&gt;server&lt;span lang="el-GR"&gt; γιατί ακόμα δεν έχουμε ενεργοποιήσει κανένα από τα &lt;/span&gt;services&lt;span lang="el-GR"&gt; του. Αυτή η διαδικασία θα πραγματοποιηθεί από το επόμενο μάθημα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;&lt;u&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail-Kassapoglou@hotmail.com&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-2953396650106621784?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/2953396650106621784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=2953396650106621784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2953396650106621784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2953396650106621784'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/windows-server-2008-lesson-1.html' title='WINDOWS SERVER 2008  Lesson 1 - Installation'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Rd4SrG9r03g/TfFUvjVS_GI/AAAAAAAADeY/TAdqgzxRpe0/s72-c/windows_2008_logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-2499217307276159658</id><published>2011-06-08T05:12:00.001-07:00</published><updated>2011-06-08T05:12:45.886-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL SERVER 2008'/><title type='text'>SQL SERVER 2008 Lesson 5 - Working with NULL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Wf4FVFjGuYI/Te9FxkUtTRI/AAAAAAAADcM/Cs1Hk0QdbwE/s1600/sql2008logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="73" src="http://1.bp.blogspot.com/-Wf4FVFjGuYI/Te9FxkUtTRI/AAAAAAAADcM/Cs1Hk0QdbwE/s320/sql2008logo.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο σημερινό μάθημα θα αναφερθούμε στην ιδιότητα της χρήσης του &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; και πόσο προσεχτικοί πρέπει να είμαστε όταν αυτό περιέχεται σαν δεδομένο μέσα σε έναν πίνακα. Ο βασικός ορισμός του &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; είναι ότι αναφέρεται ή καλύτερα περιγράφει το κενό που υπάρχει σε μια στήλη κάποιας γραμμής δεδομένων, επειδή δεν έχουμε καταχωρήσει τίποτα. Ο λόγος είναι τις περισσότερες φορές ότι δεν ξέρουμε την πληροφορία εκείνη την στιγμή οπότε αφήνουμε κενό (χωρίς τιμή) το συγκεκριμένο στοιχείο. Αν και ο ορισμός είναι εύκολος στην διατύπωση του και ο αρχάριος προγραμματιστής μπορεί γρήγορα να τον κατανοήσει, στην πράξη όμως αποφέρει πολλά ανεπιθύμητα αποτελέσματα που πολλές φορές εκνευρίζουν τον χρήστη της βάσης.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Ας δούμε όμως πιο αναλυτικά το πρόβλημα μέσα από κάποια συγκεκριμένα &lt;/span&gt;queries&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-RBLR2UTyK40/Te9GDOpHplI/AAAAAAAADcQ/SOdvVMq6kec/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-RBLR2UTyK40/Te9GDOpHplI/AAAAAAAADcQ/SOdvVMq6kec/s320/pic1.jpg" width="276" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;Select ProductID, Name, ProductNumber&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;from Production.Product&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;Where Color = 'Black'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο πιο πάνω παράδειγμα ζητάμε να δούμε σαν αποτέλεσμα της αναζήτησης μας τις στήλες &lt;/span&gt;ProductID&lt;span lang="el-GR"&gt;, &lt;/span&gt;Name&lt;span lang="el-GR"&gt; και &lt;/span&gt;ProductNumber&lt;span lang="el-GR"&gt; από τον πίνακα &lt;/span&gt;Product&lt;span lang="el-GR"&gt; του σχήματος &lt;/span&gt;Production&lt;span lang="el-GR"&gt; όσα προϊόντα έχουν μαύρο χρώμα (&lt;/span&gt;Black&lt;span lang="el-GR"&gt;). Η συγκεκριμένη αναζήτηση θα μας επιστρέψει 93 γραμμές του πίνακα που καλύπτουν πλήρως την συνθήκη που δηλώσαμε.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-gdjaAl6iULQ/Te9GN15EMRI/AAAAAAAADcU/fTi9zQ4wBBM/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-gdjaAl6iULQ/Te9GN15EMRI/AAAAAAAADcU/fTi9zQ4wBBM/s320/pic2.jpg" width="276" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;Select ProductID, Name, ProductNumber&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;from Production.Product&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;Where Color != &lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;'Black'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο πιο πάνω παράδειγμα ζητάμε να δούμε σαν αποτέλεσμα της αναζήτησης μας τις στήλες &lt;/span&gt;ProductID&lt;span lang="el-GR"&gt;, &lt;/span&gt;Name&lt;span lang="el-GR"&gt; και &lt;/span&gt;ProductNumber&lt;span lang="el-GR"&gt; από τον πίνακα &lt;/span&gt;Product&lt;span lang="el-GR"&gt; του σχήματος &lt;/span&gt;Production&lt;span lang="el-GR"&gt; όσα προϊόντα δεν έχουν μαύρο χρώμα (&lt;/span&gt;Black&lt;span lang="el-GR"&gt;). Η συγκεκριμένη αναζήτηση θα μας επιστρέψει 163 γραμμές δεδομένων που όμως είναι λάθος αποτέλεσμα γιατί ο πραγματικός αριθμός των προϊόντων που δεν είναι μαύρα είναι 411. Σε τι οφείλεται αυτό το αποτέλεσμα? Οι γραμμές αποτελεσμάτων με &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; τιμές δεν μπορούν να βρεθούν από συνθήκες που απλά ψάχνουν για ανισότητα ή διάφορο αποτέλεσμα από κάποια συγκεκριμένη τιμή. Κάθε φορά που συγκρίνουμε μια τιμή &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; με τον διάφορο τελεστή ( != ) το αποτέλεσμα είναι &lt;/span&gt;UNKNOWN&lt;span lang="el-GR"&gt; που δεν είναι αριθμητικά συγκρίσιμο. Για να μπορούμε να ελέγχουμε για &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; τιμές θα πρέπει να χρησιμοποιήσουμε τον τελεστή &lt;/span&gt;IS&lt;span lang="el-GR"&gt; &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; ο οποίος μπορεί να αναγνωρίσει και να επιστρέψει τον πραγματικό αριθμό δεδομένων από ένα πίνακα. Το ποιο κάτω παράδειγμα δείχνει το βελτιωμένο &lt;/span&gt;query&lt;span lang="el-GR"&gt; που επιστρέφει 411 γραμμές δεδομένων που είναι και ο αληθινός αριθμός. Χρησιμοποιήσαμε τον τελεστή &lt;/span&gt;OR&lt;span lang="el-GR"&gt; που για πρώτο όρο ψάχνει όσες τιμές είναι &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; και σαν δεύτερο όρο ψάχνει τις τιμές που είναι διάφορες τις τιμής '&lt;/span&gt;Black&lt;span lang="el-GR"&gt;'.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-rLcN3u7BGg0/Te9GZ7lJuqI/AAAAAAAADcY/O0u46VVS9R0/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-rLcN3u7BGg0/Te9GZ7lJuqI/AAAAAAAADcY/O0u46VVS9R0/s320/pic3.jpg" width="275" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Συνήθως, όταν συγκρίνουμε δεδομένα μιας στήλης με κάποια συγκεκριμένη τιμή το αποτέλεσμα που επιστρέφεται είναι είτε &lt;/span&gt;TRUE&lt;span lang="el-GR"&gt; είτε &lt;/span&gt;FALSE&lt;span lang="el-GR"&gt;. Εάν η αξιολόγηση του αποτελέσματος έχει τιμή &lt;/span&gt;TRUE&lt;span lang="el-GR"&gt; τότε τα δεδομένα της συγκεκριμένης γραμμής θα εμφανιστούν στο αποτέλεσμα. Εάν το αποτέλεσμα της αξιολόγησης είναι &lt;/span&gt;FALSE&lt;span lang="el-GR"&gt; τότε η συγκεκριμένη γραμμή δεν θα συμμετέχει στο τελικό αποτέλεσμα. Όταν μια συνθήκη αξιολογείται σαν &lt;/span&gt;UNKNOWN&lt;span lang="el-GR"&gt; τότε πάλι η συγκεκριμένη γραμμή δεδομένων δεν θα εμφανιστεί στο αποτέλεσμα μας. Μπορούμε να φανταστούμε ότι ακούγεται παρόμοια περίπτωση με αυτή του &lt;/span&gt;FALSE&lt;span lang="el-GR"&gt; γιατί και οι δύο τιμές απορρίπτονται από το τελικό αποτέλεσμα. Αλλά υπάρχει και μια μεγάλη διαφορά ανάμεσα τους. Το αντίθετο του &lt;/span&gt;FALSE&lt;span lang="el-GR"&gt; είναι το &lt;/span&gt;TRUE&lt;span lang="el-GR"&gt; ενώ το αντίθετο του &lt;/span&gt;UNKNOWN&lt;span lang="el-GR"&gt; παραμένει &lt;/span&gt;UNKNOWN&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Οπότε η προτεινόμενη συμβουλή είναι να υπολογίζουμε τις &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; τιμές όταν αυτές βρίσκονται σαν δεδομένα στους πίνακες μας γιατί αν δεν το κάνουμε θα οδηγηθούμε σε λάθος&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="el-GR"&gt;αποτελέσματα. Η πιο πάνω ανάλυση δεν αφορούσε μόνο συνθήκες ισότητας ή διάφορο αλλά και συνθήκες ανισότητας. &lt;/span&gt; &lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Για να μπορέσουμε να βρούμε γρήγορα και αποτελεσματικά τον πραγματικό αριθμό γραμμών (&lt;/span&gt;rows&lt;span lang="el-GR"&gt;) ενός πίνακα, συμπεριλαμβανομένου και αυτών των στηλών με &lt;/span&gt;NULL&lt;span lang="el-GR"&gt; τιμές, χρησιμοποιούμε την &lt;/span&gt;COUNT&lt;span lang="el-GR"&gt; &lt;/span&gt;function&lt;span lang="el-GR"&gt;. Σαν &lt;/span&gt;function&lt;span lang="el-GR"&gt; ορίζουμε γενικότερα την εκτέλεση ενός ολοκληρωμένου έργου που κώδικας του και ο σκοπός του είναι ήδη προκαθορισμένα. Εμείς απλά σαν χρήστες μπορούμε να καλέσουμε το όνομα του &lt;/span&gt;function&lt;span lang="el-GR"&gt; και εκείνο να εκτελέσει το έργο του χωρίς να ενδιαφερόμαστε για τον κώδικα που εκτελεί η τον τρόπο που το εκτελεί. Η &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; έχει εφοδιάσει την βάση της με αρκετά &lt;/span&gt;functions&lt;span lang="el-GR"&gt; που μας βοηθάνε να εκτελέσουμε προκαθορισμένες πράξεις. Αργότερα θα μάθουμε να γράφουμε και εμείς τα δικά μας &lt;/span&gt;functions&lt;span lang="el-GR"&gt; για να έχουμε καλύτερο έλεγχο στην απόδοση του επιθυμητού αποτελέσματος. Το &lt;/span&gt;COUNT&lt;span lang="el-GR"&gt; &lt;/span&gt;function&lt;span lang="el-GR"&gt; λοιπόν μας δίνεται έτοιμο και καλώντας το μέσα σε ένα &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; αίτημα μπορούμε να βρούμε τον πραγματικό αριθμό γραμμών από τις οποίες αποτελείται ένας πίνακας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ubq6HFUkG9s/Te9GmJVxOiI/AAAAAAAADcc/YNcAM-0KILM/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-ubq6HFUkG9s/Te9GmJVxOiI/AAAAAAAADcc/YNcAM-0KILM/s320/pic4.jpg" width="264" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;select count(*)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;from&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;Production&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;Product&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο πιο πάνω παράδειγμα θέσαμε το σύμβολο * σαν παράμετρο στο &lt;/span&gt;COUNT&lt;span lang="el-GR"&gt; &lt;/span&gt;function&lt;span lang="el-GR"&gt; για να δηλώσουμε ότι θέλουμε να μετρήσουμε όλες τις γραμμές. Το αποτέλεσμα μας δείχνει τον αριθμό των γραμμών του πίνακα χωρίς να μας δείχνει τις ίδιες τις γραμμές με τα δεδομένα. Εάν θέλαμε να δούμε όλες τις γραμμές δεν είχαμε παρά να χρησιμοποιήσουμε την απλή εντολή &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; * που ήδη έχουμε μάθει από προηγούμενο μάθημα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Εάν τώρα είχαμε την ανάγκη να μάθουμε τον αριθμό των γραμμών μιας στήλης που περιέχει μόνο δεδομένα (χωρίς να υπολογίζονται τα NULL), τότε δεν είχαμε παρά να δώσουμε σαν παράμετρο στο &lt;/span&gt;COUNT&lt;span lang="el-GR"&gt; &lt;/span&gt;function&lt;span lang="el-GR"&gt; το όνομα της στήλης όπως αυτό δείχνει το επόμενο παράδειγμα που ακολουθεί.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-IB7n5ErQI7c/Te9GwfZtCbI/AAAAAAAADcg/tZjQduuURaU/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-IB7n5ErQI7c/Te9GwfZtCbI/AAAAAAAADcg/tZjQduuURaU/s320/pic5.jpg" width="263" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Τέλος, εάν θέλουμε να περιορίσουμε τον αριθμό των γραμμών που επιστρέφονται με ένα &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; αίτημα, θα μπορούσαμε να κάνουμε με το &lt;/span&gt;ROWCOUNT&lt;span lang="el-GR"&gt; &lt;/span&gt;function&lt;span lang="el-GR"&gt;. Με την δήλωση αυτού του &lt;/span&gt;function&lt;span lang="el-GR"&gt; μέσα στο αίτημα μας δεν βλέπουμε όλο το γκρουπ γραμμών στο αποτέλεσμα μας, αλλά απλά ένα δείγμα του που αποτελείται από τόσες γραμμές όσες έχουμε ορίσει.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-eTxRmHP21WE/Te9G2xkNBOI/AAAAAAAADck/BQjjaISpE38/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-eTxRmHP21WE/Te9G2xkNBOI/AAAAAAAADck/BQjjaISpE38/s320/pic6.jpg" width="264" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;set rowcount 5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;select *&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;from Production.Product&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο πιο πάνω παράδειγμα, ενώ στην πραγματικότητα επιστρέφεται όλος ο πίνακας, περιορίζουμε το αποτέλεσμα μας σε ένα δείγμα που αποτελείται από 5 μόνο γραμμές. Υπάρχει όμως ένα αξιοσημείωτο χαρακτηριστικό του συγκεκριμένου &lt;/span&gt;function&lt;span lang="el-GR"&gt;. Όταν το καλέσουμε, η λειτουργία του παραμένει και μετά το τέλος εκτέλεσης της εντολής. Οπότε είναι ανάγκη να αναιρέσουμε την επίδραση του, δίνοντας του την τιμή 0 εάν θέλουμε να λαμβάνουμε πάλι τον πραγματικό αριθμό γραμμών στην κονσόλα μας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-HJi7BflpzQY/Te9G9UO0jrI/AAAAAAAADco/BybsQG9cHwc/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-HJi7BflpzQY/Te9G9UO0jrI/AAAAAAAADco/BybsQG9cHwc/s320/pic7.jpg" width="263" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.02in; margin-top: 0.02in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;Michail&lt;span lang="el-GR"&gt;-&lt;/span&gt;Kassapoglou&lt;span lang="el-GR"&gt;@&lt;/span&gt;hotmail.com&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-2499217307276159658?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/2499217307276159658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=2499217307276159658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2499217307276159658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/2499217307276159658'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/sql-server-2008-lesson-5-working-with.html' title='SQL SERVER 2008 Lesson 5 - Working with NULL'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Wf4FVFjGuYI/Te9FxkUtTRI/AAAAAAAADcM/Cs1Hk0QdbwE/s72-c/sql2008logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-6737258607448492567</id><published>2011-06-08T05:12:00.000-07:00</published><updated>2011-06-08T05:12:25.247-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL SERVER 2008'/><title type='text'>SQL SERVER 2008 Lesson 4 - More on WHERE Clauses</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-GBvGEt7i1Fk/Te9Ad8jNpNI/AAAAAAAADbo/ZrpjR_fo2zo/s1600/sql2008logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="73" src="http://2.bp.blogspot.com/-GBvGEt7i1Fk/Te9Ad8jNpNI/AAAAAAAADbo/ZrpjR_fo2zo/s320/sql2008logo.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο σημερινό μάθημα θα συνεχίσουμε με την θεωρία μας όσο αφορά το φιλτράρισμα των δεδομένων πριν το τελικό αποτέλεσμα εμφανιστεί στην οθόνη μας. Οι τελεστές &lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt;AND&lt;/span&gt;&lt;/b&gt;&lt;span lang="el-GR"&gt; και &lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt;OR&lt;/span&gt;&lt;/b&gt;&lt;span lang="el-GR"&gt; βοηθάνε στην ανάπτυξη πολύπλοκων φίλτρων, ενώ για την δημιουργία φίλτρων στα οποία δεν γνωρίζουμε όλες τις πληροφορίες, ο τελεστής &lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt;LIKE&lt;/span&gt;&lt;/b&gt;&lt;span lang="el-GR"&gt; μας βοηθάει να ολοκληρώσουμε την &lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt;WHERE&lt;/span&gt;&lt;/b&gt;&lt;span lang="el-GR"&gt; εντολή με όσα στοιχεία μας είναι γνωστά. Τέλος, ο τελεστής &lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt;&lt;span lang="el-GR"&gt;ΙΝ&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang="el-GR"&gt; περιορίζει το αποτέλεσμα με βάση συγκεκριμένες τιμές. Ας δούμε όμως κάθε μια από αυτές τις περιπτώσεις ξεχωριστά.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Ο τελεστής &lt;/span&gt;AND&lt;span lang="el-GR"&gt; χρησιμοποιείται στην &lt;/span&gt;WHERE&lt;span lang="el-GR"&gt; εντολή όταν θέλουμε να συνδυάσουμε περισσότερες από μια συνθήκη στο ίδιο φίλτρο. Το &lt;/span&gt;AND&lt;span lang="el-GR"&gt; θα μας επιστρέψει κάποια γραμμή δεδομένων από τον πίνακα στον οποίο αναφέρεται εφόσον και οι δύο συνθήκες που συνδυάζει είναι &lt;/span&gt;true&lt;span lang="el-GR"&gt;. Εάν μια τουλάχιστον από τις συνθήκες είναι &lt;/span&gt;false&lt;span lang="el-GR"&gt; τότε το &lt;/span&gt;WHERE&lt;span lang="el-GR"&gt; θα προχωρήσει στην ανάγνωση της επόμενης γραμμής του πίνακα. Ας δούμε όμως ένα πιο συγκεκριμένο παράδειγμα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;SELECT EmployeeID,VacationHours&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;FROM HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;WHERE VacationHours BETWEEN 60 and 90&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;AND Title = 'Production Technician – WC50'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Το πιο πάνω &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;query&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; θα επιστρέψει τον αριθμό του εργαζόμενου και των αριθμό των ωρών αδείας που δικαιούται, εφόσον οι ώρες του είναι ανάμεσα στον αριθμό 60 και 90 αλλά και ταυτόχρονα να ισχύει ότι ο τίτλος εργασίας του είναι &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Production&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Technician&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; – &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WC&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;50. Εάν μία από τις δύο συνθήκες δεν ισχύει, τότε η συγκεκριμένη γραμμή δεδομένων του πίνακα δεν θα εμφανιστεί στο αποτέλεσμα μας. &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;To&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; με το συνδυασμό των δύο συνθηκών θα εφαρμοστεί σε όλες τις γραμμές του πίνακα με την ίδια λογική.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xZ425XSbb_M/Te9BCLOpjpI/AAAAAAAADbs/cv00wWrs91U/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-xZ425XSbb_M/Te9BCLOpjpI/AAAAAAAADbs/cv00wWrs91U/s320/pic1.jpg" width="264" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Ανάλογη λογική έχει και ο τελεστής &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;OR&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; με την διαφορά ότι είναι λίγο πιο χαλαρός με τις συνθήκες. Αυτό μεταφράζεται στο ότι απαιτεί μόνο η μία από τις δύο συνθήκες να ισχύει για κάθε γραμμή δεδομένων του πίνακα. Ας δούμε όμως το προηγούμενο παράδειγμα, τροποποιημένο για το &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;OR&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; τελεστή.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.19in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;SELECT EmployeeID,VacationHours&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;FROM HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;WHERE VacationHours BETWEEN 60 and 90&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2300dc;"&gt;OR Title = 'Production Technician – WC50'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Το πιο πάνω &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;query&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; θα επιστρέψει τον αριθμό του εργαζόμενου και των αριθμό των ωρών αδείας που δικαιούται, είτε οι ώρες του είναι ανάμεσα στον αριθμό 60 και 90, είτε ισχύει ότι ο τίτλος εργασίας του είναι &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Production&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Technician&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; – &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WC&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;50, είτε ισχύουν και οι δύο συνθήκες ταυτόχρονα. &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;To&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; με το συνδυασμό των δύο συνθηκών θα εφαρμοστεί σε όλες τις γραμμές του πίνακα με την ίδια λογική. Λογικό είναι να αναμένουμε ότι θα λάβουμε περισσότερα αποτελέσματα σε σύγκριση με το προηγούμενο παράδειγμα που έκανε χρήση του &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;AND&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; τελεστή.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ZCqdzGJbuOg/Te9BTV6RslI/AAAAAAAADbw/Aw4Cyyr1fl4/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-ZCqdzGJbuOg/Te9BTV6RslI/AAAAAAAADbw/Aw4Cyyr1fl4/s320/pic2.jpg" width="259" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Όταν θέλουμε να φιλτράρουμε τα δεδομένα μας με βάση κάποια λέξη, τότε στην &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; γραμμή του κώδικα μας ονομάζουμε την στήλη με βάση την οποία θα γίνει το φιλτράρισμα και την λέξη την οποία θα ψάξει στα δεδομένα. Για παράδειγμα &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;WHERE&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;Title&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; = '&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;Production&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;Technician&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt; – &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;WC&lt;/span&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;50'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;. Εάν όμως δεν ξέρουμε ολόκληρη την λέξη στην οποία στηρίζεται το φιλτράρισμα ή ψάξουμε για παρόμοιες σε γραφή λέξεις τότε μπορούμε να χρησιμοποιήσουμε τον τελεστή &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;LIKE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; αντί για το σύμβολο της ισότητας. Με το &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;LIKE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; μπορούμε να ψάξουμε για εκφράσεις που είτε αντιπροσωπεύουν αριθμούς είτε χαρακτήρες. Στην λέξη η οποία θα είναι το μέτρο σύγκρισης για το φιλτράρισμα μπορούμε να κάνουμε και χρήση των συμβόλων ( % ) και ( _ ) για να ορίσουμε τον αριθμό των χαρακτήρων τους οποίους ψάχνουμε. Ας&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;δούμε&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;όμως&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;μερικά&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;παραδείγματα&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;SELECT EmployeeID,Title,VacationHours&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;FROM HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;WHERE Title LIKE 'Production%'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0.19in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Στο πάνω &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;query&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; θα λάβουμε εκείνα τα δεδομένα που η τιμή της στήλης &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Title&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; αρχίζει στα σίγουρα από την λέξη &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Production&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; και μετά είτε ακολουθούν και άλλα σύμβολα είτε όχι. Το % αντιπροσωπεύει πολλούς χαρακτήρες. Εάν για παράδειγμα είχαμε γράψει '&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Pro&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;%' τότε ζητούσαμε εκείνα τα δεδομένα όπου ο τίτλος εργασίας ξεκινάει με τα τρία γράμματα &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Pro&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; και μετά μας είναι αδιάφορο για το πόσοι χαρακτήρες ακολουθούν.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-N929X38xg_k/Te9BqAMTiOI/AAAAAAAADb0/_V-GdJ4AKkc/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-N929X38xg_k/Te9BqAMTiOI/AAAAAAAADb0/_V-GdJ4AKkc/s320/pic3.jpg" width="256" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-06stv3wK7Tg/Te9BvoJ34iI/AAAAAAAADb4/Gj5pAxZPHf8/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-06stv3wK7Tg/Te9BvoJ34iI/AAAAAAAADb4/Gj5pAxZPHf8/s320/pic4.jpg" width="260" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Το σύμβολο του &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;underscore&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; ( _ ) αντιπροσωπεύει ένα χαρακτήρα. Για παράδειγμα, εάν είχαμε το φίλτρο &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Title&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; = '&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;M&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;_&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;r&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;&amp;amp;', αυτό θα αναζητούσε μόνο εκείνα τα δεδομένα τα οποία θα ξεκινούν με το κεφαλαίο γράμμα Μ, ακολουθεί ένας χαρακτήρας (οποιοσδήποτε και αν είναι), μετά θα υπάρχει το γράμμα &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;r&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; και αμέσως μετά μπορεί να υπάρχουν πολλοί χαρακτήρες(ή και κανένας – ο αριθμός δεν μας αφορά). Εάν είχαμε κάτι σαν &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Title&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; = '%&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;ar&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;%' αυτό θα σήμαινε ότι ψάχνουμε για εκείνους τους τίτλους εργασίας που κάπου στο όνομά τους περιέχουν τα γράμματα &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;ar&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; ανεξάρτητα από τον αριθμό των χαρακτήρων πριν και μετά από τους &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;ar&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; χαρακτήρες.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-DD9z0HO5-Pg/Te9B8iHAKDI/AAAAAAAADb8/Ft3xfpRwB0E/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-DD9z0HO5-Pg/Te9B8iHAKDI/AAAAAAAADb8/Ft3xfpRwB0E/s320/pic5.jpg" width="260" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Για να προχωρήσουμε λίγο περισσότερο την συζήτηση μας όσο αφορά το φιλτράρισμα, μπορούμε να αναφερθούμε και στην χρήση των [ ]. Όσοι χαρακτήρες βρίσκονται μέσα στα [ ] θα αποτελούν την αποκλειστική λίστα των χαρακτήρων που ψάχνουμε. Για παράδειγμα, εάν θέλαμε να βρούμε εκείνους τους εργαζόμενους για τους οποίους ο τίτλος εργασίας τους αρχίζει με την λέξη &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Production&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;, μετά υπάρχει ένα κενό και η δεύτερη λέξη θέλουμε να ξεκινάει αποκλειστικά είτε με το γράμμα &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;T&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; είτε με το γράμμα &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;S&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; τότε θα γράφαμε το εξής &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;query&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Xi54pYBGoW8/Te9CGN7blwI/AAAAAAAADcA/AcjEAC8JITs/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-Xi54pYBGoW8/Te9CGN7blwI/AAAAAAAADcA/AcjEAC8JITs/s320/pic6.jpg" width="260" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Με την ίδια λογική μπορούμε να χρησιμοποιήσουμε τα σύμβολα [ ] για να δηλώσουμε ένα εύρος αριθμών ή χαρακτήρων μέσα από τους οποία θα γίνουν οι επιλογές για τις λέξεις οι φράσεις που ψάχνουμε. Ας αλλάξουμε το προηγούμενο &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;query&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; για να ζητήσουμε εκείνες τις λέξεις που αρχίζουν με οποιοδήποτε γράμμα ανάμεσα στο &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;T&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; και στο &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;W&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-KuZz_gqYiuM/Te9Ec1qkdwI/AAAAAAAADcE/C2r4RVb6uXo/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-KuZz_gqYiuM/Te9Ec1qkdwI/AAAAAAAADcE/C2r4RVb6uXo/s320/pic7.jpg" width="258" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Σαν τελευταίο τελεστή (&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Operator&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;), θα αναφέρουμε την δυνατότητα του &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;IN&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;. Με το &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;IN&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; μπορούμε να περιορίσουμε την αναζήτηση μας ανάμεσα από μια συγκεκριμένη λίστα τιμών ή ονομάτων. Για παράδειγμα, η &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; συνθήκη &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;WHERE&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;EmployeeID&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;IN&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; (88, 89, 90) ψάχνει για εκείνους τους εργαζόμενους των οποίων οι αριθμοί εργασίας τους είναι 88, 89, ή 90.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-CbBtFCdQTwc/Te9ElZl2kqI/AAAAAAAADcI/VbtWMa0kQT8/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-CbBtFCdQTwc/Te9ElZl2kqI/AAAAAAAADcI/VbtWMa0kQT8/s320/pic8.jpg" width="260" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Michail&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;-&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Kassapoglou&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;@&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;hotmail.com&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-6737258607448492567?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/6737258607448492567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=6737258607448492567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6737258607448492567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6737258607448492567'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/sql-server-2008-lesson-4-more-on-where.html' title='SQL SERVER 2008 Lesson 4 - More on WHERE Clauses'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-GBvGEt7i1Fk/Te9Ad8jNpNI/AAAAAAAADbo/ZrpjR_fo2zo/s72-c/sql2008logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-8752186488165974501</id><published>2011-06-08T05:11:00.001-07:00</published><updated>2011-06-08T05:11:29.917-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL SERVER 2008'/><title type='text'>SQL SERVER 2008 Lesson 3 - WHERE Clause, BETWEEN Option</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-wkSo5vy0FFU/Te8-kJQWCuI/AAAAAAAADbI/PffrtEYZeeg/s1600/sql2008logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="73" src="http://4.bp.blogspot.com/-wkSo5vy0FFU/Te8-kJQWCuI/AAAAAAAADbI/PffrtEYZeeg/s320/sql2008logo.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο σημερινό μάθημα θα ασχοληθούμε με το φιλτράρισμα των δεδομένων τα οποία ζητάμε να εμφανιστούν στην οθόνη μας. Συνήθως ένας χρήστης απαιτεί από μια εφαρμογή να του εμφανιστούν κάποιες συγκεκριμένες γραμμές αποτελέσματος από έναν πίνακα σε μια δεδομένη στιγμή. Για παράδειγμα, αν υποθέσουμε ότι ένας πίνακας περιέχει όλες τις παραγγελίες από όλους του πελάτες, εμείς θα θέλαμε να δούμε μόνο εκείνες τις παραγγελίες που αναφέρονται σε έναν συγκεκριμένο πελάτη. Η εντολή &lt;/span&gt;WHERE&lt;span lang="el-GR"&gt; έχει δημιουργηθεί για αυτό ακριβώς το σκοπό – να φιλτράρει και να παρουσιάζει στο χρήστη εκείνες μόνο τις γραμμές δεδομένων που απαιτούνται και όχι όλο τον πίνακα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Όπως είδαμε στο προηγούμενο μάθημα, η πιο ελάχιστη αποδεκτή μορφή σύνταξης ενός &lt;/span&gt;query&lt;span lang="el-GR"&gt; αιτήματος είναι ο συνδυασμός του &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; (ορίζει τα ονόματα των στηλών), με το &lt;/span&gt;FROM&lt;span lang="el-GR"&gt; (ορίζει τον πίνακα από τον οποίο προέρχονται τα δεδομένα). Τώρα μπορούμε αμέσως μετά από το &lt;/span&gt;FROM&lt;span lang="el-GR"&gt; να χρησιμοποιήσουμε την εντολή &lt;/span&gt;WHERE&lt;span lang="el-GR"&gt; με την οποία θα φιλτράρουμε το αποτέλεσμα. Ας δούμε όμως ένα παράδειγμα για να αναλύσουμε λίγο καλύτερα την θεωρία μας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Ζητάμε από τον πίνακα &lt;/span&gt;HumanResources&lt;span lang="el-GR"&gt;.&lt;/span&gt;Employee&lt;span lang="el-GR"&gt; να δούμε πόσες ώρες άδειας (έχει μαζέψει ο εργαζόμενος που αντιπροσωπεύεται από τον κωδικό 5.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;SELECT VacationHours&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;FROM HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: navy;"&gt;&lt;span lang="el-GR"&gt;W&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="el-GR"&gt;HERE EmployeeID = 5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-vMCOJZI2FDQ/Te8-w9UkkqI/AAAAAAAADbM/bh4PEu4KlrA/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="195" src="http://1.bp.blogspot.com/-vMCOJZI2FDQ/Te8-w9UkkqI/AAAAAAAADbM/bh4PEu4KlrA/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο ποιο πάνω &lt;/span&gt;query&lt;span lang="el-GR"&gt; ζητήσαμε να δούμε πόσες ώρες άδειας έχει μαζέψει ο εργαζόμενος με τον αριθμό 5. Στην στήλη &lt;/span&gt;EmployeeID&lt;span lang="el-GR"&gt; που χρησιμοποιήσαμε για να φιλτράρουμε το αποτέλεσμα χρησιμοποιήσαμε το σύμβολο της ισότητας και αμέσως μετά δηλώσαμε τον αριθμό του εργαζόμενου. Δεν είναι απαραίτητη προϋπόθεση το φιλτράρισμα να γίνεται πάντα με αριθμούς. Μπορεί κάλλιστα να γίνει και με την δήλωση μιας ημερομηνίας ή ακόμα με βάση κάποιο όνομα ή τίτλο εργασίας. Εδώ όμως πρέπει να προσέξουμε στο τρόπο που θα δηλώσουμε την τιμή. Όταν δηλώνουμε ονόματα ή ημερομηνίες θα πρέπει οι τιμές τους να περικλείονται μέσα σε μονά ' ' σύμβολα. Το &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Management&lt;span lang="el-GR"&gt; &lt;/span&gt;Studio&lt;span lang="el-GR"&gt; μας βοηθάει μάλιστα σε αυτό αλλάζοντας το χρώμα της τιμής. Στο πιο κάτω παράδειγμα ζητάμε να δούμε τις ώρες άδειας που έχει ο εργαζόμενος με τίτλο '&lt;/span&gt;Vice&lt;span lang="el-GR"&gt; &lt;/span&gt;President&lt;span lang="el-GR"&gt; &lt;/span&gt;of&lt;span lang="el-GR"&gt; &lt;/span&gt;Engineering&lt;span lang="el-GR"&gt;'.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-NENKrVftaVU/Te8-4UaoVkI/AAAAAAAADbQ/fcx6f7xd-z0/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="166" src="http://2.bp.blogspot.com/-NENKrVftaVU/Te8-4UaoVkI/AAAAAAAADbQ/fcx6f7xd-z0/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;Στο πιο κάτω παράδειγμα βλέπετε πως ζητάμε να δούμε τις ώρες άδειας που έχει ένας εργαζόμενος με ημερομηνία γέννησης '1972-05-15' (Τα δεδομένα στην βάση έχουν γραφτεί με τον αμερικάνικο τρόπο δήλωσης της ημερομηνίας).&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-A-lOzIkRq5Q/Te8_AzlYBBI/AAAAAAAADbU/ma9jArpuNTY/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="173" src="http://2.bp.blogspot.com/-A-lOzIkRq5Q/Te8_AzlYBBI/AAAAAAAADbU/ma9jArpuNTY/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Εκτός από την ισότητα έχουμε την δυνατότητα να χρησιμοποιήσουμε και άλλους τελεστές σύγκρισης. Η πιο κάτω λίστα σας δείχνει τις επιλογές που έχετε.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Σύμβολο Επεξήγηση&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Μεγαλύτερο από κάποια τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Μικρότερο από κάποια τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Ίσο με κάποια τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;&amp;lt;=&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Μικρότερο ή ίσο από κάποια τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;&amp;gt;=&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Μεγαλύτερο ή ίσο από κάποια τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;!=&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Να μην είναι ίσο με κάποια συγκεκριμένη τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Να μην είναι ίσο με κάποια συγκεκριμένη τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;!&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Να μην είναι μικρότερο από κάποια τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;&lt;span lang="el-GR"&gt;!&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; Να μην είναι μεγαλύτερο από κάποια συγκεκριμένη τιμή&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Στο πιο κάτω παράδειγμα ζητάμε να δούμε τους αριθμούς των εργαζομένων και τους τίτλους τους εφόσον έχουν μαζέψει περισσότερες από 90 ώρες άδειας.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-KspUbzmWKZw/Te8_JZF9NwI/AAAAAAAADbY/hwi7fzaNebw/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-KspUbzmWKZw/Te8_JZF9NwI/AAAAAAAADbY/hwi7fzaNebw/s320/pic4.jpg" width="301" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Εκτός από τους γνωστούς τελεστές (τους αναφέραμε ήδη στην λίστα μας) υπάρχουν και μερικοί ακόμα για να καλύπτουν ειδικές ανάγκες στα αιτήματα μας προς την βάση. Ένας από αυτούς είναι το &lt;/span&gt;&lt;strong&gt;&lt;span style="color: #2300dc;"&gt;BETWEEN&lt;/span&gt;&lt;/strong&gt;&lt;span lang="el-GR"&gt; με τον οποίο μπορούμε να απαιτήσουμε ότι τα αποτέλεσμα που ψάχνουμε θα περιέχεται ανάμεσα σε ένα καθορισμένο εύρος τιμών. Εκτός από αριθμητικά δεδομένα, μπορούμε να χρησιμοποιήσουμε το &lt;/span&gt;BETWEEN&lt;span lang="el-GR"&gt; και με χαρακτήρες όπως και με ημερομηνίες.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;SELECT EmployeeID,VacationHours&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;FROM HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: #2300dc;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;WHERE VacationHours BETWEEN 60 and 90&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-0Mr0HZyY9sY/Te8_TMdUbHI/AAAAAAAADbc/SgNnHK55pnk/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-0Mr0HZyY9sY/Te8_TMdUbHI/AAAAAAAADbc/SgNnHK55pnk/s320/pic5.jpg" width="215" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Εδώ ζητάμε να δούμε τον αριθμό του εργαζόμενου και τις διαθέσιμε ώρες για διακοπές τις οποίες έχει μαζέψει εφόσον ο αριθμός των ωρών του είναι ανάμεσα στις 60 και 90 ώρες. Δώστε λίγο προσοχή την σύνταξη του &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;BETWEEN&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; – ακολουθείται πάντα από την λέξη &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;and&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; που δηλώνει τα δύο όρια του εύρους των τιμών. Οι τιμές του &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;and&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; πάντα δηλώνονται από τον μικρότερο στο μεγαλύτερο. Στο πιο κάτω παράδειγμα ψάχνουμε για τους εργαζόμενους και τις ώρες τους οι οποίοι ξεκίνησαν εργασία με την εταιρεία ανάμεσα στην ημερομηνία 30-3-1999 και 1-4-1999. Η χρήση των μονών ' ' είναι απαραίτητη για την δήλωση ημερομηνίας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-LU89OzedXOo/Te8_c4C0rCI/AAAAAAAADbg/rKcZx2yVubI/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="243" src="http://3.bp.blogspot.com/-LU89OzedXOo/Te8_c4C0rCI/AAAAAAAADbg/rKcZx2yVubI/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;Εάν θέλουμε να ζητήσουμε όλες τις τιμές εκτός από εκείνες που περιλαμβάνονται στο εύρος τιμών του &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;BETWEEN&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; τότε δεν έχουμε παρά να βάλουμε την άρνηση &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;NOT&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt; μπροστά από το &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;BETWEEN&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span lang="el-GR"&gt;. Για παράδειγμα, εάν θέλουμε να βρούμε όλους τους εργαζόμενους και τις ώρες διακοπών που έχουν εκτός από εκείνους που ξεκίνησαν εργασία ανάμεσα στις ημερομηνίες 30-3-1999 και 1-4-1999 τότε θα γράφαμε το αίτημα μας ως εξής:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-wa13FJNRu2g/Te8_ue6zqdI/AAAAAAAADbk/hXH3IHFnQKQ/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="307" src="http://3.bp.blogspot.com/-wa13FJNRu2g/Te8_ue6zqdI/AAAAAAAADbk/hXH3IHFnQKQ/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Michail&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;-&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Kassapoglou&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;@&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;hotmail.com&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-8752186488165974501?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/8752186488165974501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=8752186488165974501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/8752186488165974501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/8752186488165974501'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/sql-server-2008-lesson-3-where-clause.html' title='SQL SERVER 2008 Lesson 3 - WHERE Clause, BETWEEN Option'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-wkSo5vy0FFU/Te8-kJQWCuI/AAAAAAAADbI/PffrtEYZeeg/s72-c/sql2008logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-6526801063126867501</id><published>2011-06-08T05:11:00.000-07:00</published><updated>2011-06-08T05:11:10.336-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL SERVER 2008'/><title type='text'>SQL SERVER 2008 Lesson 2 - SELECT Command</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-s7fiL5vBn0g/Te89SbDZh4I/AAAAAAAADbE/ew8aS-WKato/s1600/sql2008logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="73" src="http://2.bp.blogspot.com/-s7fiL5vBn0g/Te89SbDZh4I/AAAAAAAADbE/ew8aS-WKato/s320/sql2008logo.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Στο σημερινό μάθημα θα καλύψουμε την εγκατάσταση της βάσης &lt;/span&gt;AdventureWorks&lt;span lang="el-GR"&gt; και τις βασικές έννοιες της &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; εντολής. Η &lt;/span&gt;AdventureWorks&lt;span lang="el-GR"&gt; δίνεται έτοιμη από την &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; για να μπορούν οι αρχάριοι χρήστες να έχουν κάποια αρχικά δεδομένα να εξασκήσουν τις βασικές εντολές της &lt;/span&gt;ANSI&lt;span lang="el-GR"&gt; &lt;/span&gt;SQL&lt;span lang="el-GR"&gt;. Σαν πρώτο βήμα λοιπόν, θα κατεβάσουμε το εκτελέσιμο αρχείο από την &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt;, που μας ετοιμάζει την βάση με τους πίνακες που περιέχουν τα δεδομένα με τα οποία θα δουλέψουμε, και θα το εγκαταστήσουμε.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Πηγαίνουμε πρώτα στην ιστοσελίδα της &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; (&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;u&gt;&lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/37109"&gt;&lt;span lang="el-GR"&gt;http://msftdbprodsamples.codeplex.com/releases/view/37109&lt;/span&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;span lang="el-GR"&gt;) και κατεβάζουμε το αρχείο &lt;/span&gt;AdventureWorks&lt;span lang="el-GR"&gt;2008_&lt;/span&gt;SR&lt;span lang="el-GR"&gt;4 όπως δείχνει και η πιο κάτω εικόνα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-IhPByHA-s_A/Te86tG4i0II/AAAAAAAADaA/hGrtzVyECeQ/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="http://1.bp.blogspot.com/-IhPByHA-s_A/Te86tG4i0II/AAAAAAAADaA/hGrtzVyECeQ/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;Αφού κατεβάσουμε το αρχείο και κάνουμε διπλό κλικ επάνω του για να ξεκινήσει η εγκατάσταση, θα μας εμφανιστεί, σαν πρώτο βήμα, η διαδικασία αποσυμπίεσης του αρχείου.&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-b0p4nixbrRQ/Te864hK0mvI/AAAAAAAADaE/1CxGhXpXiNg/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="103" src="http://3.bp.blogspot.com/-b0p4nixbrRQ/Te864hK0mvI/AAAAAAAADaE/1CxGhXpXiNg/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο δεύτερο βήμα, θα σας εμφανιστεί το παράθυρο στο οποίο θα πρέπει να συμφωνήσετε με τους όρους χρήσης για το συγκεκριμένο αρχείο όπως το δηλώνει η &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt;. &lt;/span&gt;Τσεκάρουμε το κουτάκι και πατάμε το κουμπί NEXT.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-AVKGpbQHlys/Te86_598BPI/AAAAAAAADaI/fdeGNeb93zw/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="259" src="http://3.bp.blogspot.com/-AVKGpbQHlys/Te86_598BPI/AAAAAAAADaI/fdeGNeb93zw/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο τρίτο βήμα, έχουμε την επιλογή να επιλέξουμε ποιες από τις εκδόσεις της &lt;/span&gt;AdventureWorks&lt;span lang="el-GR"&gt;2008 επιθυμούμε να εγκαταστήσουμε. Δεν έχουμε κανένα ιδιαίτερο λόγο να αλλάξουμε κάτι σε αυτό το παράθυρο, οπότε αφήνουμε τις προκαθορισμένες επιλογές και και πατάμε το κουμπί &lt;/span&gt;INSTALL&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-xmwGfjosSHw/Te87W1uGoeI/AAAAAAAADaM/V5L_kBHxJOw/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="261" src="http://2.bp.blogspot.com/-xmwGfjosSHw/Te87W1uGoeI/AAAAAAAADaM/V5L_kBHxJOw/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το βήμα, ξεκινάει η διαδικασία εγκατάστασης της βάσης. Μετά την ολοκλήρωση της εγκατάστασης, πατάμε το κουμπί &lt;/span&gt;FINISH&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-2PaF-Hv3FUU/Te87fj0aBMI/AAAAAAAADaQ/K-Zzclx80sI/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="259" src="http://4.bp.blogspot.com/-2PaF-Hv3FUU/Te87fj0aBMI/AAAAAAAADaQ/K-Zzclx80sI/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Μπορούμε τώρα να επιβεβαιώσουμε την εγκατάσταση ανοίγοντας το &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Management&lt;span lang="el-GR"&gt; &lt;/span&gt;Studio&lt;span lang="el-GR"&gt; από το &lt;/span&gt;All&lt;span lang="el-GR"&gt; &lt;/span&gt;Programs&lt;span lang="el-GR"&gt; των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-YVfjj-7fXHE/Te87muEvnaI/AAAAAAAADaU/6qJAJYYjeA4/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-YVfjj-7fXHE/Te87muEvnaI/AAAAAAAADaU/6qJAJYYjeA4/s320/pic6.jpg" width="252" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-OiDjjzQitzg/Te87rLxkwXI/AAAAAAAADaY/Fjkl66UXVtw/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="237" src="http://4.bp.blogspot.com/-OiDjjzQitzg/Te87rLxkwXI/AAAAAAAADaY/Fjkl66UXVtw/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Πατάμε επάνω στο + σύμβολο, δίπλα από το &lt;/span&gt;Databases&lt;span lang="el-GR"&gt;, για να μπορέσουμε να δούμε ολόκληρη την λίστα με τις βάσεις που εγκαταστήσαμε. Αν δεν τις βλέπετε αμέσως, μπορείτε να κάνετε δεξί κλικ επάνω στο εικονίδιο του &lt;/span&gt;Databases&lt;span lang="el-GR"&gt; και να επιλέξετε &lt;/span&gt;refresh&lt;span lang="el-GR"&gt; για να ανανεωθεί η λίστα με τις βάσεις.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-X2orWSutSUA/Te87zQ8EG5I/AAAAAAAADac/9cio3uNgnKU/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-X2orWSutSUA/Te87zQ8EG5I/AAAAAAAADac/9cio3uNgnKU/s320/pic8.jpg" width="195" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-GK8Z0dfL5Wo/Te874J2S_NI/AAAAAAAADag/FmKVDUni0U8/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-GK8Z0dfL5Wo/Te874J2S_NI/AAAAAAAADag/FmKVDUni0U8/s320/pic9.jpg" width="259" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Αφού ολοκληρώσουμε την εγκατάσταση της βάσης, είμαστε έτοιμοι να προχωρήσουμε στην εκμάθηση των εντολών με τις οποίες θα μπορούμε να παράγουμε αποτελέσματα στην οθόνη μας. Η πιο βασική εντολή είναι η &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Πριν όμως αποφασίσουμε από ποιόν πίνακα θα παράγουμε ένα &lt;/span&gt;report&lt;span lang="el-GR"&gt; αποτελεσμάτων, θα πρέπει να ορίσουμε σε ποια βάση ανήκει αυτός ο πίνακας. Οπότε η πρώτη και αρχική εντολή που θα χρησιμοποιούμε είναι η &lt;/span&gt;USE&lt;span lang="el-GR"&gt; που θα ακολουθείται από το όνομα της βάσης.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: navy;"&gt;USE&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="el-GR"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Ο &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; είναι ελαστικός όσο αφορά τον τρόπο εγγραφής των εντολών. Μπορείτε να γράφετε είτε με πεζά είτε με κεφαλαία τις εντολές.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Η πιο βασική ενέργεια που θέλουμε να κάνουμε σε μια βάση είναι να δούμε τις πληροφορίες οι οποίες περιέχονται μέσα στους πίνακες. Όπως ήδη αναφέραμε, η χρήση της εντολής &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; θα μας επιστρέψει σαν αποτέλεσμα μια ή και περισσότερες γραμμές με δεδομένα. Αυτό το γκρουπ γραμμών ονομάζεται &lt;/span&gt;result&lt;span lang="el-GR"&gt; &lt;/span&gt;set&lt;span lang="el-GR"&gt; και η οργάνωσή του αποτελείται από γραμμές και στήλες.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Η γενική σύνταξη της εντολής &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; απαιτεί δύο στοιχεία για να μπορεί να εκτελεστεί: 1) Τα ονόματα των στηλών από τις οποίες θα ζητήσουμε να δούμε τα περιεχόμενα τους, και 2) το όνομα του πίνακα στον οποίο ανήκουν οι στήλες. Θέλω να επισημάνω το γεγονός ότι η εντολή &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; ποτέ δεν αλλάζει τα αληθινά περιεχόμενα μέσα στον πίνακα ασχέτως με ποια μορφή τα ζητάμε να εμφανιστούν στην οθόνη μας. Σαν πρώτο βήμα, και για να εξοικειωθούμε με την &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; εντολή, ας κάνουμε χρήση στου συμβόλου * με το οποίο θα ζητήσουμε την εμφάνιση των δεδομένων από όλες τις στήλες του πίνακα. Βάζοντας όλη την θεωρία μαζί τώρα, το ολοκληρωμένο &lt;/span&gt;query&lt;span lang="el-GR"&gt; μας θα μοιάζει κάπως έτσι:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: navy;"&gt;USE AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;SELECT * &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;FROM HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Το &lt;/span&gt;USE&lt;span lang="el-GR"&gt; αναφέρεται στην βάση, το &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; με το * ζητάει να εμφανιστούν όλα τα δεδομένα από όλες τις στήλες, ενώ το &lt;/span&gt;FROM&lt;span lang="el-GR"&gt; &lt;/span&gt;HumanResources&lt;span lang="el-GR"&gt;.&lt;/span&gt;Employee&lt;span lang="el-GR"&gt; ενημερώνει την βάση ότι οι πιο πάνω στήλες θα προέλθουν από τον πίνακα &lt;/span&gt;Employee&lt;span lang="el-GR"&gt; που ανήκει στο σχήμα &lt;/span&gt;HumanResources&lt;span lang="el-GR"&gt;. Κάθε πίνακας ανήκει σε κάποιο σχήμα. Την έννοια του σχήματος θα την αναλύσουμε αργότερα. Για τώρα απλά ας συγκεντρωθούμε στον πίνακα &lt;/span&gt;Employee&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Για να τρέξουμε αυτό το &lt;/span&gt;query&lt;span lang="el-GR"&gt; στον &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt;, αφού ανοίξουμε την κονσόλα του &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Management&lt;span lang="el-GR"&gt; &lt;/span&gt;Studio&lt;span lang="el-GR"&gt;, πατάμε το κουμπί &lt;/span&gt;New&lt;span lang="el-GR"&gt; &lt;/span&gt;Query&lt;span lang="el-GR"&gt; επάνω αριστερά.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-L_paD2-oSpI/Te88H6xF-eI/AAAAAAAADak/jEx8twaiMw8/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="http://3.bp.blogspot.com/-L_paD2-oSpI/Te88H6xF-eI/AAAAAAAADak/jEx8twaiMw8/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;Στο άσπρο πλαίσιο που εμφανίζεται γράφουμε τον κώδικα μας. Καθώς γράφεται τις εντολές διάφορα παραθυράκια θα προσπαθήσουν να μας βοηθήσουν προτείνοντας εντολές έτσι ώστε να αποφύγουμε συντακτικά λάθη.&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-_DubxrXjx68/Te88Onnj1tI/AAAAAAAADao/DnjLZM1rbQ8/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://2.bp.blogspot.com/-_DubxrXjx68/Te88Onnj1tI/AAAAAAAADao/DnjLZM1rbQ8/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-P9fmMe55I9s/Te88SpD9n_I/AAAAAAAADas/jo3ys4ug0yQ/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="233" src="http://4.bp.blogspot.com/-P9fmMe55I9s/Te88SpD9n_I/AAAAAAAADas/jo3ys4ug0yQ/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Για να εκτελέσουμε το &lt;/span&gt;query&lt;span lang="el-GR"&gt;, το οποίο γράψαμε, πατάμε το κουμπί &lt;/span&gt;Execute&lt;span lang="el-GR"&gt;. Ακριβώς από κάτω από το άσπρο πλαίσιο θα εμφανιστεί το αποτέλεσμα εκτέλεσης της εντολής μας το οποίο περιέχει όλα τα δεδομένα ανά στήλη του πίνακα &lt;/span&gt;Employee&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-e8XeuYpGXdw/Te88aJcFdiI/AAAAAAAADaw/4jy5Xv6rVJE/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="299" src="http://1.bp.blogspot.com/-e8XeuYpGXdw/Te88aJcFdiI/AAAAAAAADaw/4jy5Xv6rVJE/s320/pic13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Εάν τώρα θελήσουμε να πάρουμε τα δεδομένα μόνο από δύο επιλεγμένες στήλες, τότε αντί για το σύμβολο * μπορούμε να γράψουμε τα ονόματα των στηλών χωρισμένα με κόμμα ανάμεσά τους όπως δείχνει και το πιο κάτω παράδειγμα.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Select Title, HireDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;From HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Title&lt;span lang="el-GR"&gt; και &lt;/span&gt;HireDate&lt;span lang="el-GR"&gt; είναι δύο από τις στήλες του πίνακα &lt;/span&gt;Employee&lt;span lang="el-GR"&gt;. Εάν δεν ξέρετε τα ονόματα των στηλών, μπορείτε να τα βρείτε με τα εξής βήματα: πρώτα κάνετε κλικ στο σύμβολο + δίπλα από την βάση &lt;/span&gt;AdventureWorks&lt;span lang="el-GR"&gt;, μετά στο &lt;/span&gt;Tables&lt;span lang="el-GR"&gt;, και μετά στο πίνακα &lt;/span&gt;HumanResources&lt;span lang="el-GR"&gt;.&lt;/span&gt;Employee&lt;span lang="el-GR"&gt;. Τώρα μπορείτε να δείτε τα ονόματα των στηλών μαζί με το είδος της πληροφορίας που δέχονται. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-4IRsaY9Hd1Q/Te88leJyRcI/AAAAAAAADa0/sXeu-0-7qPI/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="245" src="http://3.bp.blogspot.com/-4IRsaY9Hd1Q/Te88leJyRcI/AAAAAAAADa0/sXeu-0-7qPI/s320/pic14.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Όπως έχετε παρατηρήσει ήδη, τα ονόματα των στηλών του πίνακα χρησιμοποιούνται και σαν τίτλοι στις στήλες του αποτελέσματος. Εάν όμως θέλουμε να δώσουμε ένα πιο χαρακτηριστικό όνομα στο αποτέλεσμα, διαφορετικό από το όνομα της στήλης, τότε μπορούμε να το κάνουμε εάν αμέσως μετά τον ορισμό του ονόματος της στήλης στο &lt;/span&gt;query&lt;span lang="el-GR"&gt; γράψουμε την λέξη &lt;/span&gt;AS&lt;span lang="el-GR"&gt; και μέσα σε διπλά “ “ το πως θέλουμε να εμφανίζεται στο &lt;/span&gt;report&lt;span lang="el-GR"&gt;. Ας&lt;/span&gt; &lt;span lang="el-GR"&gt;αλλάξουμε&lt;/span&gt; &lt;span lang="el-GR"&gt;λίγο&lt;/span&gt; &lt;span lang="el-GR"&gt;το&lt;/span&gt; &lt;span lang="el-GR"&gt;κώδικα&lt;/span&gt; &lt;span lang="el-GR"&gt;που&lt;/span&gt; &lt;span lang="el-GR"&gt;μόλις&lt;/span&gt; &lt;span lang="el-GR"&gt;τρέξαμε&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Use AdventureWorks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Select Title as "Job Title", HireDate as "Hire Date"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;From HumanResources.Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Με αυτή την αλλαγή στο &lt;/span&gt;query&lt;span lang="el-GR"&gt;, ζητάμε να εμφανιστούν οι τίτλοι στο αποτέλεσμα σαν &lt;/span&gt;Job&lt;span lang="el-GR"&gt; &lt;/span&gt;Title&lt;span lang="el-GR"&gt; και &lt;/span&gt;Hire&lt;span lang="el-GR"&gt; &lt;/span&gt;Date&lt;span lang="el-GR"&gt; αντί των &lt;/span&gt;Title&lt;span lang="el-GR"&gt; και &lt;/span&gt;HireDate&lt;span lang="el-GR"&gt; αντίστοιχα. Επαναλαμβάνω ότι η εντολή &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; δεν αλλάζει κανένα στοιχείο μέσα στον πίνακα. Όλες οι αλλαγές είναι μόνο για το αποτέλεσμα που θα δούμε στην οθόνη μας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-o6IVZHcRZ6A/Te88tFoAPvI/AAAAAAAADa4/oeZevJSid70/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-o6IVZHcRZ6A/Te88tFoAPvI/AAAAAAAADa4/oeZevJSid70/s320/pic15.jpg" width="313" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Πριν κλείσουμε το σημερινό μάθημα, ας δείξουμε δύο εύκολους τρόπους δημιουργίας απλών &lt;/span&gt;query&lt;span lang="el-GR"&gt; με τα οποία ασχολούμαστε. Ο πρώτος τρόπος έχει να κάνει με το γράψιμο των στηλών στην &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; εντολή. Αντί να γράφουμε τα ονόματα των στηλών, μπορούμε απλά να επιλέξουμε την στήλη από τον &lt;/span&gt;Object&lt;span lang="el-GR"&gt; &lt;/span&gt;Explorer&lt;span lang="el-GR"&gt; του &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Management&lt;span lang="el-GR"&gt; &lt;/span&gt;Studio&lt;span lang="el-GR"&gt; και κρατώντας το αριστερό κουμπί στο ποντίκι μας να το κάνουμε &lt;/span&gt;drag&lt;span lang="el-GR"&gt; και &lt;/span&gt;drop&lt;span lang="el-GR"&gt; (δηλαδή να το μεταφέρουμε και να το αφήσουμε μέσα στην &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; εντολή. Με αυτό το τρόπο δεν θα κάνετε ποτέ λάθος στο όνομα των στηλών.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Ο δεύτερος τρόπος είναι προς αντικατάσταση του * στην εντολή &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt;. Εάν ζητάμε να λάβουμε σαν αποτελέσματα του &lt;/span&gt;query&lt;span lang="el-GR"&gt; μας όλα τα δεδομένα από όλες τις στήλες χωρίς την χρήση του * ο μόνος λογικός τρόπος είναι να γράψουμε όλες τις στήλες μια προς μια. Μπορούμε όμως να λάβουμε έτοιμο αυτό το &lt;/span&gt;query&lt;span lang="el-GR"&gt; από το &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Management&lt;span lang="el-GR"&gt; &lt;/span&gt;Studio&lt;span lang="el-GR"&gt;. Πηγαίνουμε στο πίνακα που μας ενδιαφέρει και κάνοντας δεξί κλικ επάνω του επιλέγουμε &lt;/span&gt;Script&lt;span lang="el-GR"&gt; &lt;/span&gt;Table&lt;span lang="el-GR"&gt; &lt;/span&gt;as&lt;span lang="el-GR"&gt; μετά &lt;/span&gt;SELECT&lt;span lang="el-GR"&gt; &lt;/span&gt;To&lt;span lang="el-GR"&gt; και τέλος &lt;/span&gt;New&lt;span lang="el-GR"&gt; &lt;/span&gt;Query&lt;span lang="el-GR"&gt; &lt;/span&gt;Editor&lt;span lang="el-GR"&gt; &lt;/span&gt;Window&lt;span lang="el-GR"&gt;. Το νέο &lt;/span&gt;query&lt;span lang="el-GR"&gt; με όλες τις στήλες θα δημιουργηθεί σε ένα νέο πλαίσιο.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-gaVllL20ZO4/Te882a4nxtI/AAAAAAAADa8/EmJsafkAXtQ/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://3.bp.blogspot.com/-gaVllL20ZO4/Te882a4nxtI/AAAAAAAADa8/EmJsafkAXtQ/s320/pic16.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-QtOy9HVEIwo/Te886fGs3tI/AAAAAAAADbA/eupC_mb0j98/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="293" src="http://1.bp.blogspot.com/-QtOy9HVEIwo/Te886fGs3tI/AAAAAAAADbA/eupC_mb0j98/s320/pic17.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Μιχάλης Κασάπογλου&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="mailto:Michail.Kassapoglou@free-lessons.org"&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Michail&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;-&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;Kassapoglou&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;@&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;hotmail.com&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;u&gt;&lt;span lang="el-GR"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: navy;"&gt;&lt;span lang="zxx"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2234050870648484428-6526801063126867501?l=kassapoglou.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kassapoglou.blogspot.com/feeds/6526801063126867501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2234050870648484428&amp;postID=6526801063126867501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6526801063126867501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234050870648484428/posts/default/6526801063126867501'/><link rel='alternate' type='text/html' href='http://kassapoglou.blogspot.com/2011/06/sql-server-2008-lesson-2-select-command.html' title='SQL SERVER 2008 Lesson 2 - SELECT Command'/><author><name>Michalis Kassapoglou</name><uri>http://www.blogger.com/profile/05256521076238045995</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-s7fiL5vBn0g/Te89SbDZh4I/AAAAAAAADbE/ew8aS-WKato/s72-c/sql2008logo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2234050870648484428.post-6465939987329958941</id><published>2011-06-08T05:10:00.000-07:00</published><updated>2011-06-08T05:10:53.212-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL SERVER 2008'/><title type='text'>SQL SERVER 2008  Lesson 1 - Installing SQL SERVER 2008 EXPRESS Edition</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-137r3wVGu4o/Te8gYS-QLwI/AAAAAAAADX0/tAq4d7Ebjcs/s1600/sql2008logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="73" src="http://2.bp.blogspot.com/-137r3wVGu4o/Te8gYS-QLwI/AAAAAAAADX0/tAq4d7Ebjcs/s320/sql2008logo.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Από το σημερινό μάθημα θα ξεκινήσουμε μια σειρά εκπαιδευτικών άρθρων με θέμα την βάση δεδομένων SQL SERVER 2008 της Microsoft. Τα μαθήματα θα καλύψουν τόσο το προγραμματιστικό όσο και το διαχειριστικό μέρος. Επειδή όμως πάντα θεωρώ ότι οι αναγνώστες δεν έχουν καμία απολύτως γνώση του συγκεκριμένου αντικειμένου, τότε σαν πρώτο βήμα θα πρέπει να εξοικειωθούμε με την Transact-SQL (T-SQL) γλώσσα μέσα από την οποία μπορούμε να στέλνουμε αιτήματα και εντολές στην βάση. Για την εκμάθηση αυτής της γλώσσας δεν είναι αναγκαίο να εγκαταστήσουμε την επαγγελματική έκδοση του προϊόντος. Μπορούμε μέσα από την δωρεάν έκδοση του SQL SERVER 2008 να αναπτύξουμε όλες τις πτυχές του μαθήματος μας. Στην σημερινή ενότητα θα καλύψουμε τα απαραίτητα βήματα εγκατάστασης του SQL SERVER 2008 EXPRESS EDITION (δωρεάν έκδοση) πάνω στην οποία θα βασιστεί η ανάπτυξη της θεωρίας μας.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Σαν πρώτο βήμα χρειάζεται να κατεβάσουμε από την επίσημη ιστοσελίδα της Microsoft τα δύο πιο κάτω αρχεία:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Microsoft SQL  Server 2008 Express -  &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=58ce885d-508b-45c8-9fd3-118edd8e6fff&amp;amp;displaylang=en#filelist"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;u&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=58ce885d-508b-45c8-9fd3-118edd8e6fff&amp;amp;displaylang=en#filelist&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="line-height: 100%; margin-bottom: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Microsoft  SQL Server 2008 Management Studio Express -  &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=08E52AC2-1D62-45F6-9A4A-4B76A8564A2B&amp;amp;displaylang=en"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;u&gt;http://www.microsoft.com/downloads/details.aspx?familyid=08E52AC2-1D62-45F6-9A4A-4B76A8564A2B&amp;amp;displaylang=en&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Το πρώτο αρχείο πραγματοποιεί την εγκατάσταση του SQL Server 2008 Express Edition, ενώ το δεύτερο αρχείο προσθέτει το γραφικό περιβάλλον διαχείρισης της βάσης. Τα πιο κάτω βήματα περιγράφουν την ολοκληρωμένη εγκατάσταση του προϊόντος σε πλατφόρμα Windows 7.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Αφού κατεβάσουμε τα δύο αρχεία, το επόμενο βήμα είναι να ξεκινήσουμε από το αρχείο με το όνομα SQLEXPR_86_ENU και να κάνουμε διπλό κλικ επάνω του για να αρχίσει η διαδικασία εγκατάστασης . Από το εμφανιζόμενο παράθυρο επιλέγουμε “System Configuration Checker”. Το εργαλείο αυτό αναλύει το περιβάλλον του λειτουργικού συστήματος και μας επιβεβαιώνει για την ύπαρξη όλων των προαπαιτούμενων στοιχείων που είναι αναγκαία για διαδικασία της εγκατάστασης. Σε περίπτωση που κάποια από τα αυτά απουσιάζουν (όπως Microsoft .Net Framework 3.5 SP1 ή Windows Installer 4.5) το System Configuration Checker θα το ανιχνεύσει και θα μας προτείνει να τα εγκαταστήσουμε πριν να προχωρήσει η εγκατάσταση.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ef5vIP-3Iok/Te8nfU1OjRI/AAAAAAAADX4/47ISv3zlwT0/s1600/pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-ef5vIP-3Iok/Te8nfU1OjRI/AAAAAAAADX4/47ISv3zlwT0/s320/pic1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-qn4GIFl289o/Te8nlrCB9zI/AAAAAAAADX8/UKjQxowVFI0/s1600/pic2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-qn4GIFl289o/Te8nlrCB9zI/AAAAAAAADX8/UKjQxowVFI0/s320/pic2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αφού πατήσουμε το ΟΚ κουμπί, και εφόσον καλύπτονται όλες οι προϋποθέσεις για την εγκατάσταση, θα εμφανιστεί πάλι το αρχικό παράθυρο. Επιλέγουμε &lt;/span&gt;Installation&lt;span lang="el-GR"&gt; από τις κύριες επιλογές και &lt;/span&gt;New&lt;span lang="el-GR"&gt; &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;stand&lt;span lang="el-GR"&gt;-&lt;/span&gt;along&lt;span lang="el-GR"&gt; &lt;/span&gt;installation&lt;span lang="el-GR"&gt; από τις υποκατηγορίες.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-d0clZqBcfr0/Te8nuFepsZI/AAAAAAAADYA/wekPhufWAlM/s1600/pic3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-d0clZqBcfr0/Te8nuFepsZI/AAAAAAAADYA/wekPhufWAlM/s320/pic3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Το &lt;/span&gt;EXPRESS&lt;span lang="el-GR"&gt; &lt;/span&gt;EDITION&lt;span lang="el-GR"&gt; δεν απαιτεί κανένα &lt;/span&gt;license&lt;span lang="el-GR"&gt; και για αυτό στο επόμενο παράθυρο που θα σας εμφανιστεί, η περιοχή καταχώρησης του κωδικού είναι προστατευμένη. Απλά πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; και προχωράμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-JQish1ZW9gk/Te8n1TPF5tI/AAAAAAAADYE/IVoac_cDhro/s1600/pic4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-JQish1ZW9gk/Te8n1TPF5tI/AAAAAAAADYE/IVoac_cDhro/s320/pic4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Δεχόμαστε τους όρους κάτω από τους οποίους θα χρησιμοποιηθεί το προϊόν και πατάμε &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-1G433h0AREs/Te8n89lgKuI/AAAAAAAADYI/1bV5VwTpFIE/s1600/pic5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-1G433h0AREs/Te8n89lgKuI/AAAAAAAADYI/1bV5VwTpFIE/s320/pic5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Επειδή κάναμε τον αρχικό έλεγχο και επιβεβαιώσαμε ότι καλύπτονται όλες οι προϋποθέσεις για την εγκατάσταση, το επόμενο παράθυρο απλά μας δίνει την επιλογή έναρξης της εγκατάστασης. &lt;/span&gt;Πατάμε το κουμπί INSTALL και ξεκινάμε την εγκατάσταση.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-TE6mKGkHV3g/Te8oFKz54OI/AAAAAAAADYM/-WAtzFTjjQ4/s1600/pic6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-TE6mKGkHV3g/Te8oFKz54OI/AAAAAAAADYM/-WAtzFTjjQ4/s320/pic6.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο επόμενο παράθυρο εμφανίζεται η λίστα με τα αρχεία ή προγράμματα που θα υποστηρίξουν την εγκατάσταση. Ήδη από τα προκαταρκτικά τεστ που κάναμε πριν την εγκατάσταση καλύπταμε όλες τις προϋποθέσεις. Λογικό είναι σε αυτό το σημείο να μην αντιμετωπίσουμε κανένα ιδιαίτερο πρόβλημα. Απλά πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-6ZAgcPqPORw/Te8opI5f5JI/AAAAAAAADYQ/53gJ72GXEWg/s1600/pic7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-6ZAgcPqPORw/Te8opI5f5JI/AAAAAAAADYQ/53gJ72GXEWg/s320/pic7.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Εδώ είναι η στιγμή που θα επιλέξουμε να εγκαταστήσουμε την δομή και την μηχανή υποστήριξης (&lt;/span&gt;Database&lt;span lang="el-GR"&gt; &lt;/span&gt;Engine&lt;span lang="el-GR"&gt; &lt;/span&gt;Services&lt;span lang="el-GR"&gt;) στην οποία στηρίζεται η λειτουργία του &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;SERVER&lt;span lang="el-GR"&gt;. Επειδή όμως χρησιμοποιούμε το &lt;/span&gt;FREE&lt;span lang="el-GR"&gt; &lt;/span&gt;EDITION&lt;span lang="el-GR"&gt; τα έξτρα εργαλεία και δυνατότητες που έχει να προσφέρει είναι περιορισμένα. &lt;/span&gt;Επιλέγουμε τα πάντα και πατάμε το κουμπί NEXT.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-cPSuqkzsOXM/Te8oxv9f51I/AAAAAAAADYU/tBDbj2gSDvw/s1600/pic8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-cPSuqkzsOXM/Te8oxv9f51I/AAAAAAAADYU/tBDbj2gSDvw/s320/pic8.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το σημείο, έχουμε την επιλογή να διαλέξουμε το όνομα για το &lt;/span&gt;instance&lt;span lang="el-GR"&gt; κάτω από το οποίο θα δημιουργήσουμε τις βάσεις μας. Ένα &lt;/span&gt;instance&lt;span lang="el-GR"&gt; φαίνεται σαν &lt;/span&gt;service&lt;span lang="el-GR"&gt; στα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; αλλά ταυτόχρονα προσφέρει όλες τις απαραίτητες υπηρεσίες για να υποστηρίξει την δημιουργία και την συντήρηση μιας βάσης που θα περιέχει τους πίνακες με τα δεδομένα μας. Η &lt;/span&gt;EXPRESS&lt;span lang="el-GR"&gt; &lt;/span&gt;EDITION&lt;span lang="el-GR"&gt; θα εγκαταστήσει μια ολοκληρωμένη βάση για μας, με τους πίνακες ήδη να έχουν δεδομένα για να μπορέσουμε να κάνουμε την πρακτική μας. Δεχόμαστε λοιπόν τις προκαθορισμένες επιλογές και πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-BvqZ8RN7r4c/Te8o5AYRGyI/AAAAAAAADYY/scVBhocZO38/s1600/pic9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-BvqZ8RN7r4c/Te8o5AYRGyI/AAAAAAAADYY/scVBhocZO38/s320/pic9.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το παράθυρο μας παρουσιάζεται μια σύντομη περίληψη του χώρου στον σκληρό δίσκο που θα δεσμεύσει η εγκατάσταση. Πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να προχωρήσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-meLRI_OwzHA/Te8pAd2dHzI/AAAAAAAADYc/buityxc5ta4/s1600/pic10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-meLRI_OwzHA/Te8pAd2dHzI/AAAAAAAADYc/buityxc5ta4/s320/pic10.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Κάθε &lt;/span&gt;service&lt;span lang="el-GR"&gt; που τρέχει στα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; λειτουργεί κάτω από έναν λογαριασμό για λόγους ασφαλείας. Σε αυτό το βήμα, πρέπει να επιλέξουμε τον λογαριασμό κάτω από τον οποίο θα τρέχει το &lt;/span&gt;service&lt;span lang="el-GR"&gt; του &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;Server&lt;span lang="el-GR"&gt; &lt;/span&gt;Database&lt;span lang="el-GR"&gt; &lt;/span&gt;Engine&lt;span lang="el-GR"&gt;. Μπορούμε να δημιουργήσουμε δικό μας λογαριασμό αλλά είναι αρκετό να δεχτούμε απλά τον προκαθορισμένο από την &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt; λογαριασμό &lt;/span&gt;NT&lt;span lang="el-GR"&gt; &lt;/span&gt;AUTHORITY&lt;span lang="el-GR"&gt;\&lt;/span&gt;SYSTEM&lt;span lang="el-GR"&gt;. Επίσης βεβαιωνόμαστε ότι κάθε φορά που θα ξεκινάμε τα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; τα &lt;/span&gt;service&lt;span lang="el-GR"&gt; του &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; θα ενεργοποιούνται. Για να το πετύχουμε αυτό, επιλέγουμε στο &lt;/span&gt;Startup&lt;span lang="el-GR"&gt; &lt;/span&gt;Type&lt;span lang="el-GR"&gt; την επιλογή &lt;/span&gt;Automatic&lt;span lang="el-GR"&gt;. &lt;/span&gt;Αφού ολοκληρώσουμε αυτές τις αλλαγές πατάμε το κουμπί NEXT.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-1CObeKFC8rA/Te8pHnSHe8I/AAAAAAAADYg/TvMDmZtmZbw/s1600/pic11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-1CObeKFC8rA/Te8pHnSHe8I/AAAAAAAADYg/TvMDmZtmZbw/s320/pic11.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αφού ξεκινήσουν τα &lt;/span&gt;services&lt;span lang="el-GR"&gt; του &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;SERVER&lt;span lang="el-GR"&gt;, είναι αναγκαίο να επιλέξουμε τουλάχιστον έναν λογαριασμό χρήστη με τον οποίο θα έχουμε πρόσβαση στην διαχειριστική κονσόλα του &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; σαν &lt;/span&gt;Administrators&lt;span lang="el-GR"&gt;. Αφήνουμε την επιλογή &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; &lt;/span&gt;authentication&lt;span lang="el-GR"&gt; &lt;/span&gt;mode&lt;span lang="el-GR"&gt; επιλεγμένη και πατάμε το κουμπί &lt;/span&gt;Add&lt;span lang="el-GR"&gt; &lt;/span&gt;Current&lt;span lang="el-GR"&gt; &lt;/span&gt;User&lt;span lang="el-GR"&gt;. Αυτή η επιλογή μας έχει σαν αποτέλεσμα να δώσει στον τρέχον λογαριασμό χρήστη, με τον οποίο έχουμε αποκτήσει πρόσβαση στα &lt;/span&gt;Windows&lt;span lang="el-GR"&gt;, το δικαίωμα να έχει πρόσβαση και στον &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; και να μπορεί να διαχειρίζεται την βάση. Με αυτή την λογική δένουμε τον λογαριασμό των &lt;/span&gt;Windows&lt;span lang="el-GR"&gt; να χρησιμοποιείται και για τον &lt;/span&gt;SQL&lt;span lang="el-GR"&gt;. Όταν ολοκληρώσουμε και αυτό το βήμα πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-C_a2wdlWapg/Te8pRMn_VBI/AAAAAAAADYk/2nZ5HJLFJIk/s1600/pic12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-C_a2wdlWapg/Te8pRMn_VBI/AAAAAAAADYk/2nZ5HJLFJIk/s320/pic12.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Στο επόμενο παράθυρο δεν είναι ανάγκη να επιλέξετε τίποτα. Απλά πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να προχωρήσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-S4VtBsshEns/Te8pbWFTU_I/AAAAAAAADYo/gZ5L4xDOVxU/s1600/pic13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-S4VtBsshEns/Te8pbWFTU_I/AAAAAAAADYo/gZ5L4xDOVxU/s320/pic13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Ένα τελευταίο &lt;/span&gt;report&lt;span lang="el-GR"&gt; μας επιβεβαιώνει ότι δεν υπάρχουν λάθη μέχρι σε αυτό το στάδιο της εγκατάστασης οπότε απλά πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να προχωρήσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Xo_u9jJpCO0/Te8pk1yWMUI/AAAAAAAADYs/F1fso9ZOeaI/s1600/pic14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-Xo_u9jJpCO0/Te8pk1yWMUI/AAAAAAAADYs/F1fso9ZOeaI/s320/pic14.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Αυτό είναι το τελευταίο βήμα της εγκατάστασης. Ο &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;SERVER&lt;span lang="el-GR"&gt; &lt;/span&gt;EXPRESS&lt;span lang="el-GR"&gt; θα εγκατασταθεί με βάση τις επιλογές μας από τα προηγούμενα βήματα. &lt;/span&gt;Πατάμε το κουμπί INSTALL για να ξεκινήσει η διαδικασία.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-L5DY2n_JvTQ/Te8sZepJ5UI/AAAAAAAADYw/_o9N_aNyzKA/s1600/pic15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://2.bp.blogspot.com/-L5DY2n_JvTQ/Te8sZepJ5UI/AAAAAAAADYw/_o9N_aNyzKA/s320/pic15.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το παράθυρο θα μας εμφανιστούν τα επιτυχής ή ανεπιτυχής αποτελέσματα της εγκατάστασης των επιλογών μας. Αν όλα έχουν εγκατασταθεί επιτυχώς δεν έχουμε παρά να πατήσουμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να μεταφερθούμε στο τελευταίο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-9vPiW3zGg28/Te8skpxHeII/AAAAAAAADY0/JZwhF81tuAc/s1600/pic16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-9vPiW3zGg28/Te8skpxHeII/AAAAAAAADY0/JZwhF81tuAc/s320/pic16.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Η εγκατάσταση ολοκληρώθηκε επιτυχώς και απλά πατάμε το κουμπί &lt;/span&gt;CLOSE&lt;span lang="el-GR"&gt; για να την αποδεχτούμε και κλείνουμε όλα τα παράθυρα.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-9RaUjfaIR6E/Te8sy3MljmI/AAAAAAAADY4/3XxNH6qoDQw/s1600/pic17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-9RaUjfaIR6E/Te8sy3MljmI/AAAAAAAADY4/3XxNH6qoDQw/s320/pic17.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="JUSTIFY" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang="el-GR"&gt;Τώρα ήρθε η σειρά να εγκαταστήσουμε το γραφικό περιβάλλον διαχείρισης του &lt;/span&gt;SQL&lt;span lang="el-GR"&gt; &lt;/span&gt;SERVER&lt;span lang="el-GR"&gt;. Μπορούμε να το επιτύχουμε με την εγκατάσταση του δεύτερου αρχείου το οποίο κατεβάσαμε από το &lt;/span&gt;site&lt;span lang="el-GR"&gt; της &lt;/span&gt;Microsoft&lt;span lang="el-GR"&gt;. Κάνουμε λοιπόν διπλό κλικ επάνω στο αρχείο &lt;/span&gt;SQLManagementStudio&lt;span lang="el-GR"&gt;_&lt;/span&gt;x&lt;span lang="el-GR"&gt;86_&lt;/span&gt;ENU&lt;span lang="el-GR"&gt; να ξεκινήσει η εγκατάσταση της κονσόλας.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;span style="font-family: Times New Roman,serif;"&gt;&lt;span style="font-size: small;"&gt;Επειδή ήδη έχουμε ελέγξει το σύστημα μας για τυχόν ασυμβατότητες δεν χρειάζεται να ξανακάνουμε τον ίδιο έλεγχο. Απλά προχωράμε απευθείας στην διαδικασία της εγκατάστασης.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="JUSTIFY" lang="el-GR" style="line-height: 100%; margin-bottom: 0in; margin-top: 0.19in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-pgAPZwZMt6E/Te8s92U1hAI/AAAAAAAADY8/D50qT1xUFPY/s1600/pic18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://3.bp.blogspot.com/-pgAPZwZMt6E/Te8s92U1hAI/AAAAAAAADY8/D50qT1xUFPY/s320/pic18.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;Το επόμενο βήμα μας είναι γνωστό ήδη από την προηγούμενη εγκατάσταση. Απλά πατάμε το κουμπί ΟΚ και δεχόμαστε το γεγονός ότι μέχρι στιγμής δεν έχει παρουσιαστεί κανένα πρόβλημα.&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-3ZIRyV7JlYk/Te8tIPYwcEI/AAAAAAAADZA/kXVEjCFDYac/s1600/pic19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-3ZIRyV7JlYk/Te8tIPYwcEI/AAAAAAAADZA/kXVEjCFDYac/s320/pic19.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="el-GR" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Και αυτό το παράθυρο μας παρουσιάζει ένα γνώριμο βήμα, οπότε και εδώ απλά πατάμε το κουμπί &lt;/span&gt;INSTALL&lt;span lang="el-GR"&gt; για να συνεχιστεί η διαδικασία της εγκατάστασης.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-UKQGrfmC9Oo/Te8tPqOhMzI/AAAAAAAADZE/7VyDj3BHNWk/s1600/pic20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-UKQGrfmC9Oo/Te8tPqOhMzI/AAAAAAAADZE/7VyDj3BHNWk/s320/pic20.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το παράθυρο απλά επιβεβαιώνουμε ότι δεν υπάρχει κανένα πρόβλημα και απλά πατάμε το κουμπί &lt;/span&gt;NEXT&lt;span lang="el-GR"&gt; για να συνεχίσουμε στο επόμενο βήμα.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-3QaMjBR-4JQ/Te8tYuLWTUI/AAAAAAAADZI/7KAG3C983Fo/s1600/pic21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://1.bp.blogspot.com/-3QaMjBR-4JQ/Te8tYuLWTUI/AAAAAAAADZI/7KAG3C983Fo/s320/pic21.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang="el-GR"&gt;Σε αυτό το βήμα αφήνουμε την πρώτη επιλογή ενεργοποιημένη. Αν και η δεύτερη φαίνεται πιο λογική, δεν θα προσθέσει την κονσόλα διαχείρισης. Με την πρώτη επιλογή, αν και λέει ότι θα φτιάξει ένα καινούργιο &lt;/span&gt;instance&lt;span lang="el-GR"&gt; δεν θα γίνει στην πραγματικότητα. Κατά την εγκατάσταση θα βρει το ίδιο εγκαταστημένο &lt;/span&gt;instance&lt;span lang="el-GR"&gt; και απλά θα συνεχίσει μόνο με την εγκατάσταση της κονσόλας.
