<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Sample Database (Sakila)</title>
        <description>Forum to discuss the sample database included with MySQL</description>
        <link>http://forums.mysql.com/list.php?121</link>
        <lastBuildDate>Tue, 24 Nov 2009 20:24:49 +0000</lastBuildDate>
        <generator>Phorum 5.2.1-alpha</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?121,292247,292247#msg-292247</guid>
            <title>Where Dell's sample database (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,292247,292247#msg-292247</link>
            <description><![CDATA[ Where Dell's sample database was designed to represent an online DVD store, the Sakila sample database is designed to represent a DVD rental store. The Sakila sample database still borrows film and actor names from the Dell sample database.<br />
<br />
Development was accomplished using MySQL Query Browser for schema design, with the tables being populated by a combination of MySQL Query Browser and custom scripts, in addition to contributor efforts (see Section 6, “Acknowledgements”).]]></description>
            <dc:creator>bib go</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sat, 21 Nov 2009 10:26:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,292246,292246#msg-292246</guid>
            <title>The Sakila sample database (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,292246,292246#msg-292246</link>
            <description><![CDATA[ The Sakila sample database was designed as a replacement to the world [http://downloads.mysql.com/docs/#examples] sample database, also provided by MySQL AB.<br />
<br />
The world sample database provides a set of tables containing information on the countries and cities of the world and is useful for basic queries, but lacks structures for testing MySQL-specific functionality and new features found in MySQL 5.]]></description>
            <dc:creator>bib go</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sat, 21 Nov 2009 10:24:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,292245,292245#msg-292245</guid>
            <title>The Sakila sample database (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,292245,292245#msg-292245</link>
            <description><![CDATA[ The Sakila sample database was developed by Mike Hillyer, a former member of the MySQL AB documentation team, and is intended to provide a standard schema that can be used for examples in books, tutorials, articles, samples, etc. The Sakila sample database also serves to highlight the latest features of MySQL including Views, Stored Procedures, Triggers, etc.]]></description>
            <dc:creator>bib go</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sat, 21 Nov 2009 10:24:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,290817,290817#msg-290817</guid>
            <title>Database Design for a forum (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,290817,290817#msg-290817</link>
            <description><![CDATA[ So here's a rough sketch of what I was thinking would work for the database of a forum. I have a few questions though. First, is putting all the posts in one table too slow? Would it be better to have different post tables for different forums. Also I want to include searching in this forum(obviously) so I was thinking of using fulltext on the text column under posts. Only problem is then I will have to use MyISAM, which means I can not do transactions. Anyway to get around this, because when someone posts a message I want to also tell the author of the post that there has been a reply. <br />
<br />
Anyway here is a rough sketch:<br />
<br />
Forums:<br />
id(int)(primary), name(varchar)(unique), createdeleteboard (int-refers to some security table issuing moderator, officer, or member status etc.)<br />
<br />
Boards:<br />
id(int)(primary), forumid(int)(index), name(varchar)(unique), desc(varchar)(unique), created(bigint-seconds since epoch), viewsecurity(int), deletethreadsecurity(int), createthreadsecurity(int), stickythreadsecurity(int)<br />
<br />
Threads:<br />
id (int)(primary), boardid(int)(index), title(varchar)(unique), authorid(int)(index), created(bigint), stickied(int)(0 or 1 value), views(int),  viewsecurity(int), replysecurity(int), deletepostsecurity(int)<br />
<br />
Posts:<br />
id(int)(primary), threadid(int)(index), text(mediumtext)(fulltext), authorid(int)(index), imageid(int), created(bigint)<br />
<br />
Also I was thinking each User should have their own thread tables, which has threads that they started. this way I can alert/keep track of replies to their thread.<br />
<br />
UserPosts:<br />
id(int)(primary), threadid(int)(index), lastpostid(int)(index)]]></description>
            <dc:creator>Cameron Moore</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Thu, 12 Nov 2009 08:40:18 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,289619,289619#msg-289619</guid>
            <title>SQL Command Error for other ver (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,289619,289619#msg-289619</link>
            <description><![CDATA[ Dear Friend,...<br />
<br />
I have SQL command as follows: <br />
<br />
select r.no_reg kode,r.nama regional,jt.nama jenis,format(sum(t.jumlah),2) realisasi<br />
from regional r,jenis_type jt <br />
left join pasar_real t on r.no_reg=left(t.no_org,2 ) and jt.no_typei=left(t.no_type,3) and <br />
t.no_akt ='03001' and t.tgl between '2009-01-01' and '2009-02-30' where <br />
r.no_reg&lt;&gt;'00' and r.no_reg&lt;&gt;'08' group by r.no_reg,jt.no_typei<br />
<br />
so.... if I use Mysql Ver. 4.1 there's not any problems but if I use Mysql Ver.5 problems begun by order :<br />
<br />
Error Code : 1054<br />
Unknown column 'r.no_reg' in 'on clause'<br />
<br />
please help !!!]]></description>
            <dc:creator>basuki muhamad</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Thu, 05 Nov 2009 04:09:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,288519,288519#msg-288519</guid>
            <title>more example databases (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,288519,288519#msg-288519</link>
            <description><![CDATA[ On www.java-task.com you can find in each task an example database.]]></description>
            <dc:creator>Marco Marcellis</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Thu, 29 Oct 2009 13:02:46 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,286854,286854#msg-286854</guid>
            <title>Importing dbspaces from ASA database (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,286854,286854#msg-286854</link>
            <description><![CDATA[ Hello All,<br />
I am very new to MySQL.<br />
In my java based application i was using ASA(Adaptive Server Anywhere) and now we are upgrading to MySQL database. And as of now all my codes are based on my dbspaces which is in the ASA database.Is there anyway to import my dbspaces from ASA to MySQL?<br />
<br />
Please help me!!!<br />
<br />
Thank You!!!!]]></description>
            <dc:creator>Software guy</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Mon, 19 Oct 2009 09:34:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,283928,283928#msg-283928</guid>
            <title>hi (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,283928,283928#msg-283928</link>
            <description><![CDATA[ This is website very good<br />
<br />
---------------------------------------<br />
please contact me <br />
----------------------------<br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#114;&#101;&#119;&#114;&#106;&#114;&#121;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#99;&#122;">&#101;&#114;&#101;&#119;&#114;&#106;&#114;&#121;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#99;&#122;</a><br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#100;&#102;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#108;&#116;">&#101;&#100;&#102;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#108;&#116;</a><br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#114;&#101;&#119;&#114;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#108;&#118;">&#101;&#114;&#101;&#119;&#114;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#108;&#118;</a><br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#114;&#119;&#114;&#102;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#109;&#100;">&#101;&#114;&#119;&#114;&#102;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#109;&#100;</a><br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#114;&#119;&#101;&#114;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#109;&#101;">&#101;&#114;&#119;&#101;&#114;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#109;&#101;</a><br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#100;&#102;&#114;&#102;&#103;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#112;&#108;">&#100;&#102;&#114;&#102;&#103;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#112;&#108;</a><br />
<a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#120;&#99;&#122;&#100;&#120;&#99;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#115;&#107;">&#120;&#99;&#122;&#100;&#120;&#99;&#64;&#115;&#121;&#99;&#111;&#100;&#97;&#115;&#46;&#115;&#107;</a>]]></description>
            <dc:creator>margr atbritho</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Wed, 30 Sep 2009 03:10:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,283905,283905#msg-283905</guid>
            <title>both primary and unigue key at rental table (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,283905,283905#msg-283905</link>
            <description><![CDATA[ Why is there a UNIQUE KEY consinsting of 3 columns rental_date, costumer_id, inventory_id in the rental table? I believe that there should be a reason because indexes use drisk drive.<br />
<br />
(I saw in the changelog that this UNIQUE KEY was the old primary key and it has been replaced, I believe for performance reasons, but why keep it?.)]]></description>
            <dc:creator>Nikos NA</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 29 Sep 2009 23:21:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,283705,283705#msg-283705</guid>
            <title>Create Table to insert time values from 00:00:00 to 23:00.00 (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,283705,283705#msg-283705</link>
            <description><![CDATA[ Hello all, <br />
i'm really knew in database field and I need some help. I have in MySQL database a table &quot;employee&quot; with columns: work_date, week, dayname, shift_id. I would like to define an additional table and insert the time values:<br />
<br />
00:00 01:00 02:00 03:00 4:00 05:00 06:00 07:00 08:00 09:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 20:00 21:00 22:00 23:00<br />
<br />
How to create a time table, insert these values and join the table with employee table? <br />
<br />
Thanks]]></description>
            <dc:creator>Lamso Traore</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Mon, 28 Sep 2009 19:29:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,282860,282860#msg-282860</guid>
            <title>sample db on our website (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,282860,282860#msg-282860</link>
            <description><![CDATA[ we put the sample mysql db up on our website <a rel="nofollow"  href="http://www.windwardreports.com">http://www.windwardreports.com</a> for our users to test their reports and reporting apps. we know little stuff like setting up your sample db can really make life hell, and we're trying to get rid of all of that tedious work. <br />
<br />
That's why we created the Windward Report Engine. Companies need a powerful, secure enterprise-level Java/J2EE reporting engine to back their critical reporting and document generation systems. <br />
<br />
The Windward Engine installs easily, runs on one or more servers as part of your server-based application, and can easily produce hundreds of thousands of reports per day on a single server. The server is a pure Java product (and also is available as pure .NET). <br />
<br />
Even better news for you guys: When combined with the Windward report design tools AutoTag and AutoTag Max, users design, schedule and run reports from within Microsoft Office. That means you can turn over reporting to the business group and get back to more interesting work. <br />
<br />
You don't have to take my word for it. Check out this robust Java reporting engine for yourself.]]></description>
            <dc:creator>Tomas Ramirez</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Wed, 23 Sep 2009 21:43:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,282391,282391#msg-282391</guid>
            <title>How do i disable foreign key contraints using mysql 5.1? (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,282391,282391#msg-282391</link>
            <description><![CDATA[ I've tried <br />
<br />
set foreign_key_checks =0<br />
<br />
but it has not worked. any ideas?]]></description>
            <dc:creator>Chris Tolentino</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 22 Sep 2009 01:28:03 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,277822,277822#msg-277822</guid>
            <title>foreign keys of actor table not listed (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,277822,277822#msg-277822</link>
            <description><![CDATA[ the CREATE TABLE statement for actor does not reference film_actor.actor_id]]></description>
            <dc:creator>Terrence Brannon</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 25 Aug 2009 07:47:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,277010,277010#msg-277010</guid>
            <title>how to create dinamics droplist with mysql (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,277010,277010#msg-277010</link>
            <description><![CDATA[ Hello world.... jejeje  Like a first program.....<br />
<br />
I have a manu that  I need to show/hide the options below in the menu. I have a tree in the link-menu but I have a problem when I want to show the 3rd. options y the menu.<br />
<br />
This is my complete code:<br />
----------------------------------------------------------------------------------<br />
In the file &quot;prueba06.php&quot; I have that:<br />
<br />
<br />
&lt;html&gt; <br />
&lt;head&gt; <br />
&lt;title&gt;Prueba06&lt;/title&gt; <br />
<br />
&lt;script languaje=&quot;Javascript&quot;&gt; <br />
document.write('&lt;style type=&quot;text/css&quot;&gt;div.ocultable{display: none;}&lt;/style&gt;'); <br />
function MostrarOcultar(div){ <br />
if (document.getElementById){ <br />
var aux = document.getElementById(div).style;<br />
aux.display = aux.display? &quot;&quot;:&quot;block&quot;;<br />
} <br />
} <br />
&lt;/script&gt;<br />
<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&lt;!--<br />
.Estilo2 {font-size: 12px}<br />
.Estilo3 {<br />
color: #0033CC; /*AZUL FUERTE*/<br />
font-weight: bold;<br />
}<br />
.Estilo2-sub {font-size: 12px}<br />
.Estilo3-sub {<br />
color: #00330a; /*AZUL FUERTE*/<br />
font-weight: bold;<br />
}<br />
--&gt;<br />
&lt;/style&gt;<br />
&lt;script src=&quot;control-tipo-select.js&quot; language=&quot;JavaScript&quot;&gt;&lt;/script&gt;<br />
&lt;/head&gt; <br />
<br />
&lt;body&gt; <br />
&lt;h3&gt;&lt;center&gt;menu_desplegable_base_de_datos&lt;/center&gt;&lt;/h3&gt;<br />
&lt;table width=&quot;20%&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td height=&quot;30&quot; align=&quot;center&quot; valign=&quot;middle&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;!-- GRIS --&gt; &lt;span class=&quot;Estilo2&quot;&gt;MENU&lt;/span&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;?php<br />
include(&quot;conexion.php&quot;); <br />
$COD=$_REQUEST['cod_cat'];<br />
$CATEGORIA=$_REQUEST['categoria'];<br />
$registros=mysql_query(&quot;select * from categoria ORDER BY cod_cat&quot;);<br />
while($reg=mysql_fetch_array($registros)){ <br />
$COD=$reg['cod_cat'];<br />
$CATEGORIA=$reg['categoria'];<br />
?&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td bgcolor=&quot;#f1f1f1&quot;&gt;&lt;!-- ROSA gris --&gt;<br />
&lt;div id=&quot;&quot;&gt;&lt;a href=&quot;javascript:MostrarOcultar('id&lt;?php echo $COD;?&gt;');&quot; class=&quot;Estilo2 Estilo3&quot; id=&quot;&quot;&gt;&lt;?php echo $reg['categoria']; ?&gt;&lt;/a&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;div class=&quot;ocultable&quot; id=&quot;id&lt;?php echo $COD;?&gt;&quot;&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; bgcolor=&quot;#f9f9f9&quot;&gt;&lt;!-- ROSA --&gt;<br />
&lt;?php<br />
include(&quot;conexion.php&quot;); <br />
$COD=$_REQUEST['cod_sub_cat'];<br />
//$CATEGORIA=$_REQUEST['categoria'];<br />
$registros2=mysql_query(&quot;select subcategoria from subcategoria where categoria='$CATEGORIA' order by cod_sub_cat &quot;);<br />
while($reg2=mysql_fetch_array($registros2)){ <br />
$COD=$reg['cod_sub_cat'];<br />
$CATEGORIA=$reg['categoria'];<br />
$SUBCATEGORIA=$reg2['subcategoria'];<br />
?&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td bgcolor=&quot;#D5E6FF&quot;&gt;&lt;!-- AZUL claro --&gt;<br />
&lt;div id=&quot;&quot;&gt;&lt;a href=&quot;javascript:MostrarOcultar('id&lt;?php echo $COD;?&gt;');&quot; class=&quot;Estilo2 Estilo3&quot; id=&quot;&quot;&gt;&lt;?php echo $reg2['subcategoria']; ?&gt;&lt;/a&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;?php<br />
}<br />
?&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;ocultable&quot; id=&quot;id&lt;?php echo $COD;?&gt;&quot;&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; bgcolor=&quot;#f9f9f0&quot;&gt;&lt;!-- ROSA gris --&gt;<br />
&lt;?php <br />
include(&quot;conexion.php&quot;); <br />
$COD=$_REQUEST['cod_sub_cat_1'];<br />
$registros3=mysql_query(&quot;select subcategoria_1 from subcategoria_1 where subcategoria='$SUBCATEGORIA' order by cod_sub_cat_1&quot;);<br />
while($reg3=mysql_fetch_array($registros3)){ <br />
$COD=$reg['cod_sub_cat_1'];<br />
$SUBCATEGORIA=$reg2['subcategoria'];<br />
$SUBCATEGORIA_1=$reg3['subcategoria_1']; <br />
?&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td bgcolor=&quot;#E6E6FA&quot;&gt; &lt;!-- PÚRPURA claro --&gt;<br />
&lt;div id=&quot;&quot;&gt;&lt;a href=&quot;javascript:MostrarOcultar('id&lt;?php echo $COD;?&gt;');&quot; class=&quot;Estilo2-sub Estilo3-sub&quot; id=&quot;&quot;&gt;&lt;?php echo $reg3['subcategoria_1']; ?&gt;&lt;/a&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;?php<br />
}<br />
?&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;?php<br />
}<br />
?&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
----------------------------------------------------------------------------------<br />
<br />
In the File &quot;conexion.php&quot; I have that....<br />
&lt;?php<br />
$dbhost=&quot;localhost&quot;; // host del MySQL (generalmente localhost)<br />
$dbusuario=&quot;root&quot;; // aqui debes ingresar el nombre de usuario<br />
// para acceder a la base<br />
$dbpassword=&quot;&quot;; // password de acceso para el usuario de la<br />
// linea anterior<br />
$db=&quot;test&quot;; // Seleccionamos la base con la cual trabajar<br />
$conexion = mysql_connect($dbhost, $dbusuario, $dbpassword);<br />
mysql_select_db($db, $conexion);<br />
?&gt;<br />
<br />
----------------------------------------------------------------------------------<br />
I´m working in Windows Vista, Xampp and Joomla. I'm in the experimental phase proyect.<br />
<br />
In my case tu access to MySQL I need to type in the Prompt (cmd)<br />
c:\cd c:<br />
C:\Archivos de programa\xampp\mysql\bin&gt;mysql -p<br />
Enter password:<br />
Welcome to the MySQL monitor. Commands end with ; or \g.<br />
Your MySQL connection id is 188<br />
Server version: 5.1.33-community MySQL Community Server (GPL)<br />
<br />
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br />
<br />
show databases;<br />
+---------------------------+<br />
| Database |<br />
+---------------------------+<br />
| information_schema |<br />
| test |<br />
+---------------------------+<br />
<br />
use test;<br />
Database changed<br />
<br />
Aquí ya procedo a crear mis tablas:<br />
<br />
create table categoria (<br />
cod_cat int(2) NOT NULL auto_increment,<br />
categoria varchar(40) default NULL,<br />
primary key (cod)<br />
);<br />
<br />
create table subcategoria (<br />
cod_sub_cat int(2) NOT NULL auto_increment,<br />
categoria varchar(40) default NULL,<br />
subcategoria varchar(40) default NULL,<br />
primary key (cod)<br />
);<br />
<br />
create table subcategoria_1 (<br />
ccod_sub_cat_1 int(2) NOT NULL auto_increment,<br />
subcategoria varchar(40) default NULL,<br />
subcategoria_1 varchar(40) default NULL,<br />
primary key (cod)<br />
);<br />
<br />
Comprobar<br />
<br />
show tables;<br />
+------------------------+<br />
| Tables_in_test |<br />
+------------------------+<br />
| categoria |<br />
| subcategoria |<br />
| subcategoria_1 |<br />
+------------------------+<br />
<br />
<br />
<br />
Insertar datos en mis tablas<br />
<br />
insert into categoria (categoria,) values ('categoria-1'),('categoria-2'),('categoria-3'),('categoria-4');<br />
<br />
insert into subcategoria (categoria,subcategoria) values ('categoria-1','subcategoria-1');<br />
insert into subcategoria (categoria,subcategoria) values ('categoria-2','subcategoria-2.1'),('categoria-2','subcategoria-2.2'),('categoria-2','subcategoria-2.3');<br />
insert into subcategoria (categoria,subcategoria) values ('categoria-3','subcategoria-3.1'),('categoria-3','subcategoria-3.2'),('categoria-3','subcategoria-3.3'),('categoria-3','subcategoria-3.4'),('categoria-3','subcategoria-3.5');<br />
insert into subcategoria (categoria,subcategoria) values ('categoria-4','subcategoria-4.1'),('categoria-4','subcategoria-4.2'),('categoria-4','subcategoria-4.3');<br />
<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-1','CP jera'),('subcategoria-1','ritos'),('subcategoria-1','caque'),('subcategoria-1','colín'),('subcategoria-1','dencia'),('subcategoria-1','ula'),('subcategoria-1','relos');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-2.1','cion');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-2.2','Rep.Norte'),('subcategoria-2.2','Rep.Golfo'),('subcategoria-2.2','Rep.Paci'),('subcategoria-2.2','Rep.Cen');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-2.3','Ref-yta'),('subcategoria-2.3','Ref-ero'),('subcategoria-2.3','Ref-tlan'),('subcategoria-2.3','Ref-nca'),('subcategoria-2.3','Ref-inaCruz'),('subcategoria-2.3','Ref-ula');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-3.1','Hidro.SUR'),('subcategoria-3.1','Hidro.SUROESTE'),('subcategoria-3.1','Hidro.NOSOESTE');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-3.2','arell'),('subcategoria-3.2','MAZA');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-3.3','PolChuc');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-3.4','urgos');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-3.5','Luna');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-4.1','Sosa'),('subcategoria-4.1','Srrey'),('subcategoria-4.1','Sreón'),('subcategoria-4.1','Sahua'),('subcategoria-4.1','Scala'),('subcategoria-4.1','Smanca'),('subcategoria-4.1','Sjara'),('subcategoria-4.1','Srpio'),('subcategoria-4.1','Uterrey'),('subcategoria-4.1','Urpio'),('subcategoria-4.1','Sdoza'),('subcategoria-4.1','Sruz'),('subcategoria-4.1','Stlán'),('subcategoria-4.1','Senas'),('subcategoria-4.1','Sdero','2009-08,('subcategoria-4.1','Sex'),('subcategoria-4.1','Snando'),('subcategoria-4.1','Smico');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-4.2','960'),('subcategoria-4.2','961'),('subcategoria-4.2','964'),('subcategoria-4.2','965'),('subcategoria-4.2','970'),('subcategoria-4.2','971'),('subcategoria-4.2','975'),('subcategoria-4.2','977'),('subcategoria-4.2','980'),('subcategoria-4.2','981'),('subcategoria-4.2','982');<br />
insert into subcategoria_1 (subcategoria,subcategoria_1) values ('subcategoria-4.3','Cex'),('subcategoria-4.3','Cmex'),('subcategoria-4.3','Ctus'),('subcategoria-4.3','Centa'),('subcategoria-4.3','Conche'),('subcategoria-4.3','Cca'),('subcategoria-4.3','Clcos'),('subcategoria-4.3','Curgos'),('subcategoria-4.3','Cque');<br />
<br />
I have a manu that  I need to show/hide the options below in the menu. I have a tree in the link-menu but I have a problem when I want to show the 3rd. options y the menu. <br />
<br />
To send me an advise or solutions please send me a mail in: &lt;a href=&quot;mailto:benjaminvera@gmail.com&quot;&gt;benjamin&lt;/a&gt;<br />
LO QUE NO ME ESTÁ JALANDO ES EL SEGUNDO LINK (ARBOL) YA QUE NO ME FUNCIONAN PARA TODOS.... Intuyo que mi problema está en la tabla subcategoria_1 ya que solo me le el primer grupo y todos los demás grupos me muestran/ocultan el PRIMER GRUPO....<br />
Cómo puedo solucionar mi problemita....?????<br />
<br />
Saludos y espero también les pueda servir de algo este código.....]]></description>
            <dc:creator>Benjamín Vera</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Wed, 19 Aug 2009 23:12:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,276811,276811#msg-276811</guid>
            <title>Please do not use spaces in column names (1 reply)</title>
            <link>http://forums.mysql.com/read.php?121,276811,276811#msg-276811</link>
            <description><![CDATA[ the view 'customer_list' has a column with a space in it: 'zip code' which is created in sakila-schema.sql as follows:<br />
<br />
CREATE VIEW customer_list<br />
AS<br />
SELECT cu.customer_id AS ID, CONCAT(cu.first_name, _utf8' ', cu.last_name) AS name, a.address AS address, a.postal_code AS `zip code`,<br />
	a.phone AS phone, city.city AS city, country.country AS country, IF(cu.active, _utf8'active',_utf8'') AS notes, cu.store_id AS SID<br />
FROM customer AS cu JOIN address AS a ON cu.address_id = a.address_id JOIN city ON a.city_id = city.city_id<br />
	JOIN country ON city.country_id = country.country_id;<br />
<br />
<br />
I would appreciate it if this column did not have a space in it.<br />
<br />
Thank you for all your hard work in putting together this sample data. I greatly appreciate it.]]></description>
            <dc:creator>Terrence Brannon</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 18 Aug 2009 19:24:39 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,274564,274564#msg-274564</guid>
            <title>Retreving last distinct highest record in mysql (2 replies)</title>
            <link>http://forums.mysql.com/read.php?121,274564,274564#msg-274564</link>
            <description><![CDATA[ hello,<br />
<br />
tblquoteproposal<br />
<br />
id requestid QuotePraposalLink comment<br />
1     8               xyz1             rifsf<br />
2     8               xyz2             ri2sf<br />
3     9               xyz3             ri3sf<br />
4     9                xyz4             ri4sf<br />
<br />
In this table requestid is foregin key.<br />
there is also other table tblrequest which has requestid as primary key.   <br />
<br />
I WANT TO RETREIVE last(LATEST)_distinct highest REQUESTID Ie. ID 2 &amp; ID 4;<br />
I HAVE WRITTEN FOLLOWING QUERY BUT IT DOES NOT GIVE ME LATEST RECORD. <br />
<br />
<br />
<br />
select r.RequestId,r.ConsultantId,(select concat(FirstName,' ',LastName) from tbluser where UserId = v_userId) as &quot;Customer&quot;,<br />
               r.RequestDate,r.QuoteDetailsFileLink,r.Requestcomment,r.CustomerId,qp.QuotePraposalLink,qp.Comment <br />
      from tblrequest r <br />
      left outer join tblquoteproposal qp on r.RequestId=qp.RequestId where r.customerid=v_userId  group by r.RequestId order by qp.id ;]]></description>
            <dc:creator>hrishi patil</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Wed, 21 Oct 2009 02:19:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,273738,273738#msg-273738</guid>
            <title>Include Database automatically / silent (1 reply)</title>
            <link>http://forums.mysql.com/read.php?121,273738,273738#msg-273738</link>
            <description><![CDATA[ hello everybody,<br />
<br />
is there a possibility to inlcude a database automatically/silent?<br />
<br />
for example with a bat file or something else?<br />
<br />
thank you for all answers]]></description>
            <dc:creator> </dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sun, 09 Aug 2009 15:03:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,273155,273155#msg-273155</guid>
            <title>y3Game (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,273155,273155#msg-273155</link>
            <description><![CDATA[ Game description: Best and Latest Version of the Classic King of Fighters Series game including Ryu.<br />
- Released all 7 characters,with 5 hidden type characters<br />
- Added new effects<br />
- Added new stages<br />
- Improved &quot;Simple Key Mode&quot;, launching skills with one key is possible<br />
This game is an extremely large file (14.59 Megabytes), and will take a long while to load.<br />
Please be patient.<br />
Y3 is a directory of free mini games in flash and shockwaveWe are adding new fun games every day so please bookmark this page and come back! Unlike other sites, we don 't throw tons of ads and popups at you. Our servers are not overloaded so the games we have load fast!<br />
<a rel="nofollow"  href="http://www.y3.com/search-results/1340/dress-up-games">naruto games</a><br />
<a rel="nofollow"  href="http://www.ascotmortgage.com:">dallas fha loans</a>]]></description>
            <dc:creator>gracy smith</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sat, 25 Jul 2009 08:45:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,272765,272765#msg-272765</guid>
            <title>Merging Rows in a single table (1 reply)</title>
            <link>http://forums.mysql.com/read.php?121,272765,272765#msg-272765</link>
            <description><![CDATA[ Hi there experts, <br />
<br />
I'm doing a project called Time and Attendance. My table for the Time in/out looks like this. <br />
<br />
id, badgeid, dateandtime, comments. <br />
<br />
the output will be like this.<br />
<br />
id | badgeID | dateandtime       | comments<br />
----------------------------------------<br />
1  |  1001   | 03/07/09 09:30 AM | Check-In<br />
2  |  1002   | 03/07/09 10:00 AM | Check-In<br />
3  |  1001   | 03/07/09 06:30 PM | Check-Out<br />
4  |  1002   | 03/07/09 07:30 PM | Check-Out<br />
<br />
<br />
I want to have a report like this.<br />
<br />
id | badgeID | Check In Time     | Check Out Time     <br />
-----------------------------------------------------<br />
1  |  1001   | 03/07/09 09:30 AM | 03/07/09 06:30 PM<br />
2  |  1002   | 03/07/09 10:00 AM | 03/07/09 07:30 PM<br />
<br />
I need to merge two rows with the same date to make two columns for INs and OUTs. <br />
<br />
Please advice.<br />
<br />
Edz]]></description>
            <dc:creator>Eddie Felip</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sun, 09 Aug 2009 15:34:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,271333,271333#msg-271333</guid>
            <title>Mysql &amp;amp; Php source code and tutorial (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,271333,271333#msg-271333</link>
            <description><![CDATA[ Mysql &amp; php source code and tutorial form beginner to expert level all free<br />
by best professional developer.<br />
<br />
Read from here<br />
<br />
<a rel="nofollow"  href="http://www.sourcecode4you.com/">http://www.sourcecode4you.com/</a>]]></description>
            <dc:creator>sweta rathi</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sun, 12 Jul 2009 09:15:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,265031,265031#msg-265031</guid>
            <title>Need help in compelx query (1 reply)</title>
            <link>http://forums.mysql.com/read.php?121,265031,265031#msg-265031</link>
            <description><![CDATA[ Hello, I need to make quite complexed query:<br />
<br />
I need to select 'name' and 'link' and 'orde'r from 4 different tables and order them by 'order' column. dificult is that there is no similar values to make (where table1.id = table2.id). I need just put thees values in one SQL result but it must be ONE query. What sould I use ?]]></description>
            <dc:creator>Martynas Eskis</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sat, 06 Jun 2009 08:06:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,264350,264350#msg-264350</guid>
            <title>Sakila Sample DB only partially installs (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,264350,264350#msg-264350</link>
            <description><![CDATA[ Hello All <br />
<br />
I am new to this and trying to learn MySQL. I downloaded the sakila sample DB to use with the book I have. I am using MySQL 5.1 <br />
<br />
Here is what I have run into. Using SQLyog Enterprise Trial the Sakila Sample Database Schema doesn't install about half of the tables and other things as well. Here is an example of one Create Table command and the resulting error message. When I compare the script to the ones that did run I cannot find a syntax error. <br />
<br />
CREATE TABLE customer ( <br />
customer_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, <br />
store_id TINYINT UNSIGNED NOT NULL, <br />
first_name VARCHAR(45) NOT NULL, <br />
last_name VARCHAR(45) NOT NULL, <br />
email VARCHAR(50) DEFAULT NULL, <br />
address_id SMALLINT UNSIGNED NOT NULL, <br />
active BOOLEAN NOT NULL DEFAULT TRUE, <br />
create_date DATETIME NOT NULL, <br />
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, <br />
PRIMARY KEY (customer_id), <br />
KEY idx_fk_store_id (store_id), <br />
KEY idx_fk_address_id (address_id), <br />
KEY idx_last_name (last_name), <br />
CONSTRAINT fk_customer_address FOREIGN KEY (address_id) REFERENCES address (address_id) ON DELETE RESTRICT ON UPDATE CASCADE, <br />
CONSTRAINT fk_customer_store FOREIGN KEY (store_id) REFERENCES store (store_id) ON DELETE RESTRICT ON UPDATE CASCADE <br />
)ENGINE=INNODB DEFAULT CHARSET=utf8; <br />
<br />
Here is the accompanying error message: <br />
<br />
Error Code : 1005 <br />
Can't create table 'sakila.customer' (errno: 150) <br />
<br />
Execution Time : 00:00:00:000 <br />
Transfer Time : 00:00:00:000 <br />
Total Time : 00:00:00:000 <br />
<br />
Also MySQL Query Browser gives me this error msg as well: <br />
<br />
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE customer ( <br />
customer_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT' at line 1 <br />
<br />
Any help would be appreciated since I just blew two hours on research and can't find the answer. <br />
<br />
Thank you much!!!]]></description>
            <dc:creator>Steve Grigsby</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 26 May 2009 17:52:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,261177,261177#msg-261177</guid>
            <title>DATABASE MANAGEMENT SYSTEM (1 reply)</title>
            <link>http://forums.mysql.com/read.php?121,261177,261177#msg-261177</link>
            <description><![CDATA[ I need imidiate help for this project!<br />
<br />
I am a computer science student here in Cyprus but I don’t have a clue what its happening over here.<br />
<br />
Is it possible for anyone to help me????<br />
<br />
Please contact with me at my e-mail <a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#109;&#97;&#97;&#110;&#116;&#111;&#117;&#49;&#57;&#56;&#54;&#64;&#104;&#111;&#116;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#101;&#109;&#97;&#97;&#110;&#116;&#111;&#117;&#49;&#57;&#56;&#54;&#64;&#104;&#111;&#116;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a><br />
<br />
If you are willing to help me<br />
<br />
Thank you all in advance<br />
<br />
<br />
·         The project should be implemented using SQL commands that could be issued from Microsoft Access, or ORACLE Product SQL*PLUS or some other SQL environment.             <br />
<br />
Deliverables:<br />
<br />
The list of delivables to be handed in (both hard copy and electronic copy) on or by the hand-in date is as follows:<br />
<br />
       The Case Description.  In 2-5 pages produce a description of the case under study along with the main user requirements.  Expand the case given by suggesting queries and other system requirements which you deem useful to end-users. <br />
<br />
       The database model (Entity Relationship Model plus supporting narrative, including any assumptions made).  For the design of the ERM you should use an appropriate CASE tool and any one of the notations covered in the course. <br />
<br />
       A Relational Schema, which comprises listings of table definitions clearly identifying primary keys (underlined) and foreign keys (in italics).   <br />
<br />
       The code and results of data definition and manipulation (i.e. table creation, data insertion and the required SQL queries) including the appropriate test data.<br />
<br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
CASE: WoodWorks Ltd. <br />
<br />
 <br />
<br />
WoodWorks Ltd. is a wood products manufacturer in Cyprus. WoodWorks specializes in manufacturing all kinds of high-quality furniture components, adapted to the specific needs of individual customers (tailor-made). <br />
<br />
WoodWorks’ product range includes “Root-like WoodWorks” (furniture components manufactured from wood layers, surfaced on chipboard, MDF or plywood). It also includes molded plywood, and other woodworking, based on customers’ own designs and specifications. WoodWorks’ products are delivered in a semi-finished form and are used where high-quality requirements is a must. Furniture manufacturers and carpenters use them in the production of their own specialized woodworks.  Architects, interior designers, and specialized furniture manufacturers also use “Root-like WoodWorks” to make superior quality furniture and decorations. WoodWorks’ products have several specialized applications for the production of exclusive products, including decorative frames, furniture parts, hotel, restaurant and bank decorations, shop windows, dinner table tops, office worktops, kitchen cabinets etc. <br />
<br />
WoodWorks buys most of its raw materials from its mother company. In this way it manages to keep a relatively small stock of raw materials, thus having a cost advantage. All prices of raw materials are determined in accordance with a special agreement (cost plus system) between the two companies. WoodWorks also buys a small part of its raw material requirements from sources outside the group. <br />
<br />
WoodWorks’ production process is initiated when a customer places an order by supplying the company with his/her product design, choice of wood to be used, dimensions and other specifications.  The products ordered by individual customers normally differ in size, type of surface (wood layer or melamine), basic material (chipboard, MDF or plywood), finish, etc.  Because of these specific characteristics of the orders, each order’s price is calculated individually.  Obviously, the need arises for a quick and reliable costing system in order to facilitate the management of the company to quote the correct price to the customer, to estimate the profitability of the operations, and to help the pricing policies of the company.  The current system is a manual one handled by the company’s production manager who makes tentative cost estimates of the main production elements, i.e., raw materials, labour, plant usage and other operation costs. Subsequently, depending on this costing, the manager gives a price to the customer who decides whether to place the order or not. <br />
<br />
The top management of the company suspects that there might be a considerable degree of inaccuracy in this system, and this may cause serious problems to the business profitability, endangering the company’s long-term viability and its market position vis-à-vis existing competition from other local or foreign suppliers.  They have therefore requested that we implement an automated production costing system.<br />
<br />
<br />
<br />
<br />
For each order the following information will be recorded:<br />
<br />
Raw materials’ content - Types, quantities and costs of the materials required for the production of the specific order. <br />
Labour content - Number of workers, number of man-hours and hourly rates involved. <br />
Plant contents - Types of machines, machine hours and hourly machine costs required. <br />
Overhead contents - An additional percentage on top of the previous categories reflecting the overhead costs of the company, which cannot be directly allocated to any of the three categories above. <br />
 <br />
<br />
The system should initially keep the cost estimation and quotation given to the customer and then the placement of an order, if the customer decides to proceed with one. It should also offer the possibility of monitoring actual costs after the completion of an order, for reasons of verification, comparability and gradual improvement of its accuracy. The system will provide valuable information to the top management for reasons of cost monitoring, price quotations and marketing policies.<br />
<br />
Data should be maintained about employees, customers and suppliers. The system should also keep track of products, and available inventory, customer requests, quotations, and orders from customers and of course purchases from suppliers. For the completion of the product quotation there should be input made concerning employee man-hours, machinery usage and raw materials needed in order to calculate the total cost of the specific order. The system will then add a percentage for overhead costs to get the total cost. The involvement of specific employees (of different specializations) in the execution of each order will be recorded so as to know the task(s) assigned, at first, and then completed by each employee.  After an order has been executed, the user should add the actual cost of the specific order to the system, in order to compare actual costs with estimated costs.<br />
<br />
(Case created using data about Xyloform Ltd., a subsidiary of Cyprus Forest Industries Public Ltd.  <a rel="nofollow"  href="http://www.cfi.com.cy/index.php">http://www.cfi.com.cy/index.php</a> )<br />
<br />
 <br />
<br />
Requirements for the case study (deliverables in detail)<br />
<br />
1.       Develop an entity model to support the above scenario.  You may be required to make some assumptions.  Please state and explain these in your documentation.  <br />
<br />
Your model should comprise:<br />
<br />
 <br />
<br />
                          I.            An E-R diagram clearly showing the maximum and minimum cardinality for each pair of related entities.                                                                                       (30 marks) <br />
<br />
 <br />
<br />
                        II.            A normalised relational schema derived from the E-R diagram including appropriate attributes associated with each entity, clearly showing the primary key of each relation and the foreign key where applicable.  A data dictionary describing the type, size and meaning of each data element or field is also required.                                              (20 marks)<br />
<br />
Note:<br />
<br />
·         You may make suitable and intelligent assumptions.<br />
<br />
·         Anything that is not stated as part of the requirements may be assumed. <br />
<br />
·         Your assumptions must NOT override any user requirement.<br />
<br />
·         All assumptions must be clearly stated or explained in your report. <br />
<br />
<br />
<br />
2.       Set up tables, including well-designed test data, to implement the application, and identify appropriate integrity constraints to help ensure that data is entered with correct values.  You must make sure that your sample data covers all requirements of the queries in section 3 below.  Therefore queries that yield null results/ output will not gain full marks even if the SQL code is correct.  The code for creating and inserting data into the tables/relations must be provided.                                                                                                                                                                      (20 marks)<br />
<br />
 <br />
<br />
3.       Suggest meaningful end-user queries to extract data from your database. Set up and test all queries using an SQL product. Describe each query and provide both the SQL code and the output of the query in hard copy and on disk.                           (3 marks each- Total marks: 30 marks) <br />
<br />
 <br />
<br />
You are required to describe and then satisfy a minimum of 10 queries extracting data from your database.  These queries should vary from simple (single-table, one or more search criteria) to more advanced (multiple-table, using join, subqueries, sorting, functions, views, etc]]></description>
            <dc:creator>pertos petrou</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 05 May 2009 12:56:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,257201,257201#msg-257201</guid>
            <title>how to connect jsp with wamp server (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,257201,257201#msg-257201</link>
            <description><![CDATA[ Hi everyone, i am new to this forum.<br />
I am using WAMP server to process PHP scripts,there i am able to connect php with MYSQL database.<br />
Recently i am developing a project on Java JSP, is it possible to use same database(mysql) for jsp's also?<br />
if so how to connect?<br />
please help me]]></description>
            <dc:creator>ravi reddy</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Fri, 10 Apr 2009 09:50:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,252708,252708#msg-252708</guid>
            <title>Status Sakila sample database (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,252708,252708#msg-252708</link>
            <description><![CDATA[ I was wondering if the Sakila sample database is still maintained?<br />
<br />
A example front-end would be nice.]]></description>
            <dc:creator>Marcel Overdijk</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Sun, 15 Mar 2009 11:46:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,249880,249880#msg-249880</guid>
            <title>Sakila does not install (2 replies)</title>
            <link>http://forums.mysql.com/read.php?121,249880,249880#msg-249880</link>
            <description><![CDATA[ I cannot get the Sakila database uploaded to my MYSQL Server v5.1 OEM version.  I keep getting syntax errors using a remote session to the server.  I have used every possible syntax variation of the instructions downloaded from this site and have spoken with an experienced DB Administrator who says what I am doing should work. I am using a Win XP Service Pack 2 version PC to access the server using the command interface client as the instructions demand.  Help!]]></description>
            <dc:creator>Russell Taylor</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Fri, 10 Jul 2009 12:24:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,249692,249692#msg-249692</guid>
            <title>No result back (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,249692,249692#msg-249692</link>
            <description><![CDATA[ I have a mysql database with the following colletion utf8.<br />
In the database are row with en without umlauts, for example field there ar three field with the name place with has the value &quot;Kölsch'<br />
<br />
If i made the following query <br />
$query = &quot;SELECT * FROM &lt;database&gt; WHERE (Place = 'Kölsch')&quot;;                      <br />
In mij sql part of mysql editor then i got 3 rows back and this is good.<br />
<br />
but when i do the same query <br />
$query = &quot;SELECT * FROM &lt;database&gt; WHERE (Place = 'Kölsch')&quot;;      <br />
$result = mysql_query($query) <br />
   or die(&quot;Fout bij uitvoeren query&quot;);<br />
<br />
While ($row = mysql_fetch_assoc($result)){<br />
echo &quot;$row[Place]&lt;br&gt;&quot;;                                               <br />
}  <br />
<br />
in a .php document then it goes wrong, then it displays no rows.<br />
<br />
Can somebody help me?]]></description>
            <dc:creator>Jaap de Aap</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Wed, 25 Feb 2009 14:22:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,248779,248779#msg-248779</guid>
            <title>Need a solution on .sql files (2 replies)</title>
            <link>http://forums.mysql.com/read.php?121,248779,248779#msg-248779</link>
            <description><![CDATA[ In my project i have to execute .sql files, nearly 50 are there at present iam executing them by using cmd like this. mysql&gt; source &lt;path of file&gt; file1.sql;<br />
                                       ..                                          <br />
                                       ..<br />
                                       mysql&gt; source &lt;path of file&gt; file50.sql;   <br />
<br />
My requirement is to execute multiple .sql files at a single shot, can anyone know solution for this,help me.<br />
<br />
Thanks &amp; regards,<br />
Bhaskar]]></description>
            <dc:creator>Bhaskar **</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 31 Mar 2009 20:02:48 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,247744,247744#msg-247744</guid>
            <title>LOADING EMPOYEES DB INTO MYSQL (1 reply)</title>
            <link>http://forums.mysql.com/read.php?121,247744,247744#msg-247744</link>
            <description><![CDATA[ Hi Guys,<br />
<br />
I'm so new to this I'm ashamed to ask. I'm trying to load employees DB from launchpad. I've followed every command in the manual and varied my syntax but I keep getting the same error message. I used this syntax at the mysql prompt as stated in the manual:<br />
<br />
mysql&gt; $ mysql -t &lt; employees.sql;<br />
<br />
Please can someone let me know what I'm getting wrong here. I feel so stupid.<br />
<br />
Many thanks]]></description>
            <dc:creator>Eldad Antwi-Bekoe</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Tue, 31 Mar 2009 20:27:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?121,245604,245604#msg-245604</guid>
            <title>HELP! confusion with n*m tables - mysql database creation (no replies)</title>
            <link>http://forums.mysql.com/read.php?121,245604,245604#msg-245604</link>
            <description><![CDATA[ Hi, I've been using PHP and MySQL for a month or so basically im a beginner.<br />
im going to get straight to the point.<br />
<br />
This is the concept:<br />
A website that randomly selects a male and a female... and a user can rate out of say 0-10 how likely it is they are going to argue.. just an example so you understand the concept!<br />
<br />
For example... a picture of John Patel pops up and a picture of Shantelle Rocks.... the current user then gives them a rating of 7. Many users can log on and rate random selections..<br />
Now John Patel.. can log on and see that many users have given a rating of him and Shantelle Rocks... and can see the statistics of how likely it is they would argue.. soobviously it would be represented in a percent value.<br />
Shantelle Rocks can also do the same and log on her account and see that people have given a percentage of her and John Rocks.<br />
They both each can also see other people they have been compared to and the percentage raiting will also be shown next to them.<br />
<br />
I know that i need two tables. One for the list of males and on for the list of females.<br />
one person from each table is randomly chosen ready for a user to rate...<br />
<br />
This is the problem:<br />
Where would i store the percentage values? <br />
I could create a new table for each selection.. But if n is the sum of all males... and m is the sum of all females... then the number of tables needed to create JUST to store the percentage values between each male and female selection pairs...would be n*m tables.<br />
which is not a good way to go about doing it.. i think...!<br />
<br />
I hope there is an easier way to store these percentage values...<br />
Can anyone help me out on how to create such a system?<br />
Im sure theres an easier way to store these percentage values of each pair that pops up.<br />
Thanks in advance]]></description>
            <dc:creator>Pavan Kataria</dc:creator>
            <category>Sample Database (Sakila)</category>
            <pubDate>Mon, 02 Feb 2009 18:49:21 +0000</pubDate>
        </item>
    </channel>
</rss>
