﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.howtodothings.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>HowToDoThings.com Recent Databases Articles</title>
 <link>http://www.howtodothings.com/computers/c1222-databases.html/view-all</link>
 <description>A list of recent articles by category as Teasers.</description>
 <language>en</language>
<item>
 <title>How To Optimize MySQL Queries</title>
 <link>http://www.howtodothings.com/computers-internet/how-to-optimize-mysql-queries</link>
 <description></description>
 <comments>http://www.howtodothings.com/computers-internet/how-to-optimize-mysql-queries#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1236-mysql.html">Open Source</category>
 <pubDate>Mon, 18 Aug 2008 12:57:39 -0500</pubDate>
 <dc:creator>kakulz</dc:creator>
 <guid isPermaLink="false">18994 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Code a Matrix Report in SQL</title>
 <link>http://www.howtodothings.com/computers-internet/how-to-code-a-matrix-report-in-sql</link>
 <description>&lt;p&gt;A matrix report is a grid-like representation of data. It has a row of labels, a column of labels and, in a grid, data related to both row and column. Matrix reports are also called crosstab reports. &lt;/p&gt;
&lt;p&gt;A matrix report has one group of data for rows, one group of data for columns, one group of data cross-product and one group of data as the value for cross-product. The cross-product group represents all possible combinations of row and column groups.&lt;/p&gt;
&lt;p&gt;Let&#039;s take a look at an example. Assume you have a table called Inv_summary. It has three columns: Inv_date, Inv_status and Inv_value. Now, you want to generate a report that shows total value of open and close invoices for each month, for example like below.&lt;/p&gt;
&lt;p&gt;MONTH                          OPEN       CLOSE&lt;/p&gt;
&lt;p&gt;--------                      ------------         ------------&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers-internet/how-to-code-a-matrix-report-in-sql&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers-internet/how-to-code-a-matrix-report-in-sql#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1238-oracle.html">Oracle</category>
 <pubDate>Wed, 12 Mar 2008 15:45:05 -0500</pubDate>
 <dc:creator>ndoshi</dc:creator>
 <guid isPermaLink="false">16737 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Add Day, Hour, Minute, Second to a Date Value in Oracle</title>
 <link>http://www.howtodothings.com/computers-internet/how-to-add-day-hour-minute-second-to-a-date-value-in-oracle-0</link>
 <description>&lt;p class=&quot;MsoNormal&quot;&gt;Date arithmetic is very common in database application. In Oracle, you can add, subtract  and compare DATE columns, but you can not multiply or divide it. Oracle stores century, year, month, day, hour, min and seconds as part of the DATE column.&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;Now let’s take a look at how to add day/hour/minute/second to a date value. Oracle expects a number constant in date arithmetic as number of days. In other words, you need to convert hour, minute and seconds to fraction of a day and then you can add or subtract that value from a date value. Here are some examples: &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers-internet/how-to-add-day-hour-minute-second-to-a-date-value-in-oracle-0&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers-internet/how-to-add-day-hour-minute-second-to-a-date-value-in-oracle-0#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1238-oracle.html">Oracle</category>
 <pubDate>Mon, 03 Mar 2008 16:46:14 -0600</pubDate>
 <dc:creator>ndoshi</dc:creator>
 <guid isPermaLink="false">16426 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Use Structured Query Language (SQL)</title>
 <link>http://www.howtodothings.com/computers-internet/how-to-use-structured-query-language-sql</link>
 <description>&lt;p&gt;Structured Query Language (SQL) is a computer language for creating database and manipulating data. SQL is an ANSI (American National Standard Institute) standard and is supported by almost all Relational Data Base Management Systems (RDBMS) like Oracle, MySQL, SQLServer, MS Access, PostGreSQL etc. SQL has two parts: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Data Definition Language (DDL): to create, alter, or drop tables and indexes. &lt;/li&gt;
&lt;li&gt;Data Manipulation Language (DML): to insert, update, retrieve or delete the data in the tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here&#039;s how to use SQL. &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers-internet/how-to-use-structured-query-language-sql&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers-internet/how-to-use-structured-query-language-sql#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1236-mysql.html">Open Source</category>
 <category domain="http://www.howtodothings.com/computers/c1238-oracle.html">Oracle</category>
 <pubDate>Mon, 25 Feb 2008 13:49:37 -0600</pubDate>
 <dc:creator>kakulz</dc:creator>
 <guid isPermaLink="false">16226 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Get Rid of Duplicate Rows in an Oracle SQL Table</title>
 <link>http://www.howtodothings.com/computers-internet/how-to-get-rid-of-duplicate-rows-in-an-oracle-sql-table</link>
 <description>&lt;p&gt;
If you are using Oracle Database, a common problem is duplicate rows in tables. Usually this happens when unique constraints are removed during loading.  Whatever may be the reason, you can remove duplicate records. Duplicate records have identical values for all columns (OR columns that are part of unique key).
&lt;/p&gt;
&lt;p&gt;
There is more than one way to delete duplicate records. Let&#039;s assume Table_A has the following data:
&lt;/p&gt;
&lt;p&gt;
Col1    Col2&lt;br /&gt;
------    -------&lt;br /&gt;
101    201&lt;br /&gt;
102    202&lt;br /&gt;
103    203&lt;br /&gt;
102    202&lt;br /&gt;
104    204&lt;br /&gt;
101    201&lt;/p&gt;
&lt;p&gt;Let&#039;s look at the first method.
&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers-internet/how-to-get-rid-of-duplicate-rows-in-an-oracle-sql-table&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers-internet/how-to-get-rid-of-duplicate-rows-in-an-oracle-sql-table#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1238-oracle.html">Oracle</category>
 <pubDate>Thu, 31 Jan 2008 11:18:09 -0600</pubDate>
 <dc:creator>ndoshi</dc:creator>
 <guid isPermaLink="false">15345 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Use Formatting in Oracle SQL</title>
 <link>http://www.howtodothings.com/computers/how-to-use-formatting-in-oracle-sql</link>
 <description>&lt;p&gt;Once you retrieve your data, you should think about how you would like to view it. You can do a lot of formatting in Oracle SQL, which translates into saved time for you. After all who wants dirty data?&lt;/p&gt;
&lt;p&gt;Formatting is a presentation issue. It allows you to present the data you have gathered so that it looks good. And as someone once said, &amp;quot;Perception is key.&amp;quot; I use the following 8 formatting tricks. There are many more, but the ones below are essential to know.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/how-to-use-formatting-in-oracle-sql&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/how-to-use-formatting-in-oracle-sql#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1238-oracle.html">Oracle</category>
 <pubDate>Thu, 25 Oct 2007 14:20:26 -0500</pubDate>
 <dc:creator>miniguru</dc:creator>
 <guid isPermaLink="false">9197 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Use Oracle SQL</title>
 <link>http://www.howtodothings.com/computers/how-to-use-oracle-sql</link>
 <description>&lt;p&gt;SQL is shorthand for Structured Query Language. Oracle SQL is a language and not an application. It is a language that can be used to communicate with databases. Oracle SQL can be used to query databases and analyze data.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/files/u10023/how-to-use-oracle.jpg&quot; alt=&quot;how to use oracle&quot; hspace=&quot;50&quot; width=&quot;268&quot; height=&quot;200&quot; align=&quot;middle&quot; /&gt;
&lt;p&gt;Before you use Oracle SQL, you need to understand what a database is. What is a database? It’s a collection of data stored in an organized fashion. The data is stored as Tables inside of a database. Data within tables are stored as rows. All data within a database is either a column or a row. Vertical data is called a column, and horizontal data is called a row. &lt;/p&gt;
&lt;p&gt;Oracle SQL is composed of keywords such as SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY. The 6 keywords mentioned above allow you to query a database and analyze its data.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/how-to-use-oracle-sql&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/how-to-use-oracle-sql#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1238-oracle.html">Oracle</category>
 <pubDate>Thu, 20 Sep 2007 14:31:33 -0500</pubDate>
 <dc:creator>miniguru</dc:creator>
 <guid isPermaLink="false">7775 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Learn MySQL Commands</title>
 <link>http://www.howtodothings.com/computers/a4590-how-to-learn-mysql-commands.html</link>
 <description>&lt;p&gt;A database organizes data so that it can be easily accessed, altered, and managed.  Like virtually all database software, MySQL uses &lt;strong&gt;S&lt;/strong&gt;structured &lt;strong&gt;Q&lt;/strong&gt;uery &lt;strong&gt;L&lt;/strong&gt;anguage (SQL-pronounced sequel), the standard language for requesting information from a database.  It is an open-source software, meaning that its free to use and modify for your personal use.  Despite it&#039;s low price, MySQL has increasingly found wide adoption in industry because of its fast performance, reliability, ease of use, and versatility in working with programming languages.  Join the 5 million active users of MySQL including NASA, FedEx and the computer nerd down the block by learning to use the basic asdcommands of MySQL.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a4590-how-to-learn-mysql-commands.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a4590-how-to-learn-mysql-commands.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1236-mysql.html">Open Source</category>
 <pubDate>Thu, 22 Feb 2007 22:13:00 -0600</pubDate>
 <dc:creator>Daniel452</dc:creator>
 <guid isPermaLink="false">3370 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Convert Access to MySQL</title>
 <link>http://www.howtodothings.com/computers/a3744-how-to-convert-access-to-mysql.html</link>
 <description>&lt;p&gt;Both Microsoft Access and MySQL have found wide use in many companies though for different reasons. The main advantage of Access is its relative ease of use while MySQL&#039;s strength comes from its versatility. MySQL&#039;s versatility allows it to work in conjunction with programs written in various languages as well as even Access. It allows multiple-user access, makes management of large databases easier, provides increased security, and simplifies backup management. In addition MySQL is provided free of charge. To migrate from an Access to MySQL we will be using a free program called DBTools. DBTools has a feature that allows us to directly import data from Access files.  &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a3744-how-to-convert-access-to-mysql.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a3744-how-to-convert-access-to-mysql.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1236-mysql.html">Open Source</category>
 <pubDate>Mon, 02 Oct 2006 23:44:00 -0500</pubDate>
 <dc:creator>Daniel452</dc:creator>
 <guid isPermaLink="false">2612 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>How To Install MySQL</title>
 <link>http://www.howtodothings.com/computers/a3734-how-to-install-mysql.html</link>
 <description>&lt;p&gt;MySQL (pronounced My-Ess-Cue-Ell) is a powerful open source relational database management system that uses SQL. This means that MySQL stores data in tables rather than in one large file. This allows for greater efficiency, flexibility, and speed. MySQL is often used in conjunction with other products from the open source community such as PHP and Apache. This tutorial will teach you how to install and configure MySQL on your computer.&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a3734-how-to-install-mysql.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a3734-how-to-install-mysql.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1236-mysql.html">Open Source</category>
 <pubDate>Sun, 01 Oct 2006 21:52:00 -0500</pubDate>
 <dc:creator>Daniel452</dc:creator>
 <guid isPermaLink="false">2602 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>Backup remote DB locally</title>
 <link>http://www.howtodothings.com/computers/a918-backup-remote-db-locally.html</link>
 <description>&lt;p&gt;How to backup a remote database directly to the local machine.&lt;br&gt;&lt;br&gt;My company had a server with a nearly-full hard disk.  I needed to backup the database but didn&#039;t have enough disk space to store both database and backup.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
IBConsole executes the backup command on the server and only seems to allow the backup file to be written to the same machine.  To backup to my local machine I had to use GBAK in a command prompt, like so&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
gbak -b -z ServerName:C:\DatabasePath\DatabaseName.gdb c:\MyLocalBackupPath\MyLocalBackupName.gbk -verbose -user&lt;br&gt;&lt;br /&gt;
sysdba -password masterkey&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
This did the trick!&lt;/p&gt;
</description>
 <comments>http://www.howtodothings.com/computers/a918-backup-remote-db-locally.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1222-databases.html">Databases</category>
 <pubDate>Thu, 07 Aug 2003 23:00:00 -0500</pubDate>
 <dc:creator>Peter5</dc:creator>
 <guid isPermaLink="false">146 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>Microsoft access cannot start</title>
 <link>http://www.howtodothings.com/computers/a913-microsoft-access-cannot-start.html</link>
 <description>&lt;p&gt;A solution to the error message &quot;Microsoft access cannot start because there is no license for it on this machine&quot;.&lt;br&gt;&lt;br&gt;I have seen this error arise a few times now.  It often occurs after you have installed MS Access.  When you try to start access you are presented with the error.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&quot;Microsoft access cannot start because there is no license for it on this machine&quot;.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
Access then closes.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
Strangely enough this problem is caused by a font.  To fix the problem follow these instructions.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
1) Find the font named Hatten.TTF in your {windows}\fonts folder (usually c:\windows\fonts).&lt;br&gt;&lt;br /&gt;
2) Rename the file to Hatten.TTFX&lt;br&gt;&lt;br /&gt;
3) Reinstall MS ACCESS&lt;br&gt;&lt;br /&gt;
4) Rename the font file back to Hatten.TTF&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
Access will now start without any problems.&lt;/p&gt;
</description>
 <comments>http://www.howtodothings.com/computers/a913-microsoft-access-cannot-start.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1222-databases.html">Databases</category>
 <pubDate>Wed, 23 Jul 2003 23:00:00 -0500</pubDate>
 <dc:creator>Peter5</dc:creator>
 <guid isPermaLink="false">144 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>Make ADO connection string at runtime</title>
 <link>http://www.howtodothings.com/computers/a978-make-ado-connection-string-at-runtime.html</link>
 <description>&lt;p&gt;How to use ADO connection string dialog in your application&lt;br&gt;&lt;br&gt;Udocumented, can be found in ADODB.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
NewConnectionString := PromptDataSource (0, CurrentConnectString);&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
NewConnectionString and CurrentConnectString are strings.&lt;br&gt;&lt;br /&gt;
You can leave CurrentConnectString blank or replace with  &#039;&#039;,&lt;br&gt;&lt;br /&gt;
if you pass it the dialog will show up with current configuration.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;/p&gt;
</description>
 <comments>http://www.howtodothings.com/computers/a978-make-ado-connection-string-at-runtime.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1222-databases.html">Databases</category>
 <pubDate>Fri, 07 Feb 2003 23:00:00 -0600</pubDate>
 <dc:creator />
 <guid isPermaLink="false">177 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>Backup to another PC</title>
 <link>http://www.howtodothings.com/computers/a973-backup-to-another-pc.html</link>
 <description>&lt;p&gt;How to backup another PC to the local machine.&lt;br&gt;&lt;br&gt;The following GBAK command will backup a database on another server to the local machine.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
GBAK -B -user SYSDBA -password masterkey servername:c:\data\database.gdb c:\BackUps\localbackup.gbk&lt;br&gt;&lt;/p&gt;
</description>
 <comments>http://www.howtodothings.com/computers/a973-backup-to-another-pc.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1222-databases.html">Databases</category>
 <pubDate>Thu, 06 Feb 2003 23:00:00 -0600</pubDate>
 <dc:creator>Peter5</dc:creator>
 <guid isPermaLink="false">173 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>Tables, fields, and foreign keys</title>
 <link>http://www.howtodothings.com/computers/a1146-tables-fields-and-foreign-keys.html</link>
 <description>&lt;p&gt;A complicated SQL query I had to work out to tell me information about the current database.&lt;br&gt;&lt;br&gt;This query will tell you&lt;br&gt;&lt;br /&gt;
TableName, FieldName, FieldType, FieldSubType, ForeignTableName, ForeignFieldName&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
select distinct&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Rel.rdb$relation_name TableName,&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Rel.rdb$field_name FieldName,&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Fld.rdb$field_type FieldType,&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Fld.rdb$field_sub_type FieldSubType,&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;FCon.rdb$Relation_Name ForeignTableName,&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;FIseg.rdb$Field_Name ForeignFieldName&lt;br&gt;&lt;br /&gt;
from&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;rdb$relation_fields Rel&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;left join&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rdb$relation_constraints Con&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;on&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(Con.rdb$relation_name = Rel.rdb$relation_name and&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Con.rdb$constraint_type like &#039;FOREIGN%&#039;)&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;left join&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rdb$indices IDX&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;on&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a1146-tables-fields-and-foreign-keys.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a1146-tables-fields-and-foreign-keys.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c1222-databases.html">Databases</category>
 <pubDate>Wed, 26 Sep 2001 23:00:00 -0500</pubDate>
 <dc:creator>Peter5</dc:creator>
 <guid isPermaLink="false">310 at http://www.howtodothings.com</guid>
</item>
</channel>
</rss>
