<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - 16,126,127,128,129,142</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Tue, 08 Dec 2009 23:07:22 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - 16,126,127,128,129,142</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Retrun a result of zero if no query results</title>
			<link>http://www.daniweb.com/forums/thread244821.html</link>
			<pubDate>Tue, 08 Dec 2009 21:39:31 GMT</pubDate>
			<description><![CDATA[I have the following query in MS Access 2007 
 
SELECT Projects.BIMinspector, Sum(Projects.R9) AS SumOfR9 
FROM Projects 
GROUP BY Projects.BIMinspector 
HAVING (((Projects.BIMinspector)=[forms]![Form Report]![Elist])); 
 
How do I get it to return a result of zero if no records are found?? 
 
Any...]]></description>
			<content:encoded><![CDATA[<div>I have the following query in MS Access 2007<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT Projects.BIMinspector, Sum(Projects.R9) AS SumOfR9<br />
FROM Projects<br />
GROUP BY Projects.BIMinspector<br />
HAVING (((Projects.BIMinspector)=&#91;forms&#93;!&#91;Form Report&#93;!&#91;Elist&#93;));</pre><br />
<br />
How do I get it to return a result of zero if no records are found??<br />
<br />
Any suggestions would be great.<br />
<br />
Thanks,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>mela1006</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244821.html</guid>
		</item>
		<item>
			<title>help with sql join</title>
			<link>http://www.daniweb.com/forums/thread244816.html</link>
			<pubDate>Tue, 08 Dec 2009 21:02:55 GMT</pubDate>
			<description>Hi, I have the query below with the data and query below.  I want to select dates from Intable that are with a one month range of the Outtable dates and group them.  That works fine  
 
But I also want to select values within these data ranges where valuein=valueout. 
 
The end result should read....</description>
			<content:encoded><![CDATA[<div>Hi, I have the query below with the data and query below.  I want to select dates from Intable that are with a one month range of the Outtable dates and group them.  That works fine <br />
<br />
But I also want to select values within these data ranges where valuein=valueout.<br />
<br />
The end result should read.<br />
dateout total   mymatch<br />
2009-01-05   5	2<br />
2009-03-01   4	3<br />
2009-04-01   4	3<br />
<br />
instead of.<br />
dateout        total    mymatch<br />
2009-01-05  5	3<br />
2009-03-01  4	3<br />
2009-04-01  4	3<br />
<br />
================================<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT o.dateout, o.valueout AS total, count(i.datein) AS mymatch<br />
FROM (SELECT dateout, count(*) valueout FROM outtable GROUP BY dateout) o<br />
LEFT JOIN intable i ON i.datein BETWEEN o.dateout and ADDDATE(o.dateout, INTERVAL 1 MONTH)<br />
GROUP BY o.dateout, o.valueout</pre><br />
================================<br />
Outtable<br />
dateout                   valueout<br />
2009-01-05	05<br />
2009-01-05	06<br />
2009-01-05	07<br />
2009-01-05	50<br />
2009-01-05	51<br />
2009-03-01	05<br />
2009-03-01	06<br />
2009-03-01	07<br />
2009-03-01	18<br />
2009-04-01	05<br />
2009-04-01	06<br />
2009-04-01	07<br />
2009-04-01	21<br />
<br />
Intable<br />
datein                     valuein<br />
2009-01-05	12<br />
2009-01-06	06<br />
2009-01-08	07<br />
2009-03-03	06<br />
2009-03-04	07<br />
2009-03-05	05<br />
2009-04-02	05<br />
2009-04-15	06<br />
2009-04-16	07</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>alohaaaron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244816.html</guid>
		</item>
		<item>
			<title>Getting time out error while retrieving large data from MySQL.</title>
			<link>http://www.daniweb.com/forums/thread244636.html</link>
			<pubDate>Tue, 08 Dec 2009 08:29:02 GMT</pubDate>
			<description>Hi, 
 
I am using MySQL Version 5.0.45. I am getting time out error while trying to access large data.  
 
I am performing 2 operations: 
 
a) I am loading the data file into the database 
b) I am retrieving the data from the database. 
 
1) Loading the data file into the database.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am using MySQL Version 5.0.45. I am getting time out error while trying to access large data. <br />
<br />
I am performing 2 operations:<br />
<br />
a) I am loading the data file into the database<br />
b) I am retrieving the data from the database.<br />
<br />
1) Loading the data file into the database.<br />
<br />
   I have 9000 entries in my file. I am using by tab separated delimiter to delimit the field and loading into the database by the following command.<br />
 <pre style="margin:20px; line-height:13px">LOAD DATA LOCAL INFILE '/home/group1/cgi-bin/pubmed_abstract/writecatg.txt' INTO TABLE limits_title FIELDS TERMINATED BY '|' (sentences, searchterm, ids)<br />
#Here is the sample data:<br />
Perl is a highly capable, feature-rich programming language with over 22 years of development.| PERL | 32</pre><br />
<br />
2) Retrieving the data.<br />
<br />
In order to retrieve the data i am using &quot;select&quot; query and free full text searching for the user given query term (User will give search term say &quot;Perl&quot; the records that has term Perl will be retrieved).<br />
<br />
I am retrieving data like this:<br />
<br />
 <pre style="margin:20px; line-height:13px">select * from limits_title where title RLIKE'[[:&lt;:]]perl[[:&gt;:]]';</pre><br />
Most of the times user will give Boolean combination (For Example: PERL OR phython) <br />
<br />
The problem now is some times the result will not be displayed or it gives timed out error.<br />
<br />
How can  i solve this problem?<br />
<br />
Is there any method available such that i can fasten the retrieval and loading process?<br />
<br />
I am using PERL DBI to connect to MySQL.<br />
<br />
Any suggestions?<br />
<br />
Regards<br />
Vanditha</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Vandithar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244636.html</guid>
		</item>
		<item>
			<title>(rsErrorOpeningConnection) Could not obtain information about Windows NT.</title>
			<link>http://www.daniweb.com/forums/thread244606.html</link>
			<pubDate>Tue, 08 Dec 2009 05:58:30 GMT</pubDate>
			<description><![CDATA[I am trying to deploy a report to the Reporting Services Server but keep running up against this error: 
 
 
---Quote--- 
An error occurred during client rendering. 
An error has occurred during report processing. (rsProcessingAborted) 
Cannot create a connection to data source 'dataSource1'....]]></description>
			<content:encoded><![CDATA[<div>I am trying to deploy a report to the Reporting Services Server but keep running up against this error:<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  An error occurred during client rendering.<br />
An error has occurred during report processing. (rsProcessingAborted)<br />
Cannot create a connection to data source 'dataSource1'. (rsErrorOpeningConnection)<br />
Could not obtain information about Windows NT group/user 'DOMAIN\useradmin', error code 0x5.  <hr /> </td> </tr> </table> </div>Here’s my situation: Everything is being ran using DOMAIN\useradmin and the report is using a remote database.<br />
<br />
Reporting Services and SQL Server are both ran under DOMAIN\useradmin. DOMAIN\useradmin is a windows AD login and is part of the server machine Administrators group.<br />
<br />
My test report is using a data source model that in turn is using a data source that is connection to a database on a different SQL Server. The data source is using <span style="font-weight:bold">“Credentials stored securely in the report server”</span> with the options <span style="font-weight:bold">“Use as Windows credentials when connecting to the data source”</span> and <span style="font-weight:bold">“Impersonate the authenticated user after a connection has been made to the data source.”</span><br />
<br />
I am using the credentials of DOMAIN\useradmin that is the db owner of the remote database.<br />
<br />
DOMAIN\useradmin is assigned the roles, <span style="font-weight:bold">System Administrator, System User and Browser, Content Manager, My Reports, Publisher, Report Builder.</span><br />
<br />
So if everything is being run under an über AD account, why I am getting this Could not obtain information about Windows NT group/user 'DOMAIN\useradmin' error?<br />
<br />
Under normal circumstances , an AD login with Publisher permissions will developing reports using a datasource model created by DOMAIN\useradmin but using one of the remote database’s users which is mapped from yet another AD login.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>ChelleATL</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244606.html</guid>
		</item>
		<item>
			<title>How to create a flat file in Oracle</title>
			<link>http://www.daniweb.com/forums/thread244555.html</link>
			<pubDate>Tue, 08 Dec 2009 02:46:16 GMT</pubDate>
			<description>I would like to know how do i create a flat file from a query in oracle. For example i would like to create a select statement and the output to the flat file should be like this: 
 
name,location,address 
...... 
 
Later on, this task will be embedded in a unix script (the call for the procedure...</description>
			<content:encoded><![CDATA[<div>I would like to know how do i create a flat file from a query in oracle. For example i would like to create a select statement and the output to the flat file should be like this:<br />
<br />
name,location,address<br />
......<br />
<br />
Later on, this task will be embedded in a unix script (the call for the procedure if created in a procedure) and i would like to know how would i achieve that. The flat file will be stored in a unix directory. I used spooling but it is printing even the sql statements i have executed in sqlplus so i don't want to use that. I have searched on utl_file package, but this requires to be installed in the oracle and with that, i need to communicate to a DBA to add the package and it takes time or it will be laborious when it comes to requesting. What are other ways?<br />
<br />
Any help would be of much service.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>wolverine_ramir</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244555.html</guid>
		</item>
		<item>
			<title>ERD for tuition school</title>
			<link>http://www.daniweb.com/forums/thread244423.html</link>
			<pubDate>Mon, 07 Dec 2009 15:48:22 GMT</pubDate>
			<description><![CDATA[Hi All 
 
I'm new to this forum and i would be really greatful if I could get some help! 
 
Someone I know has his own tuition school and I must develop a website for him and I dont know lot about anythng to be honest. Not a great programmer or not very good with databases. It is more of a college...]]></description>
			<content:encoded><![CDATA[<div>Hi All<br />
<br />
I'm new to this forum and i would be really greatful if I could get some help!<br />
<br />
Someone I know has his own tuition school and I must develop a website for him and I dont know lot about anythng to be honest. Not a great programmer or not very good with databases. It is more of a college project.<br />
<br />
I'm developing it with PHP and xhtml, css etc.. and using MySql as the database.<br />
<br />
At the moment I am trying to design an Entity Relationship Diagram and im seriously struggling. I will give a description of the functionality of the site and any help would be appreciated.<br />
<br />
<span style="font-weight:bold">Functionality:</span><br />
<br />
The site will have four separate sections. A students section, teachers section, parents section and administrator section.<br />
<br />
Students can first sign up to the College to get their MyCollege privileges. When joining up the student will have to enter such information as name, address, date of birth, year at school, contact details etc… <br />
Once the student has an account on the College site he/she can log in to their own unique section of the site where they can view/edit/delete their personal details.<br />
They will then be able to enroll in a number of services, including various courses (English, Maths, Science etc...) which will show in dept information about the actual course including teacher, course outline, times etc…<br />
<br />
If a student attempts to enroll in a course which is full, or the time is clashing with another couyrse the student is enrolled in, the system will not allow the student to sign up to the chosen course, instead an email will be sent to the administrator of the site informing him that a new student wishes to sign up for a course. Because this student will already be a member of the system and all of his/her details will be in the database, it will be easy for the admin to contact the student and discuss other options. <br />
If the course is available then the student will have the option to pay upon arrival to their first class or pay online via PayPal. <br />
<br />
The student will then be added to the chosen course. Supervised study is another service available to the student. This will work in a similar fashion to the course enrolment, except instead of different subjects there will be different packages or time slots. E.g there is an evening study time slot and also a Saturday study time slot. When the student is enrolled in the supervised study service he/she will be able to view timetables and seating arrangements unique to them.<br />
<br />
The teacher sign up will be similar to that of the student except some of the personal details will be different. The teacher can log in to their own unique MyCollege which will have different functionality than the student’s section. If for example the teacher is tutoring in more than one course, he/she will be able to click on the course of choice, for example English, then the teacher will be able to see all of the students enrolled in that course. <br />
<br />
They will then be able to click into each of the individual students to see some of their information (non personal). The teacher will be able to grade students, leave comments and make recommendations about students which the administrator can later take on board, do out reports to give feedback to the parents and students themselves. <br />
<br />
The teacher will be able to upload lecture material from previous classes to that only the students enrolled in his/her course can view. The teacher will also be able to interactively take attendance on the system which will all be logged and attendance reports can then be generated on this information. A function where if the student is missing a class, an automatic email/SMS is sent out to the parent of the student is also needed.<br />
<br />
There will be a parents section where by the parent of a student attending the college can log in and observe how their son/daughter is doing; how their attendance is, how their academic performance is doing and if their keeping up with the material, and also to see if their teacher has any comments.<br />
<br />
The administrators section will be able to look at all aspects of the system. From approving students when they sign up, to checking attendance, checking academic performance of the students, making sure lecture material is being uploaded, adding/editing and removing members and teachers, reporting. Basically the admin will control every aspect of the system.<br />
<br />
Any help at all would be much appreciated.<br />
<br />
Thanks a Million<br />
Billy</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>billdara</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244423.html</guid>
		</item>
		<item>
			<title>How can I connect my database on my localhost site driven by cakephp</title>
			<link>http://www.daniweb.com/forums/thread244290.html</link>
			<pubDate>Mon, 07 Dec 2009 07:57:27 GMT</pubDate>
			<description><![CDATA[Hi guys, I'm not sure if this is the right category for this inquiry. I have my phpmyadmin working for my existing database but I couldn't make it to work. The site is running in xammp localhost. I have the data in place . I get the database to run but I couldn't connect it to my site so my layout...]]></description>
			<content:encoded><![CDATA[<div>Hi guys, I'm not sure if this is the right category for this inquiry. I have my phpmyadmin working for my existing database but I couldn't make it to work. The site is running in xammp localhost. I have the data in place . I get the database to run but I couldn't connect it to my site so my layout won't appear. need help badly.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>leahmarie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244290.html</guid>
		</item>
		<item>
			<title>Getting Field name from a select statement</title>
			<link>http://www.daniweb.com/forums/thread244064.html</link>
			<pubDate>Sun, 06 Dec 2009 09:28:40 GMT</pubDate>
			<description><![CDATA[Is it possible to get the columns name from a select statement involving more than two table. 
eg 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help...]]></description>
			<content:encoded><![CDATA[<div>Is it possible to get the columns name from a select statement involving more than two table.<br />
eg<br />
 <pre style="margin:20px; line-height:13px">SELECT a.field1, a.field2,b.field3,c.field4 <br />
FROM a,b,c <br />
WHERE a.field1 = b.field1 and a.field1 = c.field1</pre><br />
is there a mysql statement that returns a record set containing field1, field2, field3, field4 that can be sent to an array that can be used in a php script.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>awo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244064.html</guid>
		</item>
		<item>
			<title>mysql_num_rows(): supplied argument is not a valid MySQL result resource Problem</title>
			<link>http://www.daniweb.com/forums/thread244025.html</link>
			<pubDate>Sun, 06 Dec 2009 04:19:51 GMT</pubDate>
			<description><![CDATA[Hi i just did some codoing and heres the error i get when i try to use my register forum 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code...]]></description>
			<content:encoded><![CDATA[<div>Hi i just did some codoing and heres the error i get when i try to use my register forum<br />
 <pre style="margin:20px; line-height:13px">Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rpimager/public_html/RPImager/register.php on line 32<br />
Account created.</pre><br />
Here's the docs that i use it for. why i getting this error<br />
<br />
config.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?<br />
//Configuration File<br />
<br />
<br />
//Usually localhost<br />
$host = &quot;localhost&quot;;<br />
<br />
//Database Username<br />
$username = &quot;&quot;;<br />
<br />
//Database Password<br />
$dbpass = &quot;&quot;;<br />
<br />
//Database Name<br />
$dbname = &quot;rpimager_test&quot;;<br />
<br />
<br />
<br />
//----Do not edit below this line unless you know what you are doing.----<br />
//Connect to DB.<br />
$db=@mysql_connect (&quot;$host&quot;, &quot;$username&quot;, &quot;$dbpass&quot;) or die (&quot;&lt;b&gt;SQL Error&lt;/b&gt;&lt;Br/&gt;Please check your database connection settings.&quot;);<br />
mysql_select_db (&quot;$dbname&quot;);<br />
<br />
function user_login ($username, $password)<br />
<br />
{<br />
<br />
//take the username and prevent SQL injections<br />
<br />
$username = mysql_real_escape_string($username);<br />
<br />
//begin the query<br />
<br />
$sql = mysql_query(&quot;SELECT * FROM usersystem WHERE username = 'username' AND password = 'password' LIMIT 1&quot;);<br />
<br />
//check to see how many rows were returned<br />
<br />
$rows = mysql_num_rows($sql);<br />
<br />
if ($rows&lt;=0 )<br />
<br />
{<br />
<br />
echo &quot;Incorrect username/password&quot;;<br />
<br />
}<br />
<br />
else<br />
<br />
{<br />
<br />
//have them logged in<br />
<br />
$_SESSION['sername'] = $username;<br />
<br />
}<br />
}<br />
//Get data from SQL DB.<br />
$sql=mysql_query(&quot;SELECT `Value` FROM `general` WHERE `Name`='Title'&quot;) or die (mysql_error());<br />
while($row=mysql_fetch_array($sql)) $title = &quot;$row[Value]&quot;;<br />
<br />
$sql=mysql_query(&quot;SELECT `Value` FROM `general` WHERE `Name`='Ad_Code'&quot;) or die (mysql_error());<br />
while($row=mysql_fetch_array($sql)) $adcode = &quot;$row[Value]&quot;;<br />
<br />
$sql=mysql_query(&quot;SELECT `Value` FROM `general` WHERE `Name`='Ad_Code_Downloads'&quot;) or die (mysql_error());<br />
while($row=mysql_fetch_array($sql)) $adcode1 = &quot;$row[Value]&quot;;<br />
<br />
//Steralize a few vars.<br />
$search = stripslashes(strip_tags($_GET[search]));<br />
$filetype = stripslashes(strip_tags($_GET[ext]));<br />
$source = str_replace(&quot;|&quot;, &quot;&quot;, stripslashes(strip_tags($_GET[source])));<br />
if ($source == NULL) $source =&quot;all&quot;;<br />
$page = stripslashes(strip_tags($_GET[page]));<br />
if (!is_numeric($page)) $page = &quot;1&quot;;<br />
if ($page &lt;= 0) $page=&quot;1&quot;;<br />
<br />
?&gt;</pre><br />
register.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
include(&quot;config.php&quot;);<br />
<br />
if (isset($_POST['username']) &amp;&amp; isset($_POST['password']) &amp;&amp; isset($_POST['email']))<br />
<br />
&nbsp;<br />
<br />
{<br />
<br />
//Prevent SQL injections<br />
<br />
$username = mysql_real_escape_string($_POST['username']);<br />
<br />
$email = mysql_real_escape_string($_POST['email']);<br />
<br />
&nbsp;<br />
<br />
&nbsp;<br />
<br />
//Get MD5 hash of password<br />
<br />
$password = md5($_POST['password']);<br />
<br />
&nbsp;<br />
<br />
//Check to see if username exists<br />
<br />
$sql = mysql_query(&quot;SELECT username FROM usersystem WHERE username = 'username'&quot;);<br />
<br />
if (mysql_num_rows($s&gt;0))<br />
<br />
{<br />
<br />
die (&quot;Username taken.&quot;);<br />
<br />
}<br />
<br />
&nbsp;<br />
<br />
&nbsp;<br />
<br />
mysql_query(&quot;INSERT INTO usersystem (username, password, email) VALUES ( '$username', '$password', '$email')&quot;) or die (mysql_error()); echo &quot;Account created.&quot;; <br />
<br />
&nbsp;<br />
<br />
}<br />
<br />
?&gt;<br />
<br />
&nbsp;<br />
<br />
&lt;html&gt;&lt;/html&gt;<br />
<br />
&lt;form action=&quot;register.php&quot; method=&quot;post&quot;&gt;<br />
<br />
Username: &lt;input name=&quot;username&quot; type=&quot;text&quot; /&gt;<br />
<br />
Password: &lt;input type=&quot;password&quot; name=&quot;password&quot; /&gt;<br />
<br />
Email: &lt;input name=&quot;email&quot; type=&quot;text&quot; /&gt;<br />
<br />
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;<br />
<br />
&lt;/form&gt;</pre><br />
login.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
include(&quot;config.php&quot;);<br />
<br />
if (isset($_POST['username']) &amp;&amp; isset($_POST['password']))<br />
<br />
{&nbsp; &nbsp; <br />
<br />
user_login($_POST['username'], $_POST['password']);<br />
<br />
}<br />
<br />
?&gt;<br />
<br />
&lt;html&gt;&lt;/html&gt;<br />
<br />
&lt;form action=&quot;login.php&quot; method=&quot;post&quot;&gt;<br />
<br />
Username: &lt;input name=&quot;username&quot; type=&quot;text&quot; /&gt;<br />
<br />
Password: &lt;input type=&quot;password&quot; name=&quot;password&quot; /&gt;<br />
<br />
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;<br />
<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Gibson_Junk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244025.html</guid>
		</item>
		<item>
			<title>Hotel Room Reservation System</title>
			<link>http://www.daniweb.com/forums/thread243935.html</link>
			<pubDate>Sat, 05 Dec 2009 16:45:13 GMT</pubDate>
			<description>I need help here   anyone can give me heads up will be appreciated  
 
                     Hotel Room Reservation System 
Westin  owns  a chain  of  hotels  internationally  around the  world.  As a  world  renowned  hotel, it  is  their priority to ensure the efficiency of their services. As a...</description>
			<content:encoded><![CDATA[<div>I need help here   anyone can give me heads up will be appreciated <br />
<br />
                     Hotel Room Reservation System<br />
Westin  owns  a chain  of  hotels  internationally  around the  world.  As a  world  renowned  hotel, it  is  their priority to ensure the efficiency of their services. As a means to improve their services, they hire you to develop a database for their hotel room reservation. The database system should be able to keep track on reservation details, rooms and customer information.<br />
Each  hotel  of  Westin  offers  a  standardised  accommodation  package.  Each hotel  has  anywhere from twenty to  one hundred rooms . These rooms could  be either Standard  type, Deluxe type, Superior  type or  Family  type.  Some  rooms  are  facing  good  views  while  some  are  without  any  view.  All  rooms  are cater for two or more adults, and are charged on a room per night basis, regardless of whether they are occupied  by  one  or  two guests.  The  charge  per  room  per  night  is  standard  throughout  the  week . However, each room may have many different room facilities. A  customer  can  make  several  reservations. <br />
       Nevertheless,  a  room  can  only  be subject  to  one reservation, on a given day, at any given time. A reservation may involve one or more rooms. However, all  rooms  in  a  s ingle  reservation  must  have  the  same  arrival  and  departure  dates.  If  different  arrival dates  apply  then  separate  reservations  must  be  made.  Each  single  reservation  is  made  in  a  single name  regardless  of  how  many  guests  it  actually  involves.  When  a  reservation  is  made  the  room allocated  should  always  be  the  room  whose  vacant  period  best  matches  the  requested  reservation period, given that the room is of the type requested. The cus tomer needs to pay during the reservation, whereby  the  total  prices  are  calculated  based  on  number  of  room  reserved  per  night.  As  a  token  of appreciation,  Westin  offers  a  10%  discount  to  regular  customer  (customer  whic h  has  stayed  in  any chain of hotels for more than 10 times in a year).<br />
<br />
Example SQL queries and statements  that your databas e should be able to handle<br />
•List the available rooms group by their room types<br />
•List the chain of Westin hotels which has the most number of reservations.<br />
•Create report(s) to list the total number of reservations for each day/month/year for each chain of Westin hotels .<br />
•For each hotel, list the top five countries from where the customer originates from.<br />
•Create a trigger that will price a room at a disc ounted rate for rooms that had their reservations cancelled. You may set the discount at different rates depending on the days (e.g. 1 week before actual date = 20% discount, 1 day before 50% discount). This is  to encourage people to take up empty rooms and ensure that no room in the hotel is left empty (full occupancy = more money!)<br />
•Create a trigger that will automatically identify which c ustomer are the regular customers which will receive coupons for special offers.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Donno_db2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243935.html</guid>
		</item>
		<item>
			<title>e r diagram help for either time table generation r info retrieval system</title>
			<link>http://www.daniweb.com/forums/thread243828.html</link>
			<pubDate>Sat, 05 Dec 2009 05:16:45 GMT</pubDate>
			<description>i hv gt a project on time table information retrieval system with oracle as the back edn and vb as the front end so i woul d be really grateful if anyone could help me with the er diagram for time table . 
the entitites are faculty ,course which has a lab component  then class room info andtime...</description>
			<content:encoded><![CDATA[<div>i hv gt a project on time table information retrieval system with oracle as the back edn and vb as the front end so i woul d be really grateful if anyone could help me with the er diagram for time table .<br />
the entitites are faculty ,course which has a lab component  then class room info andtime slot as the main entity</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>aayush88</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243828.html</guid>
		</item>
		<item>
			<title>Database attaches as read-only, writes up permissions too</title>
			<link>http://www.daniweb.com/forums/thread243778.html</link>
			<pubDate>Fri, 04 Dec 2009 22:02:00 GMT</pubDate>
			<description><![CDATA[Hello, I've got some weird database issue, and I can't figure it out myself, so I'd like to ask for your help. 
My problem is the following: 
 
I've a working ASP.NET solution which relies on a MSSQL 2008 database, Express Edition. Now, I'm working on a WPF version of the same app, so I've copied...]]></description>
			<content:encoded><![CDATA[<div>Hello, I've got some weird database issue, and I can't figure it out myself, so I'd like to ask for your help.<br />
My problem is the following:<br />
<br />
I've a working ASP.NET solution which relies on a MSSQL 2008 database, Express Edition. Now, I'm working on a WPF version of the same app, so I've copied an instance of the database to my development machine, for testing my developing app in real-world circumstances.<br />
<br />
It had worked for a while, but recently, after copying the database again (like I did quite a lot of times), suddenly I wasn't able to modify the database, and got the error message, when I tried to modify it, running the app from Visual Studio: <br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Failed to update database &quot;C:\SQL\PARADATA.MDF&quot; because the database is read-only.  <hr /> </td> </tr> </table> </div>I'm attaching it form my app. First, I checked the access rights, and granted full rights to everybody (just to make sure it works). Now, when I attached again, got the same error message, went back to the access rights, and noticed that my recently added rights were gone. I run another circle, and the same thing happened.<br />
<br />
I'm not able to modify it from SSMS also, first it shows up as a read-only database (grayed out), then, when I set it to writable, update it, and nothing happens, but I don't receive any error message in this case.<br />
<br />
So, if anyone would be able to help, I'd really appreciate it. But the key issue here is (as I think) what happened between two usual database copy-paste which had caused this.. <br />
Any suggestions?<br />
<br />
Thanks in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>konczuras</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243778.html</guid>
		</item>
		<item>
			<title>SQL Error Maessage when executing INSERT</title>
			<link>http://www.daniweb.com/forums/thread243761.html</link>
			<pubDate>Fri, 04 Dec 2009 20:20:27 GMT</pubDate>
			<description><![CDATA[This is my database it executes with no error.   
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>This is my database it executes with no error.  <br />
<br />
 <pre style="margin:20px; line-height:13px">--Kudler Fine Food Database<br />
Create Database [VALMKudler_Fine_Foods]<br />
On Primary<br />
&nbsp; &nbsp;  (NAME=VALM_KudlerDB,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileName=&quot;C:\POS410\VALM_KudlerDB_dat.mdf&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE=10MB,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MAXSIZE=100MB,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILEGROWTH=10%)<br />
--Kudler Fine Foods<br />
LOG ON <br />
&nbsp; &nbsp;  (NAME=&quot;VALM_KudlerDB_log&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FILENAME=&quot;C:\POS410\VALM_KudlerDB_log.Idf&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  SIZE=5MB,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  MAXSIZE=100MB,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FILEGROWTH=20%)</pre><br />
This is my table it executes with no problems <br />
 <pre style="margin:20px; line-height:13px">--Job Tittle Table <br />
&nbsp; &nbsp;  CREATE TABLE [VALMKudler_Fine_Foods].dbo.tbljobtitle<br />
&nbsp; &nbsp;  ( jobID Int CONSTRAINT PK_jobID PRIMARY KEY Not Null,<br />
&nbsp; &nbsp; &nbsp;  jobEEO_1Class char(40) Not Null,<br />
&nbsp; &nbsp; &nbsp;  jobTitle char(40) Not Null,<br />
&nbsp; &nbsp; &nbsp;  jobDesc char(300) Not Null,<br />
&nbsp; &nbsp; &nbsp;  jobExempt_NonExe char(20) Not Null)</pre>]  <br />
       <br />
<br />
This is the insert I'm trying to execute but it keep coming up with errors. <br />
 <pre style="margin:20px; line-height:13px">--Accounting Clerk<br />
INSERT INTO[VALMKudler_Fine_Foods].dbo.tbljobtitle<br />
(<br />
[jobID],<br />
[jobEEO_1Class],<br />
[jobTitle],<br />
[jobDesc],<br />
[jobExempt_NonExe]<br />
)<br />
VALUES(<br />
'2000',<br />
'Office/Clerical',<br />
'Accounting Clerk'<br />
'Computes, classifies, records, verifies numerical data for use in maintaining<br />
accounting records.',<br />
'Non Exempt'<br />
)<br />
<br />
--Assistant Manager <br />
INSERT INTO[VALMKudler_Fine_Foods].dbo.tbljobtitle<br />
(<br />
[jobID],<br />
[jobEEO_1Class],<br />
[jobTitle],<br />
[jobDesc],<br />
[jobExempt_NonExe]<br />
)<br />
VALUES(<br />
'2010',<br />
'office/Clerical',<br />
'Assistant Manager',<br />
'Supervises and coordinates activities of workers in department of food store.<br />
Assists store manager in daily operations of store.',<br />
'Exempt'<br />
)</pre><br />
And here is the error message:<br />
<br />
Error Message:<br />
<br />
Msg 102, Level 15, State 1, Line 2<br />
Incorrect syntax near ']'.<br />
Msg 102, Level 15, State 1, Line 51<br />
Incorrect syntax near 'Places customer orders in bags. Performs carryout duties for customers.'.<br />
<br />
No matter what I try I still get an error message when I try to execute my inserts.   I'll take any suggestions or ideas!<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>GTR3521</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243761.html</guid>
		</item>
		<item>
			<title>PL/SQL</title>
			<link>http://www.daniweb.com/forums/thread243734.html</link>
			<pubDate>Fri, 04 Dec 2009 16:46:26 GMT</pubDate>
			<description>which version of MYSQL do support PL/SQL</description>
			<content:encoded><![CDATA[<div>which version of MYSQL do support PL/SQL</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>sandyzden</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243734.html</guid>
		</item>
		<item>
			<title>how to updete field for a set of records  from one record in the same table?</title>
			<link>http://www.daniweb.com/forums/thread243672.html</link>
			<pubDate>Fri, 04 Dec 2009 13:16:24 GMT</pubDate>
			<description><![CDATA[I would like to update 2 fields values from one record to a set of records in the same table: 
 
I tryed this: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>I would like to update 2 fields values from one record to a set of records in the same table:<br />
<br />
I tryed this:<br />
 <pre style="margin:20px; line-height:13px">UPDATE dd SET dd.comment = y.comment, dd.author = y. author<br />
FROM Table1 dd LEFT OUTER JOIN<br />
(SELECT * FROM Table1 WHERE Idx=1234) y<br />
ON dd.vin = y.vin<br />
WHERE dd.vin like '%WLS%'</pre><br />
vin and idx fields are unique keys<br />
My desire is to have the fields comment and author updated from the record which has idx=1234 to all the records whic contain in field vin 'WLS' string.<br />
thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>Teofil</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243672.html</guid>
		</item>
		<item>
			<title>insert pictures</title>
			<link>http://www.daniweb.com/forums/thread243622.html</link>
			<pubDate>Fri, 04 Dec 2009 09:28:11 GMT</pubDate>
			<description>How to write the query to *insert a picture* to mysql data field which is declared as *BLOB.* 
 
I would like to knw the* pure sql query* with out any involvement of a programing language.(If there is such) 
 
Thankx in advance.</description>
			<content:encoded><![CDATA[<div>How to write the query to <span style="font-weight:bold">insert a picture</span> to mysql data field which is declared as <span style="font-weight:bold">BLOB.</span><br />
<br />
I would like to knw the<span style="font-weight:bold"> pure sql query</span> with out any involvement of a programing language.(If there is such)<br />
<br />
Thankx in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>jrosh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243622.html</guid>
		</item>
		<item>
			<title>Adding an Identity Later T-SQL</title>
			<link>http://www.daniweb.com/forums/thread243607.html</link>
			<pubDate>Fri, 04 Dec 2009 08:20:23 GMT</pubDate>
			<description><![CDATA[Good Day All 
 
i have a Table with the ID Field that was not an identity Field. This Field has not Duplicates. Now later i want to Change this numeric Field as an Identity Field like this 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Good Day All<br />
<br />
i have a Table with the ID Field that was not an identity Field. This Field has not Duplicates. Now later i want to Change this numeric Field as an Identity Field like this<br />
<br />
 <pre style="margin:20px; line-height:13px">--STEP 7 ADD THE IDENTITY BACK IN TABLE MTM_ACTV_STAFF<br />
ALTER TABLE [New_Jaco].[dbo].[MTM_ACTV_STAFF]<br />
ALTER COLUMN [ID] IDENTITY(1,1)</pre><br />
but i get an Error that says<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Msg 156, Level 15, State 1, Line 3<br />
Incorrect syntax near the keyword 'IDENTITY'.  <hr /> </td> </tr> </table> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>vuyiswamb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243607.html</guid>
		</item>
		<item>
			<title>choice of join?!</title>
			<link>http://www.daniweb.com/forums/thread243603.html</link>
			<pubDate>Fri, 04 Dec 2009 08:04:25 GMT</pubDate>
			<description><![CDATA[Hi 
 
Trying to pull this off in one query but my and right & left joining is giving me unusual results... 
 
i have a 'product_style' table, an 'product_item' table, an 'addto' table and a 'removefrom' table - im monitoring when products are added/removed to/from the cart... and want to pull a...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
Trying to pull this off in one query but my and right &amp; left joining is giving me unusual results...<br />
<br />
i have a 'product_style' table, an 'product_item' table, an 'addto' table and a 'removefrom' table - im monitoring when products are added/removed to/from the cart... and want to pull a report for each product on how many times they're added, removed...<br />
<br />
the link goes product -&gt; item -&gt;add_to/remove_from ie. the add_to, remove_from table records items, and each item is associated to a product_style...<br />
<br />
my latest try was:<br />
 <pre style="margin:20px; line-height:13px">$sql = &quot;SELECT s.name,COUNT(a.id),COUNT(r.id) FROM product_items AS i <br />
LEFT JOIN watch_addtocart AS a ON a.id = i.id <br />
LEFT JOIN watch_removefromcart AS r ON r.id = i.id <br />
LEFT JOIN product_styles AS s ON s.id = i.product_style_id <br />
GROUP BY i.product_style_id&quot;;</pre><br />
but theres only one record in the addto table, and it produces 2 or 3 for random product...?!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>lifeworks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243603.html</guid>
		</item>
		<item>
			<title><![CDATA[Why this doesn't work?]]></title>
			<link>http://www.daniweb.com/forums/thread243532.html</link>
			<pubDate>Fri, 04 Dec 2009 02:10:41 GMT</pubDate>
			<description><![CDATA[In MySQL I have created database "*mydata*" with the table "*contacts*". The fields are as follow: 
 
*ID*    (Primary Key) (INT(10) 
*Name*    VARCHAR(45) 
*Title*    VARCHAR(45) 
*Address*    VARCHAR(45) 
*Comments*    TEXT 
 
Based on info at...]]></description>
			<content:encoded><![CDATA[<div>In MySQL I have created database &quot;<span style="font-weight:bold"><span style="color:Red">mydata</span></span>&quot; with the table &quot;<span style="font-weight:bold"><span style="color:red">contacts</span></span>&quot;. The fields are as follow:<br />
<br />
<span style="font-weight:bold"><span style="color:green">ID</span></span>    (Primary Key) (INT(10)<br />
<span style="font-weight:bold"><span style="color:green">Name</span></span>    VARCHAR(45)<br />
<span style="font-weight:bold"><span style="color:green">Title</span></span>    VARCHAR(45)<br />
<span style="font-weight:bold"><span style="color:green">Address</span></span>    VARCHAR(45)<br />
<span style="font-weight:bold"><span style="color:Green">Comments</span></span>    TEXT<br />
<br />
Based on info at <a rel="nofollow" class="t" href="http://www.webmasterforums.com/php-development/1683-php-form-entering-data-mysql-database.html" target="_blank">http://www.webmasterforums.com/php-d...-database.html</a> I have created following two files:<br />
<br />
<span style="font-weight:bold"><span style="color:green"><span style="color:Red">new_record.php</span></span></span><br />
 <pre style="margin:20px; line-height:13px">&lt;? <br />
&nbsp; &nbsp; $usr = &quot;myusername&quot;; <br />
&nbsp; &nbsp; $pwd = &quot;mypassword&quot;; <br />
&nbsp; &nbsp; $db = &quot;mydata&quot;; <br />
&nbsp; &nbsp; $host = &quot;localhost&quot;; <br />
<br />
&nbsp; &nbsp; # connect to database <br />
&nbsp; &nbsp; $cid = mysql_connect($host,$usr,$pwd); <br />
&nbsp; &nbsp; mysql_select_db($db); <br />
&nbsp; &nbsp; if (mysql_error()) { print &quot;Database ERROR: &quot; . mysql_error(); } <br />
<br />
?&gt; <br />
&lt;html&gt; <br />
&lt;head&gt; <br />
&lt;title&gt;Insert New Record&lt;/title&gt; <br />
&lt;/head&gt; <br />
&lt;body bgcolor=&quot;#ffffff&quot;&gt; <br />
<br />
&lt;h2&gt;Insert New Record&lt;/h2&gt; <br />
<br />
&lt;? <br />
&nbsp; &nbsp; # this is processed when the form is submitted <br />
&nbsp; &nbsp; # back on to this page (POST METHOD) <br />
&nbsp; &nbsp; if ($_SERVER['REQUEST_METHOD'] == &quot;POST&quot;)&nbsp; <br />
&nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; # escape data and set variables <br />
&nbsp; &nbsp; &nbsp; &nbsp; $Name = addslashes($_POST[&quot;Name&quot;]); <br />
&nbsp; &nbsp; &nbsp; &nbsp; $Title = addslashes($_POST[&quot;Title&quot;]); <br />
&nbsp; &nbsp; &nbsp; &nbsp; $Address = addslashes($_POST[&quot;Address&quot;]); <br />
&nbsp; &nbsp; &nbsp; &nbsp; $NOTES = addslashes($_POST[&quot;Comments&quot;]); <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # setup SQL statement <br />
$sql&nbsp; = &quot; INSERT INTO contacts &quot;; <br />
$sql .= &quot; (Name, Title, Address, Comments) VALUES &quot;; <br />
$sql .= &quot; ('$Name','$Title','$Address','$Notes') &quot;; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; #execute SQL statement <br />
&nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query($sql, $cid); <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # check for error <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (mysql_error()) { print &quot;Database ERROR: &quot; . mysql_error(); } <br />
<br />
print &quot;&lt;h3&gt;&lt;font color=red&gt;New Job Added&nbsp; - View it &lt;a href=show_last_record.php&gt;HERE&lt;/a&gt;&lt;/font&gt;&lt;/h3&gt;&quot;; <br />
} <br />
<br />
?&gt; <br />
<br />
&nbsp; &nbsp; &lt;form name=&quot;fa&quot; action=&quot;new_record.php&quot; method=&quot;POST&quot;&gt;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;table&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;tr&gt;&lt;td&gt;&lt;b&gt;Name: &lt;/b&gt; &lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;Name&quot; size=30&gt;&lt;/td&gt;&lt;/tr&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;tr&gt;&lt;td&gt;&lt;b&gt;Title: &lt;/b&gt; &lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;Title&quot; size=30&gt;&lt;/td&gt;&lt;/tr&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;tr&gt;&lt;td&gt;&lt;b&gt;Address: &lt;/b&gt; &lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;Address&quot; size=20&gt;&lt;/td&gt;&lt;/tr&gt; <br />
&nbsp; &nbsp; &lt;tr&gt;&lt;td valign=top&gt;&lt;b&gt;Comments: &lt;/b&gt; &lt;/td&gt;&lt;td&gt; &lt;textarea name=&quot;Comments&quot; rows=4 cols=30&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt; <br />
&nbsp; &nbsp; &lt;tr&gt;&lt;th colspan=2&gt;&lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Add Record&quot;&gt;&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;/table&gt; <br />
&nbsp; &nbsp; &lt;/form&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&lt;/body&gt; <br />
&lt;/html&gt;</pre><br />
and<br />
<br />
<span style="color:green"><span style="font-weight:bold"><span style="color:red">show_last_record.php</span></span></span><br />
 <pre style="margin:20px; line-height:13px">&lt;? <br />
&nbsp; &nbsp; $usr = &quot;myusername&quot;; <br />
&nbsp; &nbsp; $pwd = &quot;mypassword&quot;; <br />
&nbsp; &nbsp; $db = &quot;mydata&quot;; <br />
&nbsp; &nbsp; $host = &quot;localhost&quot;; <br />
<br />
&nbsp; &nbsp; # connect to database <br />
&nbsp; &nbsp; $cid = mysql_connect($host,$usr,$pwd); <br />
&nbsp; &nbsp; mysql_select_db($db); <br />
&nbsp; &nbsp; if (mysql_error()) { print &quot;Database ERROR: &quot; . mysql_error(); } <br />
<br />
?&gt; <br />
&lt;html&gt; <br />
&lt;head&gt; <br />
&lt;title&gt;This is Your New Record&lt;/title&gt; <br />
&lt;/head&gt; <br />
&lt;body&gt; <br />
&lt;?php <br />
<br />
function drawtable($qr) { <br />
&nbsp; &nbsp; // $qr = results of a mysql_query <br />
&nbsp; &nbsp; $rows = mysql_num_rows($qr); <br />
&nbsp; &nbsp; $toreturn = &quot;&lt;table style=\&quot;float: left;\&quot; border=\&quot;2\&quot;&gt;\n&quot;; <br />
&nbsp; &nbsp; $toreturn .= &quot;&lt;tr&gt;\n&quot;; <br />
&nbsp; &nbsp; for ($i=0; $i&lt;mysql_num_fields($qr); $i++) {&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $toreturn .= &quot;\t&lt;th&gt;&quot;.mysql_field_name($qr,$i).&quot;&lt;/th&gt;\n&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; $toreturn .= &quot;&lt;/tr&gt;\n&quot;; <br />
&nbsp; &nbsp; for ($i=0; $i&lt;$rows; $i++) {&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $row = mysql_fetch_row($qr); <br />
&nbsp; &nbsp; &nbsp; &nbsp; $cols = sizeof($row); <br />
&nbsp; &nbsp; &nbsp; &nbsp; $toreturn .= &quot;&lt;tr&gt;\n&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; for ($x=0; $x &lt; $cols; $x++) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($row[$x]==NULL){ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $row[$x]='&amp;nbsp;'; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $toreturn .= &quot;\t&lt;td&gt;$row[$x]&lt;/td&gt;\n&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; $toreturn .= &quot;&lt;/tr&gt;\n&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; $toreturn .= '&lt;/table&gt;'; <br />
&nbsp; &nbsp; return $toreturn; <br />
&nbsp; &nbsp; } <br />
$q = stripslashes($_POST['q']); <br />
if (empty($q)) { <br />
&nbsp; &nbsp; $q = 'select Name, Title from contacts order by Name desc limit 1;'; <br />
&nbsp; &nbsp; } <br />
mysql_select_db(&quot;mydata&quot;); <br />
$result = mysql_query($q); <br />
<br />
print &quot;&lt;b&gt;&lt;font color=red&gt;Your New Record Has Been Added&lt;/font&gt;&lt;/b&gt;\n&quot;; <br />
<br />
echo drawtable($result); <br />
echo '&lt;table&gt; <br />
&lt;/table&gt; <br />
&lt;/body&gt; <br />
&lt;/html&gt;';</pre><br />
I use <span style="font-weight:bold"><span style="color:Green">IIS 7</span></span> and <span style="color:green"><span style="font-weight:bold">IIS 6</span></span> and put both of these files to <span style="font-weight:bold">C:\inetpub\wwwroot</span>. The form displays correctly in IE8. However, clicking &quot;<span style="font-weight:bold"><span style="text-decoration:underline">Add Record</span></span>&quot; button, makes data typed into the fields disappear with nothing else happening. No lastly added record shows up, and worst of all, no record is being entered into database at all. <span style="color:Green">There are no errors</span> either. <br />
<br />
What do I do wrong? I am quiet new to MySQL and PHP.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>leokuz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243532.html</guid>
		</item>
		<item>
			<title>Importing .sql file into mysql - linux</title>
			<link>http://www.daniweb.com/forums/thread243463.html</link>
			<pubDate>Thu, 03 Dec 2009 20:11:04 GMT</pubDate>
			<description><![CDATA[Before I begin i'm sorry if this is a noobish question. Basically I'm trying to import a 'forum.sql' file into mysql so that I can access and manipulate it through a Java servlet. 
 
The path to the sql dump file is /home/floyd/Desktop/forum/forum.sql so i open a terminal window, cd into that...]]></description>
			<content:encoded><![CDATA[<div>Before I begin i'm sorry if this is a noobish question. Basically I'm trying to import a 'forum.sql' file into mysql so that I can access and manipulate it through a Java servlet.<br />
<br />
The path to the sql dump file is /home/floyd/Desktop/forum/forum.sql so i open a terminal window, cd into that directory and type:<br />
<br />
floyd@floyd:~/Desktop/forum$<span style="color:Red">mysql -u root -p root forum &lt; forum.sql</span><br />
<br />
Then i get this...<br />
<br />
<span style="color:Red"><br />
mysql  Ver 14.12 Distrib 5.0.67, for debian-linux-gnu (x86_64) using readline 5.2<br />
Copyright (C) 2000-2008 MySQL AB<br />
This software comes with ABSOLUTELY NO WARRANTY. This is free software,<br />
and you are welcome to modify and redistribute it under the GPL license<br />
Usage: mysql [OPTIONS] [database]<br />
  -?, --help          Display this help and exit.<br />
  -I, --help          Synonym for -?<br />
  --auto-rehash       Enable automatic rehashing. One doesn't need to use<br />
                      'rehash' to get table and field completion, but startup<br />
                      and reconnecting may take a longer time. Disable with<br />
                      --disable-auto-rehash.<br />
  -A, --no-auto-rehash<br />
                      No automatic rehashing. One has to use 'rehash' to get<br />
                      table and field completion. This gives a quicker start of<br />
                      mysql and disables rehashing on reconnect. WARNING:<br />
                      options deprecated; use --disable-auto-rehash instead.<br />
  -B, --batch         Don't use history file. Disable interactive behavior.<br />
                      (Enables --silent)<br />
<br />
....................................<br />
<br />
auto-rehash                       TRUE<br />
character-sets-dir                (No default value)<br />
default-character-set             latin1<br />
comments                          FALSE<br />
compress                          FALSE<br />
database                          (No default value)<br />
delimiter                         ;<br />
vertical                          FALSE<br />
force                             FALSE<br />
 <br />
...................................<br />
<br />
max_join_size                     1000000<br />
secure-auth                       FALSE<br />
show-warnings                     FALSE</span><br />
floyd@floyd:~/Desktop/forum$<br />
<br />
Then I start mysql and try and view the database but the database is not there...<br />
<br />
floyd@floyd:~/Desktop/forum$ <span style="color:Red">mysql<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 42<br />
Server version: 5.0.67-0ubuntu6 (Ubuntu)<br />
<br />
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br />
<br />
mysql&gt;show databases;<br />
+--------------------+<br />
| Database           |<br />
+--------------------+<br />
| information_schema |<br />
+--------------------+<br />
1 row in set (0.00 sec)<br />
</span><br />
<br />
Where do I go from here? How can I actually be sure the database has or hasn't been imported? How to view the database so i know what fields i need to access?!?<br />
<br />
Any help is much appreciated, <br />
Many thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>nonshatter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243463.html</guid>
		</item>
		<item>
			<title>~~ sql Examples ~~</title>
			<link>http://www.daniweb.com/forums/thread243425.html</link>
			<pubDate>Thu, 03 Dec 2009 17:45:16 GMT</pubDate>
			<description><![CDATA[Hello All  
:pretty: 
i m new in this forum and i want to ask if there is examples about sql  
bcz i have lab exam on sunday and i don't know the type of questions so i m friad from that :S 
i use Oracle Sql*plus  
and thanx alot 4 every one can help me  
 
:)]]></description>
			<content:encoded><![CDATA[<div>Hello All <br />
:pretty:<br />
i m new in this forum and i want to ask if there is examples about sql <br />
bcz i have lab exam on sunday and i don't know the type of questions so i m friad from that :S<br />
i use Oracle Sql*plus <br />
and thanx alot 4 every one can help me <br />
<br />
:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>saher_omer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243425.html</guid>
		</item>
		<item>
			<title><![CDATA[MSAcs> How do I UPDATE a table using the data from MULTIPLE TABLES?]]></title>
			<link>http://www.daniweb.com/forums/thread243417.html</link>
			<pubDate>Thu, 03 Dec 2009 17:19:13 GMT</pubDate>
			<description>I am using MS ACCESS, and have 4 tables to update, from 2 different tables/spreadsheet 
 
Where table 
 
tb1-  Client Index, Name, address and zip. 
tb2- user index, Sales rep, client index 
tb3- user index, Managers 
tb4- client index, Sales Target 
 
Master 1 has Name, address, Sales target and...</description>
			<content:encoded><![CDATA[<div>I am using MS ACCESS, and have 4 tables to update, from 2 different tables/spreadsheet<br />
<br />
Where table<br />
<br />
tb1-  Client Index, Name, address and zip.<br />
tb2- user index, Sales rep, client index<br />
tb3- user index, Managers<br />
tb4- client index, Sales Target<br />
<br />
Master 1 has Name, address, Sales target and sales rep<br />
Master 2 has Name, manager, zip<br />
<br />
So, I need UPDATE the records as per:<br />
From master 1 to tb1 with the client index (auto increment), name, details. <br />
<br />
From master 1 to tb2, salesrep, tb1.clientindex, <br />
where tb1.name=master2.name if not found, create a new record<br />
update tb2 set clientindex=tb1.clientindex, <br />
update tb2 set salesrep=master1.salesrep<br />
<br />
From master 1 to tb4, target, tb1.clientindex, <br />
where tb1.name=master2.name if not found, create a new record<br />
update tb4 set clientindex=tb1.clientindex, <br />
update tb4 set target=master1.target<br />
<br />
From master 2 to tb1, target, tb1.clientindex, <br />
where tb1.name=master2.name if not found, create a new record<br />
<br />
From master 2 to tb3, manager, <br />
where tb1.name=master2.name <br />
and <br />
update tb3 <br />
set index=tb1.index <br />
set manager=master2.manager<br />
<br />
The idea is the above, but.. Can anyone help me with this? (translating into a MSACCESS/SQL entry)<br />
 I am sorry.. it is a bit complicated, and it seems to be a bit too much for a noob!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum128.html">MS Access and FileMaker Pro</category>
			<dc:creator>airpricing</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243417.html</guid>
		</item>
		<item>
			<title>database suggestions</title>
			<link>http://www.daniweb.com/forums/thread243381.html</link>
			<pubDate>Thu, 03 Dec 2009 14:59:57 GMT</pubDate>
			<description><![CDATA[last semester, i did an airline reservation system. we need to create another system for this semester. any suggestions? [except inventory and enrollment systems] 
 
thanks]]></description>
			<content:encoded><![CDATA[<div>last semester, i did an airline reservation system. we need to create another system for this semester. any suggestions? [except inventory and enrollment systems]<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>scias23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243381.html</guid>
		</item>
		<item>
			<title>mysql and C++</title>
			<link>http://www.daniweb.com/forums/thread243342.html</link>
			<pubDate>Thu, 03 Dec 2009 12:39:07 GMT</pubDate>
			<description><![CDATA[Hi! 
 
I am trying to implement a server-cgi with C++, but I don't know which is the best way for the cgi to communicate with the mysql server. 
 
In the mysql web, I have seen that there are "connectors", but I don't really know which is their functionallity. Should I try with the libs and...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
I am trying to implement a server-cgi with C++, but I don't know which is the best way for the cgi to communicate with the mysql server.<br />
<br />
In the mysql web, I have seen that there are &quot;connectors&quot;, but I don't really know which is their functionallity. Should I try with the libs and &quot;mysql.h&quot; header file, or should I install a &quot;mysql C++/connector&quot;?<br />
<br />
Thank you,<br />
<br />
Xagutxu</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>xagutxu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243342.html</guid>
		</item>
		<item>
			<title>Catastrophic failure - Number: -2147418113</title>
			<link>http://www.daniweb.com/forums/thread243330.html</link>
			<pubDate>Thu, 03 Dec 2009 11:35:35 GMT</pubDate>
			<description><![CDATA[Hi i need some help. i am trying to run a process that will move records from one table to the other and i am getting this error msg " Description: Catastrophic failure - Number: -2147418113" in the detailed error log but on the interface m getting something like 
 
Error Occurred in:...]]></description>
			<content:encoded><![CDATA[<div>Hi i need some help. i am trying to run a process that will move records from one table to the other and i am getting this error msg &quot; Description: Catastrophic failure - Number: -2147418113&quot; in the detailed error log but on the interface m getting something like<br />
<br />
Error Occurred in:<br />
frmRT05GMC_DelSel.cmbDelete_Click<br />
Description<br />
Number0<br />
Query SQL: Select SYSTEM_RECORD_NO,GPNational, Pshipcode,GPGMC, Agencycipher From FROM GMS_DYNAMIC_GMS_RT05SEP2009<br />
FileName<br />
See Application error log to view this msg in full<br />
<br />
A bit background<br />
I have an access database as the frontend for an Oracle database, if i change the setting to a different month say Mar (March) its working fine but if i change the month to run on Sep (September) data its falling apart: the way i m changing the dates is by ticking and some manually within the code (have double checked this) part of the code thats problematic is as below<br />
 <pre style="margin:20px; line-height:13px">Option Compare Database<br />
Option Explicit<br />
Dim msFilter As String<br />
Dim mbFirstTime As Boolean<br />
<br />
Private Sub cmbDelete_Click()<br />
On Error GoTo Err_cmbDelete_Click<br />
<br />
Dim sql As String<br />
Dim cnt As Long<br />
Dim maxCnt As Long<br />
Dim oLvw As ListView<br />
Dim oLvwItem As ListItem<br />
Set oLvw = Me.lvwSelection.Object<br />
Dim bInTrans As Boolean<br />
Dim iRecAffected As Integer<br />
<br />
If oLvw.ListItems.Count = 0 Then<br />
&nbsp; &nbsp; MsgBox &quot;There are no records to delete&quot;, vbExclamation, &quot;GMS&quot;<br />
&nbsp; &nbsp; Exit Sub<br />
End If<br />
&nbsp; &nbsp; <br />
If MsgBox(&quot;Are you sure you want to delete these records&quot;, vbQuestion + vbDefaultButton2 + vbYesNo, &quot;GMS&quot;) = vbNo Then Exit Sub<br />
DoEvents<br />
For Each oLvwItem In oLvw.ListItems<br />
&nbsp; &nbsp; If oLvwItem.Checked = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; maxCnt = maxCnt + 1<br />
&nbsp; &nbsp; End If<br />
Next<br />
<br />
Dim oCon As clsOracleCon<br />
Dim rs As ADODB.Recordset<br />
Set oCon = New clsOracleCon<br />
<br />
DoCmd.Hourglass True<br />
<br />
oCon.conn.Open<br />
<br />
For Each oLvwItem In oLvw.ListItems<br />
&nbsp; &nbsp; If oLvwItem.Checked = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; sql = &quot;Select System_Record_No,GPNational,PSHIPCODE,GPGMC,AgencyCipher from &quot; &amp; GetTableName(&quot;5&quot;) &amp; &quot; where System_Record_No=&quot; &amp; oLvwItem<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Set rs = oCon.conn.Execute(sql)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Not rs.EOF Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'if there is a GP National code then try test for the presence of records in<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'rt 07,09 and 12<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCon.conn.BeginTrans<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bInTrans = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Nz(rs.Fields(&quot;GPNational&quot;).value, &quot;&quot;) &lt;&gt; &quot;&quot; And Nz(rs.Fields(&quot;AgencyCipher&quot;).value, &quot;&quot;) &lt;&gt; &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Not MoveRT57912ToXX(oCon.conn, &quot;5&quot;, &quot;xx5&quot;, &quot;System_Record_No&quot;, rs.Fields(&quot;SYSTEM_RECORD_NO&quot;).value, &quot;GPNational&quot;, rs.Fields(&quot;GPNational&quot;).value, rs.Fields(&quot;AgencyCipher&quot;).value) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GoTo Rollback<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If rs.Fields(&quot;GPNational&quot;).value &lt;&gt; 0 Then&nbsp; 'tables linked by GPNational<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Not MoveRT57912ToXX(oCon.conn, &quot;7&quot;, &quot;xx7&quot;, &quot;GPNational&quot;, Nz(rs.Fields(&quot;GPNational&quot;).value, &quot;&quot;), &quot;PSHIPCODE&quot;, rs.Fields(&quot;PSHIPCODE&quot;).value, rs.Fields(&quot;AgencyCipher&quot;).value) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GoTo Rollback<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Not MoveRT57912ToXX(oCon.conn, &quot;9&quot;, &quot;xx9&quot;, &quot;GPNational&quot;, Nz(rs.Fields(&quot;GPNational&quot;).value, &quot;&quot;), &quot;PSHIPCODE&quot;, rs.Fields(&quot;PSHIPCODE&quot;).value, rs.Fields(&quot;AgencyCipher&quot;).value) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GoTo Rollback<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Not MoveRT57912ToXX(oCon.conn, &quot;12&quot;, &quot;xx12&quot;, &quot;GPNational&quot;, Nz(rs.Fields(&quot;GPNational&quot;).value, &quot;&quot;), &quot;PARTNERSHIPCODE&quot;, rs.Fields(&quot;PSHIPCODE&quot;).value, rs.Fields(&quot;AgencyCipher&quot;).value) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GoTo Rollback<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Commit changes<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCon.conn.CommitTrans<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bInTrans = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cnt = cnt + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set rs = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; If cnt Mod 10 = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.lblStatus.Caption = &quot;Moved &quot; &amp; cnt &amp; &quot; of &quot; &amp; maxCnt &amp; &quot; to the XX tables. Please wait&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DoEvents<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End If<br />
Next<br />
<br />
Me.lblStatus.Caption = &quot;Moved &quot; &amp; cnt &amp; &quot; of &quot; &amp; maxCnt &amp; &quot; to the XX tables&quot;<br />
DoEvents<br />
cmbLoad_Click<br />
<br />
Exit_cmbDelete_Click:<br />
DoCmd.Hourglass False<br />
If Not oCon Is Nothing Then<br />
&nbsp; &nbsp; oCon.KillConn<br />
&nbsp; &nbsp; Set oCon = Nothing<br />
End If<br />
<br />
Exit Sub<br />
<br />
Err_cmbDelete_Click:<br />
&nbsp; &nbsp; If bInTrans = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; oCon.conn.RollbackTrans<br />
&nbsp; &nbsp; &nbsp; &nbsp; bInTrans = False<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; DoCmd.Hourglass False<br />
&nbsp; &nbsp; Errortrap True, err, Me.Name, &quot;cmbDelete_Click&quot;, &quot;&quot;, sql<br />
&nbsp; &nbsp; Resume 'Exit_cmbDelete_Click<br />
&nbsp; &nbsp; <br />
Rollback:<br />
If bInTrans Then<br />
&nbsp; &nbsp; oCon.conn.RollbackTrans<br />
&nbsp; &nbsp; DoCmd.Hourglass False<br />
&nbsp; &nbsp; MsgBox &quot;There was an error and some records were not moved to the xx tables. See application log&quot;, vbCritical, &quot;GMS&quot;<br />
&nbsp; &nbsp; GoTo Exit_cmbDelete_Click<br />
End If<br />
End Sub<br />
<br />
Private Sub cmbLoad_Click()<br />
On Error GoTo Err_cmbLoad_Click<br />
<br />
Dim sql As String<br />
Dim sFilter As String<br />
<br />
If msFilter &lt;&gt; &quot;&quot; Then<br />
&nbsp; &nbsp; sFilter = &quot;AND MA.AgencyCipher in (&quot; &amp; msFilter &amp; &quot;) &quot;<br />
Else<br />
&nbsp; &nbsp; sFilter = &quot;&quot;<br />
End If<br />
<br />
Me.lblStatus.Caption = &quot;.&quot;<br />
<br />
Dim sChecked As String<br />
Dim sSetting As String<br />
sSetting = &quot;Checkbox settings &quot; &amp; Me.Name<br />
<br />
If Not mbFirstTime Then<br />
&nbsp; &nbsp; 'remember checked boxes<br />
&nbsp; &nbsp; sChecked = GetCheckedBoxList(Me.lvwSelection.Object)<br />
&nbsp; &nbsp; modSettings.SetSettingLocal sSetting, sChecked, &quot;Form Setting&quot;, True<br />
Else<br />
&nbsp; &nbsp; mbFirstTime = False<br />
&nbsp; &nbsp; sChecked = modSettings.GetSettingLocal(sSetting, &quot;&quot;)<br />
End If<br />
<br />
sql = &quot;SELECT A.System_Record_No AS ID,A.AgencyCipher, A.GPGMC,A.GPNational,&quot; &amp; _<br />
&quot; A.GPSURNAME , &quot; &amp; _<br />
&quot;A.GPINITIALS , &quot; &amp; _<br />
&quot;A.GPSEX,A.GPCATEGORYSTAT , &quot; &amp; _<br />
&quot;A.PSHIPCODE, A.PCGPCTNATIONALCODE &quot; &amp; _<br />
&quot;FROM&nbsp; &quot; &amp; GetTableName(&quot;5&quot;) &amp; &quot; A &quot; &amp; _<br />
&quot;LEFT JOIN &quot; &amp; GetTableName(&quot;EMPFILE&quot;) &amp; &quot; E ON A.GPGMC = E.GMC_NUMBER &quot; &amp; _<br />
&quot; WHERE E.GMC_Number is null &quot; &amp; sFilter<br />
<br />
<br />
Dim oCon As clsOracleCon<br />
Dim rs As ADODB.Recordset<br />
Set oCon = New clsOracleCon<br />
<br />
DoCmd.Hourglass True<br />
<br />
oCon.conn.Open<br />
Set rs = oCon.conn.Execute(sql)<br />
<br />
PopulateListViewADO rs, Me.lvwSelection.Object<br />
<br />
SetCheckedBoxList Me.lvwSelection.Object, sChecked<br />
<br />
Exit_cmbLoad_Click:<br />
DoCmd.Hourglass False<br />
If Not oCon Is Nothing Then<br />
&nbsp; &nbsp; oCon.KillConn<br />
&nbsp; &nbsp; Set oCon = Nothing<br />
End If<br />
Exit Sub<br />
<br />
Err_cmbLoad_Click:<br />
&nbsp; &nbsp; DoCmd.Hourglass False<br />
&nbsp; &nbsp; Errortrap True, err, Me.Name, &quot;cmbLoad_Click&quot;, &quot;&quot;, sql<br />
&nbsp; &nbsp; Resume Exit_cmbLoad_Click<br />
&nbsp; &nbsp; <br />
End Sub<br />
<br />
Private Sub cmbSelectAll_Click()<br />
Dim oLvw As MSComctlLib.ListView<br />
Set oLvw = Me.lvwSelection.Object<br />
Dim oLvwItem As MSComctlLib.ListItem<br />
<br />
&nbsp; &nbsp; If oLvw.ListItems.Count = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; For Each oLvwItem In oLvw.ListItems<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Me.cmbSelectAll.Caption = &quot;De-Select All&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oLvwItem.Checked = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oLvwItem.Checked = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; If Me.cmbSelectAll.Caption = &quot;De-Select All&quot; Then<br />
&nbsp; &nbsp; &nbsp;  Me.cmbSelectAll.Caption = &quot;Select All&quot;<br />
&nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp;  Me.cmbSelectAll.Caption = &quot;De-Select All&quot;<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set oLvw = Nothing<br />
<br />
<br />
End Sub<br />
<br />
Private Sub cmbSelectStatus7810_Click()<br />
Dim oLvw As MSComctlLib.ListView<br />
Set oLvw = Me.lvwSelection.Object<br />
Dim oLvwItem As MSComctlLib.ListItem<br />
<br />
&nbsp; &nbsp; If oLvw.ListItems.Count = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; For Each oLvwItem In oLvw.ListItems<br />
&nbsp; &nbsp; &nbsp; &nbsp; If oLvwItem.SubItems(7) = 7 Or oLvwItem.SubItems(7) = 8 Or oLvwItem.SubItems(7) = 10 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oLvwItem.Checked = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oLvwItem.Checked = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; Next<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set oLvw = Nothing<br />
<br />
End Sub<br />
<br />
Private Sub Form_Close()<br />
Dim sChecked As String<br />
Dim sSetting As String<br />
sSetting = &quot;Checkbox settings &quot; &amp; Me.Name<br />
sChecked = GetCheckedBoxList(Me.lvwSelection.Object)<br />
modSettings.SetSettingLocal sSetting, sChecked, &quot;Form Setting&quot;, True<br />
End Sub<br />
<br />
Private Sub Form_Load()<br />
DoCmd.Maximize<br />
mbFirstTime = True<br />
cmbLoad_Click<br />
End Sub<br />
<br />
Private Sub Form_Open(Cancel As Integer)<br />
msFilter = Me.OpenArgs<br />
ClearListview Me.lvwSelection.Object<br />
If msFilter &lt;&gt; &quot;&quot; Then<br />
Else<br />
&nbsp; &nbsp; MsgBox &quot;Please re-open this form to re-set the filter&quot;, vbExclamation, &quot;GMS&quot;<br />
&nbsp; &nbsp; Cancel = True<br />
&nbsp; &nbsp; Exit Sub<br />
End If<br />
End Sub<br />
<br />
Private Sub lvwSelection_ColumnClick(ByVal ColumnHeader As Object)<br />
Dim oListView As ListView<br />
&nbsp; &nbsp; Dim oColumn As ColumnHeader<br />
&nbsp; &nbsp; Dim oColumnSort As ColumnHeader<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; If ShowListOptionDialog(Me.lvwSelection.Object, ColumnHeader) = &quot;reorder&quot; Then<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Set oListView = Me.lvwSelection.Object<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each oColumn In oListView.ColumnHeaders<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If oColumn.Key = ColumnHeader.Key &amp; &quot;SORT&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set oColumnSort = oColumn<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit For<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next oColumn<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; If oColumnSort Is Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set oColumnSort = ColumnHeader<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; If oListView.SortKey = oColumnSort.Index - 1 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oListView.Sorted = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If oListView.SortOrder = lvwAscending Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oListView.SortOrder = lvwDescending<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oListView.SortOrder = lvwAscending<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oListView.Sorted = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oListView.SortKey = oColumnSort.Index - 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oListView.SortOrder = lvwAscending<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set oListView = Nothing<br />
&nbsp; &nbsp; Set oColumn = Nothing<br />
&nbsp; &nbsp; Set oColumnSort = Nothing<br />
End Sub<br />
<br />
Private Sub cmbUnselectAll_Click()<br />
On Error GoTo Err_cmbUnselectAll_Click<br />
<br />
<br />
&nbsp; &nbsp; Screen.PreviousControl.SetFocus<br />
&nbsp; &nbsp; DoCmd.FindNext<br />
<br />
Exit_cmbUnselectAll_Click:<br />
&nbsp; &nbsp; Exit Sub<br />
<br />
Err_cmbUnselectAll_Click:<br />
&nbsp; &nbsp; MsgBox err.Description<br />
&nbsp; &nbsp; Resume Exit_cmbUnselectAll_Click<br />
&nbsp; &nbsp; <br />
End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum128.html">MS Access and FileMaker Pro</category>
			<dc:creator>Blake98</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243330.html</guid>
		</item>
		<item>
			<title>Indexes?</title>
			<link>http://www.daniweb.com/forums/thread243142.html</link>
			<pubDate>Wed, 02 Dec 2009 19:57:19 GMT</pubDate>
			<description><![CDATA[this is my table: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a...]]></description>
			<content:encoded><![CDATA[<div>this is my table:<br />
<br />
 <pre style="margin:20px; line-height:13px">CREATE TABLE IF NOT EXISTS `artikulli` (<br />
&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />
&nbsp; `autori` varchar(100) CHARACTER SET utf8 NOT NULL,<br />
&nbsp; `perkthyesi` varchar(100) CHARACTER SET utf8 NOT NULL,<br />
&nbsp; `category` varchar(100) CHARACTER SET utf8 NOT NULL,<br />
&nbsp; `titulli` varchar(350) CHARACTER SET latin1 NOT NULL,<br />
&nbsp; `nen_titulli` varchar(400) CHARACTER SET utf8 NOT NULL,<br />
&nbsp; `url_alias` varchar(400) COLLATE utf8_unicode_ci NOT NULL,<br />
&nbsp; `burimi` varchar(200) CHARACTER SET utf8 NOT NULL,<br />
&nbsp; `teksti` text CHARACTER SET latin1 NOT NULL,<br />
&nbsp; `intro` text COLLATE utf8_unicode_ci NOT NULL,<br />
&nbsp; `picture` varchar(500) COLLATE utf8_unicode_ci NOT NULL,<br />
&nbsp; `date` int(11) NOT NULL,<br />
&nbsp; `views` int(10) NOT NULL,<br />
&nbsp; `is_perhershme` int(10) NOT NULL,<br />
&nbsp; `etiketat` varchar(500) CHARACTER SET utf8 NOT NULL DEFAULT '',<br />
&nbsp; `featured` tinyint(10) NOT NULL,<br />
&nbsp; `ft_order` int(10) NOT NULL,<br />
&nbsp; `show_picture` int(10) NOT NULL DEFAULT '1',<br />
&nbsp; PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC AUTO_INCREMENT=51 ;</pre><br />
id is the unique Id of each article, i get articles with $_GET['id'];<br />
<br />
so is this the right field to create index?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>smartness</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243142.html</guid>
		</item>
		<item>
			<title>SQL Function</title>
			<link>http://www.daniweb.com/forums/thread243098.html</link>
			<pubDate>Wed, 02 Dec 2009 17:34:43 GMT</pubDate>
			<description><![CDATA[I use SQL  Server 2005 and I create function.Below I mention the Function that I created. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code...]]></description>
			<content:encoded><![CDATA[<div>I use SQL  Server 2005 and I create function.Below I mention the Function that I created.<br />
 <pre style="margin:20px; line-height:13px">CREATE FUNCTION dbo.udf_GetCountryID(@Name varchar(50))<br />
RETURNS VARCHAR(1000) AS<br />
<br />
BEGIN<br />
Declare @Description varchar(4000)<br />
select @Description = coalesce(@Description + ',' , '' ) +&nbsp; countryCode <br />
FROM dbo.Test_Table where CommonName='Japan'<br />
<br />
Return @Description<br />
END</pre><br />
After creating function I use below SQL statement<br />
<br />
 <pre style="margin:20px; line-height:13px">select dbo.udf_GetCountryID(Distinct(F.CommonName))CountryName from dbo.Test_Table F</pre><br />
but I got the Error message.Below I mention the error message also<br />
<span style="color:Red">Msg 208, Level 16, State 101, Line 1<br />
Invalid object name 'dbo.udf_GetCountryID'.<br />
</span><br />
<br />
Once I create the function its comes under scalar-valued function.I am using sql server 2005.Please help me<br />
<br />
Thanks <br />
Tank50</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>Tank50</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243098.html</guid>
		</item>
		<item>
			<title>ER Help Pls</title>
			<link>http://www.daniweb.com/forums/thread243060.html</link>
			<pubDate>Wed, 02 Dec 2009 15:23:27 GMT</pubDate>
			<description>Ok i wa swondering if i could get help on this: 
 
Jack’s Jail is a new private facility set up to cash in on the current shortage of prison places.  The jail is to be set up in Manchester using some old buildings that are surplus to requirements (so some of the inmates could be familiar with the...</description>
			<content:encoded><![CDATA[<div>Ok i wa swondering if i could get help on this:<br />
<br />
Jack’s Jail is a new private facility set up to cash in on the current shortage of prison places.  The jail is to be set up in Manchester using some old buildings that are surplus to requirements (so some of the inmates could be familiar with the layout of their new accommodation!).<br />
The Jail is planned to have 643 cells – each cell has a wing letter (A-D), level (1 to 4) and cell number (two digits).  Of these cells, 220 can be shared cells (double occupancy – if there is the need) and 43, of the single occupancy cells, are suitable for high surveillance and can be used for ‘at risk’ prisoners.  There is also an isolation block (wing E, level 1, 20 cells) where prisoners on punishment can be transferred for periods of between two and 10 days.<br />
To run his jail, Jack needs a ‘hotel system’ to keep track of the inmates.  The system will need to book-in the prisoners when they arrive (record their name, prisoner number, date of admission (i.e. start of sentence), length of sentence (in days), category (A to D) and whether they are considered ‘at risk’.  Prisoners with ‘at risk’ status also have details recorded of the nature of that risk, e.g. danger of suicide.  As well as recording the prisoner’s details the book-in process has to allocate a suitable cell (taking into account their status (category A and B can not share a cell) and whether they are ‘at risk’).<br />
Once booked in the prisoner details can be amended.  They may receive remission (days to be deducted from their sentence) and this must be added to their record.<br />
Prisoners can also be put ‘on punishment’ in which case they are allocated to a cell on wing E for the duration of the punishment (their original cell allocation is retained and they return there at the end of the punishment period).  Each punishment is recorded on the prisoner’s record with the offence title, punishment start date and duration; details of the punishment are retained and can be taken into account if further offences occur.<br />
The system needs also needs to make sure that prisoners are released on time.  Each week there is a report listing prisoners to be released the following week (calculated from: date of admission + length of sentence – remission).  When the prisoner is released the release date is added to their record (and obviously their cell becomes free and available for new inmates).<br />
<br />
Struggling to get the relationships between each entity i'll be gratefull if anyone could help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>dwaynecaine</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243060.html</guid>
		</item>
		<item>
			<title>searching problem in SQL server 2005</title>
			<link>http://www.daniweb.com/forums/thread243011.html</link>
			<pubDate>Wed, 02 Dec 2009 11:57:59 GMT</pubDate>
			<description>hai all 
 
i am facing some problem in SQL.I am searching the one string(ex.roll-over) in table 
its returning wrong results. 
my table contains, 
 
dable datas 
table_1 is table name 
number1 text1 
1 notify us the day you roll check over.</description>
			<content:encoded><![CDATA[<div>hai all<br />
<br />
i am facing some problem in SQL.I am searching the one string(ex.roll-over) in table<br />
its returning wrong results.<br />
my table contains,<br />
<br />
dable datas<br />
table_1 is table name<br />
number1 text1<br />
1 notify us the day you roll check over.<br />
2 notify us theday you roll check .<br />
3 notify us the day you roll check roll-over.<br />
4 notify us the day you roll check roll over.<br />
<br />
<br />
my query is<br />
select * from table_1 WHERE CONTAINS(text1, '&quot;roll-over&quot;')<br />
select * from table_1 WHERE CONTAINS(text1, 'roll-over')<br />
<br />
in both case i am getting below results.<br />
results<br />
number1 text1<br />
1 notify us the day you roll check over.<br />
2 notify us theday you roll check .<br />
3 notify us the day you roll check roll-over.<br />
4 notify us the day you roll check roll over.<br />
<br />
here it should return only one result insted of four.<br />
is there any thing wrong in Query if not can any one help to from the correct query.<br />
i think Bcoz os hyphen the result is returinig either roll or over presents.<br />
<br />
<br />
thanks <br />
mahe</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>mm4215</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243011.html</guid>
		</item>
		<item>
			<title>MS Access (1 to Many) Table Definition</title>
			<link>http://www.daniweb.com/forums/thread242894.html</link>
			<pubDate>Wed, 02 Dec 2009 01:04:23 GMT</pubDate>
			<description>In defining MS Access tables where a 1 to many relation exists what is the best way to define a table containing the “many” records.  For example, a database with orders and line-items might have the “line item” table with an order-number and a line-number which would define a unique record.  Is...</description>
			<content:encoded><![CDATA[<div>In defining MS Access tables where a 1 to many relation exists what is the best way to define a table containing the “many” records.  For example, a database with orders and line-items might have the “line item” table with an order-number and a line-number which would define a unique record.  Is there a way to create a compound primary key for this with Access 2000?<br />
<br />
Since duplicates are allowed, the order number itself can not be a primary key of the line item table, so is it necessary to have a “primary key” or would it be reasonable for such a table not to have a primary key?<br />
<br />
Or is it better to simply add an auto-number field to the table?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum128.html">MS Access and FileMaker Pro</category>
			<dc:creator>chuckc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242894.html</guid>
		</item>
		<item>
			<title>Change from a Mysql database</title>
			<link>http://www.daniweb.com/forums/thread242787.html</link>
			<pubDate>Tue, 01 Dec 2009 15:12:42 GMT</pubDate>
			<description><![CDATA[Hello,  
 
We are currently using a Mysql database: we would like to change. Now, we'd like to use Mssql. Only problem is that most of the data and other information are on Mysql. Can you help us with this? 
 
Thanks a lot for your help.]]></description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
We are currently using a Mysql database: we would like to change. Now, we'd like to use Mssql. Only problem is that most of the data and other information are on Mysql. Can you help us with this?<br />
<br />
Thanks a lot for your help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>asmikwen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242787.html</guid>
		</item>
		<item>
			<title>Search for numeric values from a varchar field in SQL server</title>
			<link>http://www.daniweb.com/forums/thread242779.html</link>
			<pubDate>Tue, 01 Dec 2009 14:21:22 GMT</pubDate>
			<description><![CDATA[Hi 
 
I have a column named 'ExtRefNo' which of varchar datatype. 
The values can be numbers alone(eg; 101) & values comprising characters & numbers(eg:101A3) 
 
My requirement is if the user search for ExtRefNo between 100 & 105, 
it shud retrieve all ExtRefNos ranging from 100,101,102,103,104 &...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I have a column named 'ExtRefNo' which of varchar datatype.<br />
The values can be numbers alone(eg; 101) &amp; values comprising characters &amp; numbers(eg:101A3)<br />
<br />
My requirement is if the user search for ExtRefNo between 100 &amp; 105,<br />
it shud retrieve all ExtRefNos ranging from 100,101,102,103,104 &amp; 105.<br />
Need not include the ExtRefNo, if it is 101A3.<br />
<br />
I used Isnumeric() in a Case statement <br />
Something like this..don't know the correct syntax<br />
<br />
Case When Isnumeric(@FromContractExtRef2) = 1 and Isnumeric(@ToContractExtRef2) = 1<br />
			 Then Cast(Contract.ExternalRef2 as int) <br />
			 Else @FromContractExtRef2 End <br />
Between ......<br />
<br />
The Problem is that if the user search for ExtRefNo 101A3...it should only find the record that has got this ExtRefNo 101A3 , ie if the search values entered for @FromContractExtRef2 and @ToContractExtRef2 is numeric..then it should find all the ExtRefNo between that range..else should find the ExtRefNo which is like @FromContractExtRef2.<br />
<br />
Hope this makes sense.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>renu_kj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242779.html</guid>
		</item>
		<item>
			<title>ER Diagram need help</title>
			<link>http://www.daniweb.com/forums/thread242723.html</link>
			<pubDate>Tue, 01 Dec 2009 10:50:14 GMT</pubDate>
			<description>A doctor may refer a patient to other doctors for treatment. A doctor must be referred by at least one other doctors.Each referral captures the referral date and description. Each referral is only for one patient. A patient may have any number of referrals. 
(you must reflect which doctor refers a...</description>
			<content:encoded><![CDATA[<div>A doctor may refer a patient to other doctors for treatment. A doctor must be referred by at least one other doctors.Each referral captures the referral date and description. Each referral is only for one patient. A patient may have any number of referrals.<br />
(you must reflect which doctor refers a specific patient to another doctor in your data model.)<br />
<br />
How to draw the relationship?<br />
is it unary or tertiary relation?<br />
<br />
by the way...if the supertype has just one subtype, how to draw on the ER diagram?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>hanzooi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242723.html</guid>
		</item>
		<item>
			<title>Creating Fact and Dimension Tables</title>
			<link>http://www.daniweb.com/forums/thread242628.html</link>
			<pubDate>Tue, 01 Dec 2009 02:03:29 GMT</pubDate>
			<description>Hello, 
 
I am new to Microsoft SQL Analysis service and am trying to create cubes.  But,  I understand that I first need to create fact and dimension tables.   
 
How do I create them?  I kinda know the relationship between those two (Maybe not) but I just don’t know how to create them.  I have a...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am new to Microsoft SQL Analysis service and am trying to create cubes.  But,  I understand that I first need to create fact and dimension tables.  <br />
<br />
How do I create them?  I kinda know the relationship between those two (Maybe not) but I just don’t know how to create them.  I have a relational database that contains tables which I can use to build fact and dimension tables.<br />
<br />
I have data warehouse server.  I understand that dimension and fact tables should be created in the data warehouse server.<br />
<br />
Any help would be grateful.<br />
<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>toykwon5</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242628.html</guid>
		</item>
		<item>
			<title>Java database</title>
			<link>http://www.daniweb.com/forums/thread242604.html</link>
			<pubDate>Mon, 30 Nov 2009 23:55:22 GMT</pubDate>
			<description>hello can someone help me out with these? am writing a project on a video rental store. and i have to use access i dont know if i should use one-many connection or many - many. if many-many then what will the code in the java database look like? remember the user have to know the movies in store...</description>
			<content:encoded><![CDATA[<div>hello can someone help me out with these? am writing a project on a video rental store. and i have to use access i dont know if i should use one-many connection or many - many. if many-many then what will the code in the java database look like? remember the user have to know the movies in store the one rented and customer's name! <br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>emmas4impact</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242604.html</guid>
		</item>
		<item>
			<title>Enabling Network Connections?</title>
			<link>http://www.daniweb.com/forums/thread242474.html</link>
			<pubDate>Mon, 30 Nov 2009 15:51:51 GMT</pubDate>
			<description><![CDATA[Hello, 
 
When trying to use mysqldump, I got this error message: 
 
 
---Quote--- 
mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061) when trying to connect 
---End Quote--- 
According to the MySQL Documentation Library, error 2003 means that my network connection has...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
When trying to use mysqldump, I got this error message:<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061) when trying to connect  <hr /> </td> </tr> </table> </div>According to the MySQL Documentation Library, error 2003 means that my network connection has been refused and that I should check that there is a MySQL server running, that it has network connections enabled, and that the network port specified is the one configured on the server.<br />
<br />
Now MySQL is running as a service and is started on my machine. My Questions are: <br />
<br />
1. How do I enable network connections?<br />
2. How do I specify that the network port specified is the one configured on the server?<br />
<br />
Any assistance will be really appreciated. Thanks in advance.<br />
<br />
 <pre style="margin:20px; line-height:13px">http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>blue-iguana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242474.html</guid>
		</item>
		<item>
			<title>Database Table designs</title>
			<link>http://www.daniweb.com/forums/thread242461.html</link>
			<pubDate>Mon, 30 Nov 2009 15:01:07 GMT</pubDate>
			<description>Hi all,  
 
 I have been set an assignment to which i have no clue about. I am going to paste the brief to you all and hopefully some kind person will give me some guidance upon what tables i need and what attributes need to go in them. 
 
 In a university environment there are members of staff and...</description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
 I have been set an assignment to which i have no clue about. I am going to paste the brief to you all and hopefully some kind person will give me some guidance upon what tables i need and what attributes need to go in them.<br />
<br />
 In a university environment there are members of staff and students. Some postgraduate students are also working as Research or Teaching Assistants and are, therefore, considered as members of staff as well. For each student we keep his or her name, library card number and degree programme they are studying. We are also keeping the course units they are studying and the grades that they get for each course unit. We also keep the School(s) that is/are responsible for each course unit. For each Research Assistant we keep his or her name, library card number and research project they are for. For each Teaching Assistant we keep his or her name, library card number and lecturer(s) that they are helping. For each academic member of staff we keep his or her name, library card number and course units they are responsible for. The university has a library. Each member of staff or student can borrow up to ten items from the library. These items are books, journals or technical reports. To each book the library is assigning a number and is also keeping the author(s), title and year that it was published. To each journal the library is assigning a number and is also keeping the title, volume and year that it was published. To each technical report the library is assigning a number and is keeping the author(s), title, version and year that it was published.<br />
<br />
 Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>kt123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242461.html</guid>
		</item>
		<item>
			<title>Need Help with EER Diagram and Tables</title>
			<link>http://www.daniweb.com/forums/thread242344.html</link>
			<pubDate>Mon, 30 Nov 2009 05:13:07 GMT</pubDate>
			<description>Hi I am taking MIS class and i need help with the EER diagram and i tried making it myself but teacher told me that it is a process diagram not an ER diagram please help me here is what i have tried: please click on this link http://yfrog.com/j2mytryj  
 
and here is what another try here is the...</description>
			<content:encoded><![CDATA[<div>Hi I am taking MIS class and i need help with the EER diagram and i tried making it myself but teacher told me that it is a process diagram not an ER diagram please help me here is what i have tried: please click on this link <a rel="nofollow" class="t" href="http://yfrog.com/j2mytryj" target="_blank">http://yfrog.com/j2mytryj</a> <br />
<br />
and here is what another try here is the link <a rel="nofollow" class="t" href="http://yfrog.com/2s2ndxj" target="_blank">http://yfrog.com/2s2ndxj</a> <br />
<br />
please let me know which one is correct i am having trouble defining the entities...and i also need to create table with attributes and normalize it...please help!<br />
<br />
Here is the scenario:<br />
MIS Corporation owns and operates nine large hardware stores and one centralized warehouse in major metropolitan areas of the west United States. The stores carry a wide variety of hardware merchandise for sale to the individual and business. The stock is stored in bins and is located by an inventory number in the warehouse. <br />
<br />
Whenever a retail store needs merchandise, a four-part merchandise request form is completed. One copy is kept by the store, and three copies are mailed to the warehouse the next day. If the merchandise requested is on hand, the goods are delivered to the store, accompanied by the third copy of the request. The second copy is filed at the warehouse. The fourth copy is forward to accounts receivable for cost and revenue calculation.<br />
<br />
If the quantity of goods on hand is not sufficient to fill the order, the warehouse sends the quantity available and notes the quantity shipped on the request form. A purchase memorandum for the shortage is then prepared by the warehouse. At the end of each day, all the memos are sent to the purchasing department.<br />
<br />
When ordered goods are received, they are checked at the receiving area of the warehouse, and a receiving report is prepared. One copy of the receiving report is retained at the receiving area, one is forwarded to accounts payable, and one is filed at the warehouse with the purchase memorandum.<br />
<br />
When the purchase memoranda are received from the warehouse, purchase orders are prepared. Vendor catalogs are used to select the best source for the requested goods, and the purchase order is prepared and mailed. Copies of the order are sent to account payable and the receiving area. One copy is retained in the purchasing department.<br />
<br />
When receiving report arrives in the purchasing department, it is compared with the purchase order on file. It is also checked with the invoice before the invoice is forwarded to accounts payable for payment.<br />
<br />
Each week a report of the open purchase orders is prepared to determine if any action should be taken on overdue deliveries. This report is prepared manually after scanning the file of outstanding purchase orders.<br />
<br />
The company has been successful in this field. Each retail store acquires its merchandise from the company's centrally located warehouse. Consequently, the warehouse must maintain an up-to-date and well-stocked inventory ready to meet the demand of the individual stores.<br />
<br />
The company wishes to hold its competitive position with similar stores of other companies in its market area. Therefore, MIS Company must improve its purchasing, inventory, and selling procedures. The number of company's store, the number of inventory items carried, and the volume of business has been providing pressures to change from basically manual data processing routines to a computerized processing system.<br />
<br />
After several discussions with the company's executive board, Nancy Tsai, the chief executive office of MIS Company, has decided to install several minicomputers in stores and warehouse in the late 1990s. Most of the applications that have been installed on the computer are in the accounting and financial areas. Most of these application programs are purchased from a software vendor company that has modified the programs to meet the requirements of the MIS Company.<br />
<br />
The computer applications at MIS Company have generally been successful. The software has enabled the company to reduce its paper work burden and improve its response to individual stores. In addition management is able to obtain better information concerning costs, sales, and profit. <br />
<br />
Nevertheless, managers at MIS Company are dissatisfied with several aspects of the computer systems. While the applications have helped improved the operations management function, there has been little impact on middle management and still less on top management. Nancy Tsai and the other managers at MIS Company have come to realize that there are basic limitations to traditional file processing systems. Some of these limitations are (1) uncontrolled redundancy, (2) inconsistent data, (3) inflexibility, (4) limited data sharing, (5) poor enforcement of standards, and (6) excessive program maintenance.<br />
<br />
Now the competition in hardware retailing has intensified. Competitors such as Home Base and Home Depot seem to response more rapidly than MIS Company to new business opportunities. Therefore, after analyzing the current individual file processing systems, the company's data processing consulting firm – the Oaks Associates has suggested replacing the existing systems with an integrated database management systems using Oracle. <br />
<br />
The recommendation of the Oaks Associates stated that the new database management systems should have the following characteristics: (1) minimal data redundancy, (2) consistency of data, (3) integration of data, (4) sharing of data, (5) ease of application development, (6) uniform, security, privacy, and integrity controls, (7) data accessibility and responsiveness, (8) data independence, and (9) reduced program maintenance.<br />
<br />
Nancy Tsai has accepted the excellent advice given by the Oaks Associates. She is intended to purchase Oracle as the MIS Company's database management systems. She has just hired your team for the data processing department. Your responsibility is to design a database oriented merchandise distribution systems to collect the information about inventory levels for the warehouse and individual stores, vendor, accounts payable, and accounts receivable. Nancy Tsai expects that your database design is flexible to handle both large volume transactional processing reports for the operation management and ad hoc reports for the top management.<br />
<br />
===========<br />
<span style="font-weight:bold"><span style="color:Red">Please see the <a rel="nofollow" class="t" href="http://yfrog.com/06captureobp‏" target="_blank">http://yfrog.com/06captureobp‏</a> document this is my new updated version please let me know if i have any mistakes as far as the tables and attributes and also the normalization</span></span><br />
here is the tables<br />
MIS Corporation<br />
Attributes<br />
CompanyID<br />
Description<br />
<br />
Hardware Stores<br />
Attributes<br />
StoreNo<br />
StoreAdd<br />
StorePhone<br />
CustNo<br />
<br />
Warehouse<br />
Attributes<br />
WarehouseNo<br />
WarehouseAdd<br />
WarehousePhone<br />
<br />
Customers<br />
Attributes<br />
CustNo<br />
CustLname<br />
CustFname<br />
CustAdd<br />
CustPhone<br />
<br />
Transactions<br />
Attributes<br />
TransNO<br />
TransDate<br />
ProductNO<br />
<br />
<br />
<br />
Product<br />
Attributes<br />
ProductNo<br />
ProductDescription<br />
SerialNumber<br />
Model Number<br />
<br />
Purchase Order Item<br />
Attributes<br />
POINo<br />
ProductNo<br />
POIDescription<br />
POIQuantaty<br />
POIPrice<br />
PurchaseNo<br />
<br />
Purchase<br />
Attributes<br />
PurchaseNo<br />
PurchaseDate<br />
VendorNo<br />
InvoiceNo<br />
StaffNo<br />
POINo<br />
<br />
Vendor<br />
Attributes<br />
VendorNo<br />
VendorAdd<br />
VendorPhone<br />
VendorType<br />
<br />
<br />
Invoice<br />
Attributes<br />
InvoiceNo<br />
InvoiceDate<br />
InvoiceAmount<br />
VendorNo<br />
PurchaseNo<br />
<br />
Payment<br />
Attributes<br />
PaymentNo<br />
PaymentDate<br />
PaymentAmount<br />
VendorNo<br />
PurchaseNo<br />
InvoiceNo<br />
StaffNo<br />
<br />
Staff<br />
Attributes<br />
StafftNo<br />
SLname<br />
SFname<br />
StoreNo<br />
Hiredate<br />
Saddress<br />
<br />
<br />
Order<br />
Attributes<br />
OrderNo<br />
OrderDate<br />
CustomerNo<br />
Cust_paymentNo<br />
OLIno<br />
<br />
<br />
<br />
Order Line Item<br />
Attributes<br />
OLineNo<br />
ProductNo<br />
OLineDescription<br />
OLineQuantaty<br />
OLinePrice<br />
OrderNo<br />
<br />
Cust_Payment<br />
Attributes<br />
Cust_PaymentNo<br />
Cust_PaymentDate<br />
Cust_PaymentAmount<br />
StoreNo<br />
OrderNo<br />
StaffNo</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/pdf.gif" alt="File Type: pdf" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12786&amp;d=1259558099">has1hireshires.pdf</a> (31.5 KB)</td> </tr><tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/pdf.gif" alt="File Type: pdf" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12787&amp;d=1259558104">NEwTables.pdf</a> (38.6 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Tahseen79</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242344.html</guid>
		</item>
		<item>
			<title>Need Help with EER Diagram</title>
			<link>http://www.daniweb.com/forums/thread242318.html</link>
			<pubDate>Mon, 30 Nov 2009 02:24:31 GMT</pubDate>
			<description>Hi I am taking MIS class and i need help with the EER diagram and i tried making it myself but teacher told me that it is a process diagram not an ER diagram please help me here is what i have tried: please click on this link _http://yfrog.com/j2mytryj  _ 
 
and here is what another try here is the...</description>
			<content:encoded><![CDATA[<div>Hi I am taking MIS class and i need help with the EER diagram and i tried making it myself but teacher told me that it is a process diagram not an ER diagram please help me here is what i have tried: please click on this link <span style="text-decoration:underline"><a rel="nofollow" class="t" href="http://yfrog.com/j2mytryj" target="_blank">http://yfrog.com/j2mytryj </a> </span><br />
<br />
and here is what another try here is the link <a rel="nofollow" class="t" href="http://yfrog.com/2s2ndxj" target="_blank">http://yfrog.com/2s2ndxj</a>   <br />
<br />
please let me know which one is correct i am having trouble defining the entities...and i also need to create table with attributes and normalize it...please help!<br />
<br />
Here is the scenario:<br />
<span style="font-weight:bold">MIS Corporation owns and operates nine large hardware stores and one centralized warehouse in major metropolitan areas of the west United States.  The stores carry a wide variety of hardware merchandise for sale to the individual and business.  The stock is stored in bins and is located by an inventory number in the warehouse. <br />
<br />
Whenever a retail store needs merchandise, a four-part merchandise request form is completed.  One copy is kept by the store, and three copies are mailed to the warehouse the next day.  If the merchandise requested is on hand, the goods are delivered to the store, accompanied by the third copy of the request.  The second copy is filed at the warehouse.  The fourth copy is forward to accounts receivable for cost and revenue calculation.<br />
<br />
If the quantity of goods on hand is not sufficient to fill the order, the warehouse sends the quantity available and notes the quantity shipped on the request form.  A purchase memorandum for the shortage is then prepared by the warehouse.  At the end of each day, all the memos are sent to the purchasing department.<br />
<br />
When ordered goods are received, they are checked at the receiving area of the warehouse, and a receiving report is prepared.  One copy of the receiving report is retained at the receiving area, one is forwarded to accounts payable, and one is filed at the warehouse with the purchase memorandum.<br />
<br />
When the purchase memoranda are received from the warehouse, purchase orders are prepared.  Vendor catalogs are used to select the best source for the requested goods, and the purchase order is prepared and mailed.  Copies of the order are sent to account payable and the receiving area.  One copy is retained in the purchasing department.<br />
<br />
When receiving report arrives in the purchasing department, it is compared with the purchase order on file.  It is also checked with the invoice before the invoice is forwarded to accounts payable for payment.<br />
<br />
Each week a report of the open purchase orders is prepared to determine if any action should be taken on overdue deliveries.  This report is prepared manually after scanning the file of outstanding purchase orders.<br />
<br />
The company has been successful in this field.  Each retail store acquires its merchandise from the company's centrally located warehouse.  Consequently, the warehouse must maintain an up-to-date and well-stocked inventory ready to meet the demand of the individual stores.<br />
<br />
The company wishes to hold its competitive position with similar stores of other companies in its market area.  Therefore, MIS Company must improve its purchasing, inventory, and selling procedures.  The number of company's store, the number of inventory items carried, and the volume of business has been providing pressures to change from basically manual data processing routines to a computerized processing system.<br />
<br />
After several discussions with the company's executive board, Nancy Tsai, the chief executive office of MIS Company, has decided to install several minicomputers in stores and warehouse in the late 1990s.  Most of the applications that have been installed on the computer are in the accounting and financial areas.  Most of these application programs are purchased from a software vendor company that has modified the programs to meet the requirements of the MIS Company.<br />
<br />
The computer applications at MIS Company have generally been successful.  The software has enabled the company to reduce its paper work burden and improve its response to individual stores.  In addition management is able to obtain better information concerning costs, sales, and profit.  <br />
<br />
Nevertheless, managers at MIS Company are dissatisfied with several aspects of the computer systems.  While the applications have helped improved the operations management function, there has been little impact on middle management and still less on top management.  Nancy Tsai and the other managers at MIS Company have come to realize that there are basic limitations to traditional file processing systems.  Some of these limitations are (1) uncontrolled redundancy, (2) inconsistent data, (3) inflexibility, (4) limited data sharing, (5) poor enforcement of standards, and (6) excessive program maintenance.<br />
<br />
Now the competition in hardware retailing has intensified.  Competitors such as Home Base and Home Depot seem to response more rapidly than MIS Company to new business opportunities.  Therefore, after analyzing the current individual file processing systems, the company's data processing consulting firm – the Oaks Associates has suggested replacing the existing systems with an integrated database management systems using Oracle. <br />
<br />
The recommendation of the Oaks Associates stated that the new database management systems should have the following characteristics: (1) minimal data redundancy, (2) consistency of data, (3) integration of data, (4) sharing of data, (5) ease of application development, (6) uniform, security, privacy, and integrity controls, (7) data accessibility and responsiveness, (8) data independence, and (9) reduced program maintenance.<br />
<br />
Nancy Tsai has accepted the excellent advice given by the Oaks Associates.  She is intended to purchase Oracle as the MIS Company's database management systems.  She has just hired your team for the data processing department.  Your responsibility is to design a database oriented merchandise distribution systems to collect the information about inventory levels for the warehouse and individual stores, vendor, accounts payable, and accounts receivable.  Nancy Tsai expects that your database design is flexible to handle both large volume transactional processing reports for the operation management and ad hoc reports for the top management.<br />
</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Tahseen79</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242318.html</guid>
		</item>
		<item>
			<title>Querying for next and previous record info</title>
			<link>http://www.daniweb.com/forums/thread242128.html</link>
			<pubDate>Sun, 29 Nov 2009 03:46:11 GMT</pubDate>
			<description>Much is written in various how-to sites about next and previous page navigation utilizing Limit to retrieve multiple rows of data and display them in chunks of 10 rows to a PHP page, as an example.  This problem is subtly different. 
 
For the site I am programming, all of the content for a given...</description>
			<content:encoded><![CDATA[<div>Much is written in various how-to sites about next and previous page navigation utilizing Limit to retrieve multiple rows of data and display them in chunks of 10 rows to a PHP page, as an example.  This problem is subtly different.<br />
<br />
For the site I am programming, all of the content for a given page is one record in a database.  It is retrieved from the database using an id field.  The Next Page/Previous Page navigation desired is to go to the record before or after the one currently displayed as a single web page.<br />
<br />
The order by which these pages appear can vary based on sorting and other query criteria. It is a given that any query will return multiple rows.  Presently, the data result returns data for url's used elsewhere on the page for navigation.  The Next Page/Previous Page navigation is to supplement that.<br />
<br />
How does one query the database to get the next or previous id of the id currently selected?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>dwlamb_001</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242128.html</guid>
		</item>
		<item>
			<title>can’t load_file database</title>
			<link>http://www.daniweb.com/forums/thread242118.html</link>
			<pubDate>Sun, 29 Nov 2009 02:38:35 GMT</pubDate>
			<description><![CDATA[I'm running as mysql root user on my system. 
 
I can select load_file('/etc/passwd'); no problem 
 
But when I try to select load_file('/var/lib/mysql/mysql'); I get NULL as a result why? this file is good, I can cat it as root and view the mysql user data, why cant mysql load_file it? Its...]]></description>
			<content:encoded><![CDATA[<div>I'm running as mysql root user on my system.<br />
<br />
I can select load_file('/etc/passwd'); no problem<br />
<br />
But when I try to select load_file('/var/lib/mysql/mysql'); I get NULL as a result why? this file is good, I can cat it as root and view the mysql user data, why cant mysql load_file it? Its permissions are the default:<br />
<br />
-rw-rw---- 1 mysql mysql    444 2009-08-04 19:08 user.MYD<br />
<br />
It's owner is by default the user mysql and has read permission, so why doesn't mysql like to load_file it? Is mysql somehow blocking access to this file and if so how can I bypass that? Doing stuff like mysql/../mysql in the path doesn't work, and using hex encoding didn't work either?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>stacy220481</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242118.html</guid>
		</item>
		<item>
			<title>Help with query</title>
			<link>http://www.daniweb.com/forums/thread241918.html</link>
			<pubDate>Sat, 28 Nov 2009 00:38:17 GMT</pubDate>
			<description>Hi all, 
 
I would like to ask for some help in a query. I am trying to create a view and this view should show the student name, project name, hours spent on the project, and number of units the project is worth. However, if the project is not done it should display null instead of the number of...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I would like to ask for some help in a query. I am trying to create a view and this view should show the student name, project name, hours spent on the project, and number of units the project is worth. However, if the project is not done it should display null instead of the number of units available in the project database. I wrote the following query but can't get it to work<br />
 <pre style="margin:20px; line-height:13px">CREATE VIEW Student_A<br />
AS SELECT&nbsp; s.name, p.proj_name, a.hours, p.units, CASE p.units WHEN End_Date IS NOT NULL THEN p.units ELSE NULL END &quot; Units&quot;<br />
From Student s, Project p, Assigned a<br />
WHERE s.std_id=p.std_id AND p.project_id=a.project_id;</pre><br />
Any help is  greatly appreciated =)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>ssa01</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241918.html</guid>
		</item>
		<item>
			<title>Hospital administration database</title>
			<link>http://www.daniweb.com/forums/thread241790.html</link>
			<pubDate>Fri, 27 Nov 2009 12:42:32 GMT</pubDate>
			<description><![CDATA[DRIEND FRIENDS, 
I am given a project "hospital administration database" 
Could you please guide me how to start and proceed. 
Thanks and Regards. 
Shariq]]></description>
			<content:encoded><![CDATA[<div>DRIEND FRIENDS,<br />
I am given a project &quot;hospital administration database&quot;<br />
Could you please guide me how to start and proceed.<br />
Thanks and Regards.<br />
Shariq</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>shariqmsit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241790.html</guid>
		</item>
		<item>
			<title>Database Archiving</title>
			<link>http://www.daniweb.com/forums/thread241771.html</link>
			<pubDate>Fri, 27 Nov 2009 10:48:20 GMT</pubDate>
			<description><![CDATA[I've got a database which is getting quite large and slow to query.  I only really need the last month of entries for most situations so I'm looking to create structure-copies of two of my tables and then regularly move data from the 'live' two into the 'archive' two if the records are more than a...]]></description>
			<content:encoded><![CDATA[<div>I've got a database which is getting quite large and slow to query.  I only really need the last month of entries for most situations so I'm looking to create structure-copies of two of my tables and then regularly move data from the 'live' two into the 'archive' two if the records are more than a month old.<br />
What is the best way to achieve this? Should I regularly perform checks from my application (C#) or would it be better to let MySQL handle this operation?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>benkyma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241771.html</guid>
		</item>
		<item>
			<title>Count on chars to match on another column</title>
			<link>http://www.daniweb.com/forums/thread241692.html</link>
			<pubDate>Fri, 27 Nov 2009 00:50:54 GMT</pubDate>
			<description><![CDATA[Hi Guys 
 
It may be friday, but I am having a real brain fade with this one. 
I have one table which contains several columns (see below) I need to match names in the tables. The first name is in column childname1 which contains the full name, the column I need to match to is in "firstname" and...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys<br />
<br />
It may be friday, but I am having a real brain fade with this one.<br />
I have one table which contains several columns (see below) I need to match names in the tables. The first name is in column childname1 which contains the full name, the column I need to match to is in &quot;firstname&quot; and &quot;familyname&quot; columns respectively.<br />
<br />
I need a display the groupid beside the matching childname1 column. Now I can think of concatenating the first and family name columns to make it easier I can also think of doing it in excel, but I am looking for a count match on the first 3 letters of the firstname to the childname1 first name.<br />
any ideas, have looked at pathindex and charindex to work it.!<br />
groupid<br />
093911982| NULL| Margaret| Johnston| Miss Grace Johnston|<br />
037281982| NULL| Louise|Kelly|Ms Brianna Kelly|<br />
083753534|NULL|Grace|Johnstone|NULL|<br />
<br />
cheers</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>iann</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241692.html</guid>
		</item>
		<item>
			<title><![CDATA[my clock to end postings does'nt work]]></title>
			<link>http://www.daniweb.com/forums/thread241544.html</link>
			<pubDate>Thu, 26 Nov 2009 10:35:37 GMT</pubDate>
			<description><![CDATA[Use this code 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a href="#"...]]></description>
			<content:encoded><![CDATA[<div>Use this code<br />
 <pre style="margin:20px; line-height:13px">&nbsp;  sql = &quot;SELECT products.endDate FROM products INNER JOIN &quot;<br />
&nbsp;  sql = sql &amp; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; auctionevents ON products.idsupplier = auctionevents.idSupplier &quot;<br />
&nbsp;  sql = sql &amp; &quot;&nbsp; &nbsp; &nbsp; &nbsp; WHERE&nbsp; &nbsp;  (products.endDate &gt; CURRENT_TIMESTAMP) AND (auctionevents.ID = &quot;&amp;id&amp;&quot;)&nbsp; AND (products.ListHidden &lt;&gt; 1)&quot;</pre><br />
but if the server is not run the endDate goes past currenttimestamp and continues forward, anyone help please?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>gsc1ugs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241544.html</guid>
		</item>
		<item>
			<title>Database Programming?</title>
			<link>http://www.daniweb.com/forums/thread241479.html</link>
			<pubDate>Thu, 26 Nov 2009 06:30:18 GMT</pubDate>
			<description><![CDATA[I've been trying to learn how to program for several years now. I've struggled with everything from C++, C#, to Python, but never got passed simple DOS text based screen programs that were very short. I'M now 24 and I work in a factory. I would love to find a carer filed with computers, but I'll...]]></description>
			<content:encoded><![CDATA[<div>I've been trying to learn how to program for several years now. I've struggled with everything from C++, C#, to Python, but never got passed simple DOS text based screen programs that were very short. I'M now 24 and I work in a factory. I would love to find a carer filed with computers, but I'll take anything with heat and air.<br />
I've heard that database programming is an easier thing to learn that general programming and that there is money to be made.<br />
So my question is, is SQL/MySQL the right place for me to be and get started? And how long much learning will it take to get a job? Thanks for any and all answers.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Garrett85</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241479.html</guid>
		</item>
		<item>
			<title>Store a photohraph in mysql</title>
			<link>http://www.daniweb.com/forums/thread241457.html</link>
			<pubDate>Thu, 26 Nov 2009 04:44:39 GMT</pubDate>
			<description>Can I store a photograph in a mysql table. ? 
What type it takes...how it is done.  
Do i have to store only the path??? 
please explain me.</description>
			<content:encoded><![CDATA[<div>Can I store a photograph in a mysql table. ?<br />
What type it takes...how it is done. <br />
Do i have to store only the path???<br />
please explain me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>jrosh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241457.html</guid>
		</item>
		<item>
			<title>changed limits max_open_files warning in server</title>
			<link>http://www.daniweb.com/forums/thread241448.html</link>
			<pubDate>Thu, 26 Nov 2009 04:36:17 GMT</pubDate>
			<description><![CDATA[Hi, 
 
we are running mysql 5.0.16-nt in windows 2003 server... we are getting frequently some warnings in the event viewer like  
"Changed limits: max_open_files: 2048  max_connections: 450 table_cache: 794" 
Once this warning arise, then the site has broken indicating "too many connections".. 
...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
we are running mysql 5.0.16-nt in windows 2003 server... we are getting frequently some warnings in the event viewer like <br />
&quot;Changed limits: max_open_files: 2048  max_connections: 450 table_cache: 794&quot;<br />
Once this warning arise, then the site has broken indicating &quot;too many connections&quot;..<br />
<br />
I have gone through many of the threads posted in the net but I cant come to a solution and how to fix this problem..<br />
<br />
Can you anybody give me suggestion for fix this problem?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>mahe4us</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241448.html</guid>
		</item>
		<item>
			<title>there is already an object named #instmsdb</title>
			<link>http://www.daniweb.com/forums/thread241428.html</link>
			<pubDate>Thu, 26 Nov 2009 02:47:50 GMT</pubDate>
			<description>Hi Gurus, 
 
I am attempting to install KB970892 on SQL Express 2005SP3, 
and I am unable to do so, due to a SQL suspended installation. 
 
When I try to continue the installation (which I have no idea what is it trying to install - I have inherited this server the way it is), the following errors...</description>
			<content:encoded><![CDATA[<div>Hi Gurus,<br />
<br />
I am attempting to install KB970892 on SQL Express 2005SP3,<br />
and I am unable to do so, due to a SQL suspended installation.<br />
<br />
When I try to continue the installation (which I have no idea what is it trying to install - I have inherited this server the way it is), the following errors occur:<br />
<br />
&quot;there is already an object named 'sysmail_update_profileaccount_sp' in the database&quot;<br />
<br />
followed by<br />
<br />
&quot;there is already an object named #InstMsdb in the database&quot;<br />
<br />
and the installation is unable to continue from this point.<br />
<br />
I have tried searching the web and forums but no answer ..<br />
<br />
Any leads will be greatly appreciated!<br />
<br />
Thank you,<br />
<br />
-Ishay</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>ishaybas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241428.html</guid>
		</item>
		<item>
			<title>Using</title>
			<link>http://www.daniweb.com/forums/thread241331.html</link>
			<pubDate>Wed, 25 Nov 2009 16:42:11 GMT</pubDate>
			<description>Hello to all,  
 
We are currently using Excel and are thinking of changing. Now we would like to use Mysql. Only problem is that all our customer addresses and other information are on Excel.  
 
Can you help us with this? 
 
Thanks for your feedback. 
 
(Of course title is bad... )</description>
			<content:encoded><![CDATA[<div>Hello to all, <br />
<br />
We are currently using Excel and are thinking of changing. Now we would like to use Mysql. Only problem is that all our customer addresses and other information are on Excel. <br />
<br />
Can you help us with this?<br />
<br />
Thanks for your feedback.<br />
<br />
(Of course title is bad... )</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>asmikwen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241331.html</guid>
		</item>
		<item>
			<title>PHP and SQL to collate and print data (pdf format)</title>
			<link>http://www.daniweb.com/forums/thread241307.html</link>
			<pubDate>Wed, 25 Nov 2009 15:00:37 GMT</pubDate>
			<description>Hello and bonjour everyone 
 
I need a bit of hand-holding (pseudo-code) on how to go about accomplishing this task and will appreciate it if you could find 1 or 2 minutes to guide me through. 
 
Basically, i need to extract some information from database (different columns) and display it in a pdf...</description>
			<content:encoded><![CDATA[<div>Hello and bonjour everyone<br />
<br />
I need a bit of hand-holding (pseudo-code) on how to go about accomplishing this task and will appreciate it if you could find 1 or 2 minutes to guide me through.<br />
<br />
Basically, i need to extract some information from database (different columns) and display it in a pdf format using php.<br />
<br />
Now, i have never done this sort of thing before and was wondering if thats even realistically possible? What i was thinking was; create a new php file, say extracted_info.php, let it display the extracted information from different columns and even tables in one place and then somehow convert that information into a pdf file! Do you agree? what would i need to accomplish that. Quick googling churned up so many php and pdf library and tutorials but which one to choose? preferably the one built-in my PHP 5.x but i dont know even if its there!!<br />
<br />
So, in short, any pointers no matter how trivial you think theya re will be very helpful as im kinda newbie in mixing SQL and PHP.<br />
<br />
thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>bigjoke</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241307.html</guid>
		</item>
		<item>
			<title>Vacation days off</title>
			<link>http://www.daniweb.com/forums/thread241304.html</link>
			<pubDate>Wed, 25 Nov 2009 14:52:40 GMT</pubDate>
			<description>I am trying to capture the COUNT of employees who are off by running a query from a table that has employee name and START DATE and END DATE of their vacation days throughout the years.  I need to pull all employees who are GONE over a period of DATES SELECTED by the user.  Should I use a Y/N...</description>
			<content:encoded><![CDATA[<div>I am trying to capture the COUNT of employees who are off by running a query from a table that has employee name and START DATE and END DATE of their vacation days throughout the years.  I need to pull all employees who are GONE over a period of DATES SELECTED by the user.  Should I use a Y/N statement (GONE or NOT GONE) in the criteria?  If so, what is it?  Second, which search parameter should I use if I only have the START DATE and END DATE?  I need to have something that will capture ALL employees who may have started or ended their vacations outside the dates selected for viewing by the user.<br />
<br />
Thnks,<br />
Amos</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum128.html">MS Access and FileMaker Pro</category>
			<dc:creator>Amos76</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241304.html</guid>
		</item>
		<item>
			<title>increase maximum number of result sets</title>
			<link>http://www.daniweb.com/forums/thread241279.html</link>
			<pubDate>Wed, 25 Nov 2009 12:56:38 GMT</pubDate>
			<description>I get the following message when executing a stored procedure. 
 
The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed in the grid. 
 
However , i cannot change the fact that the SP uses a cursor. 
...</description>
			<content:encoded><![CDATA[<div>I get the following message when executing a stored procedure.<br />
<br />
<span style="color:Red">The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed in the grid.</span><br />
<br />
However , i cannot change the fact that the SP uses a cursor.<br />
<br />
Basically what happens is that the SP executes into a declared table, and then for each row it executes a new stored procedure bringing the number of result sets to about 20 000....<br />
<br />
Any advice on where i can change this setting  ?<br />
<br />
Regards,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>cVz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241279.html</guid>
		</item>
		<item>
			<title>Scheduling Jobs in SQL Server 2005</title>
			<link>http://www.daniweb.com/forums/thread241247.html</link>
			<pubDate>Wed, 25 Nov 2009 10:13:39 GMT</pubDate>
			<description>PRACTICA EXAMPLE FOR Scheduling Jobs in SQL Server 2005</description>
			<content:encoded><![CDATA[<div>PRACTICA EXAMPLE FOR Scheduling Jobs in SQL Server 2005</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>farhan111</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241247.html</guid>
		</item>
		<item>
			<title>Multiple joins on the same table</title>
			<link>http://www.daniweb.com/forums/thread241241.html</link>
			<pubDate>Wed, 25 Nov 2009 09:48:49 GMT</pubDate>
			<description>Hi. 
 
I have a question to advanced SQL programmers/users. I would be very grateful if you could explain me in simple words why we use multiple joins on the same table (for example multiple left outer joins) - what benefits it brings?  
 
examples would be appreciated 
 
best regards 
q</description>
			<content:encoded><![CDATA[<div>Hi.<br />
<br />
I have a question to advanced SQL programmers/users. I would be very grateful if you could explain me in simple words why we use multiple joins on the same table (for example multiple left outer joins) - what benefits it brings? <br />
<br />
examples would be appreciated<br />
<br />
best regards<br />
q</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>questionary</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241241.html</guid>
		</item>
		<item>
			<title>help with db design...</title>
			<link>http://www.daniweb.com/forums/thread241239.html</link>
			<pubDate>Wed, 25 Nov 2009 09:42:59 GMT</pubDate>
			<description>I am designing a database system to store salary information. It includes different tables (salary,personal info , ect) 
 
I want to make it use for different companies. Also i want each set of data to be separated. (by company wise). {i.e. i dnt want all the employee names of every company in one...</description>
			<content:encoded><![CDATA[<div>I am designing a database system to store salary information. It includes different tables (salary,personal info , ect)<br />
<br />
I want to make it use for different companies. Also i want each set of data to be separated. (by company wise). {i.e. i dnt want all the employee names of every company in one table!!}<br />
what would be the best database structure for that.?? <br />
<br />
i tried 1. one db for 1 company<br />
          That looks like invain.  <br />
<br />
<br />
please help me. I jst want an idea. thankx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>jrosh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241239.html</guid>
		</item>
		<item>
			<title>Oracle Service Start up</title>
			<link>http://www.daniweb.com/forums/thread241123.html</link>
			<pubDate>Tue, 24 Nov 2009 23:27:15 GMT</pubDate>
			<description>I currently run an installer app that will install a DB on a VM server. However this fails because the when oracle is called to begin the oracle services start up but the newly installed DB will not. It works on a physical machine but not on the virtual server. Any ideas on why this configuration...</description>
			<content:encoded><![CDATA[<div>I currently run an installer app that will install a DB on a VM server. However this fails because the when oracle is called to begin the oracle services start up but the newly installed DB will not. It works on a physical machine but not on the virtual server. Any ideas on why this configuration will not work. I am working with Oracle 10 xe although it does work on the Standard edition.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>Blaine Tuisee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241123.html</guid>
		</item>
		<item>
			<title>query to get highest bid from data</title>
			<link>http://www.daniweb.com/forums/thread240948.html</link>
			<pubDate>Tue, 24 Nov 2009 10:25:43 GMT</pubDate>
			<description><![CDATA[Hi 
 
I have this data 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I have this data<br />
<br />
 <pre style="margin:20px; line-height:13px">CustBid&nbsp; &nbsp; &nbsp; &nbsp; idProduct&nbsp; &nbsp; &nbsp; &nbsp; bidAmount&nbsp; &nbsp; &nbsp; &nbsp; bidDate<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 165.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-20 09:05:31.640<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 155.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-20 09:05:25.480<br />
4&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 95.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-19 12:40:44.973<br />
4&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 85.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-19 12:40:40.377<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 85.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-12 11:20:52.400<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 85.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-12 11:20:52.400<br />
4&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 75.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-12 11:11:02.080<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 65.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-12 11:20:20.170<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 45.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-12 11:08:02.407<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 272&nbsp; &nbsp; &nbsp; &nbsp; 25.00&nbsp; &nbsp; &nbsp; &nbsp; 2009-11-12 11:05:06.663</pre><br />
and I want to be able to list the second highest bid that is not the same user so what i would like to display is 95 because bidder 1 has two higher so i dont want those proxy bids visible, what query could i use? have this so far<br />
<br />
 <pre style="margin:20px; line-height:13px">Select bidhistory.idCustomerBid as CustBid, bidhistory.idProduct, bidhistory.bidAmount, bidhistory.bidDate From bidhistory where (bidhistory.idProduct = 272) AND (idCustomerBid &lt;&gt; 2) order by bidAmount desc</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>gsc1ugs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240948.html</guid>
		</item>
		<item>
			<title>Recommend SQL Editor</title>
			<link>http://www.daniweb.com/forums/thread240924.html</link>
			<pubDate>Tue, 24 Nov 2009 08:17:46 GMT</pubDate>
			<description><![CDATA[Hi everyone. 
 
Can someone please recommend a SQL editor (other than SQL Developer) that will allow me to test out my SQL statements & queries outside of the DB environment. 
 
I will predominantly be working in a windows environment, but may move to a linux environment at times. Will be most...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone.<br />
<br />
Can someone please recommend a SQL editor (other than SQL Developer) that will allow me to test out my SQL statements &amp; queries outside of the DB environment.<br />
<br />
I will predominantly be working in a windows environment, but may move to a linux environment at times. Will be most beneficial if the editor is able to connect to both Oracle and SQLServer DB's.<br />
<br />
Also I would prefer the editor to be &quot;free&quot; but that is isnt so important.<br />
<br />
Any help would much appreciated.<br />
Thanks in advance<br />
Jody</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>GL.Za</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240924.html</guid>
		</item>
		<item>
			<title>How to use unused space / white space in SQL server 2000</title>
			<link>http://www.daniweb.com/forums/thread240886.html</link>
			<pubDate>Tue, 24 Nov 2009 04:24:18 GMT</pubDate>
			<description><![CDATA[Hi,,, we have a database grown too fast... from 19GB last march 09 into 52GB this Nov 09... I search through internet on what happen why do database grow fast and i find nothing,, i found out on how to "sp_spaceused" query and the result says: 
 
database_name        database_size          ...]]></description>
			<content:encoded><![CDATA[<div>Hi,,, we have a database grown too fast... from 19GB last march 09 into 52GB this Nov 09... I search through internet on what happen why do database grow fast and i find nothing,, i found out on how to &quot;sp_spaceused&quot; query and the result says:<br />
<br />
database_name        database_size           unallocated space<br />
MPSDB                       52808.63 MB              4248.71 MB<br />
<br />
reserved          data              index_size        unused<br />
49589288 KB   6859920 KB  2001880 KB      40727488 KB<br />
<br />
My question is: is there's a way on how to use the unused bytes/allocation or can we remove those whitespaces to gain more space in our HD drive?<br />
<br />
Help pls... i'm begging you all geniuses to pls help me.. tnx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>xirosen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240886.html</guid>
		</item>
		<item>
			<title>Help with an Inventory Update trigger</title>
			<link>http://www.daniweb.com/forums/thread240845.html</link>
			<pubDate>Tue, 24 Nov 2009 01:07:54 GMT</pubDate>
			<description><![CDATA[I'm currently studying SQL and have created two tables (Orders and Inventory).   I have been trying to create a trigger on the "OrderDate" column of the Orders table to update the Cur_Stock value (to subtract the Quantity ordered from the Cur_Stock) on the Inventory table whenever a new Order is...]]></description>
			<content:encoded><![CDATA[<div>I'm currently studying SQL and have created two tables (Orders and Inventory).   I have been trying to create a trigger on the &quot;OrderDate&quot; column of the Orders table to update the Cur_Stock value (to subtract the Quantity ordered from the Cur_Stock) on the Inventory table whenever a new Order is placed.   I've tried searching the internet but haven't had any success and I need some help with it.<br />
<br />
HERE IS MY CODE:<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">CREATE TRIGGER &#91;UpdateInventory&#93;<br />
ON &#91;dbo&#93;.&#91;Orders&#93;<br />
&nbsp;  FOR INSERT<br />
AS<br />
DECLARE @OrderDate smalldatetime<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Quantity INT<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
SELECT @OrderDate = OrderDate, @Quantity=Quantity FROM Orders<br />
<br />
BEGIN<br />
UPDATE Inventory<br />
SET Cur_Stock = Cur_Stock - @Quantity<br />
WHERE @OrderDate = GetDate()<br />
END</pre><br />
<br />
But obviously it isn't working.  Can someone help me understand what I'm missing and WHY the above isn't working?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>TJGreene</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240845.html</guid>
		</item>
		<item>
			<title>Pivot Table with dynamic Columns</title>
			<link>http://www.daniweb.com/forums/thread240804.html</link>
			<pubDate>Mon, 23 Nov 2009 21:53:54 GMT</pubDate>
			<description><![CDATA[I am trying to write a query in my .net app and I'm having trouble pivoting the table since the columns are generated dynamically (based on a month range selected by the user) 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am trying to write a query in my .net app and I'm having trouble pivoting the table since the columns are generated dynamically (based on a month range selected by the user)<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT SUM(HEALTH_MTTR) AS MTTR, SUM(HEALTH_OTR) AS OTR, SUM(HEALTH_REPEAT) AS REPEAT, SUM(HEALTH_CHRONIC) AS CHRONIC, SUM(HEALTH_TOTAL) AS TOTAL, (CAST(CAST(YEAR([DATE_RESOLVED_FOR_CLOSURE]) AS VARCHAR(4)) + '-' + Right('00' + CAST(MONTH([DATE_RESOLVED_FOR_CLOSURE]) AS VARCHAR(2)), 2) AS VARCHAR(7))) As YearMonth<br />
FROM TRT_remedy_tickets <br />
WHERE COMPID = @COMPID AND (CAST(CAST(YEAR([DATE_RESOLVED_FOR_CLOSURE]) AS VARCHAR(4)) + '-' + Right('00' + CAST(MONTH([DATE_RESOLVED_FOR_CLOSURE]) AS VARCHAR(2)), 2) AS VARCHAR(7))) BETWEEN @START AND @END<br />
Group By (CAST(CAST(YEAR([DATE_RESOLVED_FOR_CLOSURE]) AS VARCHAR(4)) + '-' + Right('00' + CAST(MONTH([DATE_RESOLVED_FOR_CLOSURE]) AS VARCHAR(2)), 2) AS VARCHAR(7)))</pre><br />
Generates a table like so:<br />
MTTR     OTR     REPEAT     CHRONIC     TOTAL     YearMonth<br />
x             x             x               x                x               2009-06<br />
x             x             x               x                x               2009-07<br />
x             x             x               x                x               2009-08<br />
<br />
And I need the table to be displayed like so<br />
TYPE     2009-06     2009-07     2009-08     2009-09<br />
MTTR        x                 x                x                    x <br />
OTR          x                 x               x                     x <br />
REP          x                 x                x                    x<br />
CHR          x                 x               x                     x<br />
TOT          x                  x              x                      x</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>kardsen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240804.html</guid>
		</item>
		<item>
			<title>Can we insert data in multiple table with single query in mysql</title>
			<link>http://www.daniweb.com/forums/thread240764.html</link>
			<pubDate>Mon, 23 Nov 2009 18:07:24 GMT</pubDate>
			<description><![CDATA[Please tell me can we insert data in multiple table with single query in mysql. 
 
For example i have two table with name `table1` and `table2`  and fields in `table1` are 'id' auto incremented and primary key, second field is 'name' data type varchar of 25 and another table `table2` have fields...]]></description>
			<content:encoded><![CDATA[<div>Please tell me can we insert data in multiple table with single query in mysql.<br />
<br />
For example i have two table with name `table1` and `table2`  and fields in `table1` are 'id' auto incremented and primary key, second field is 'name' data type varchar of 25 and another table `table2` have fields 'id' auto incremented and 'address' data type varchar 55.<br />
<br />
I want to know is it possible to add the data in the fields of `table1` and `table2` with single insert query</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>aruti</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240764.html</guid>
		</item>
		<item>
			<title>getting missing operator error</title>
			<link>http://www.daniweb.com/forums/thread240744.html</link>
			<pubDate>Mon, 23 Nov 2009 16:31:34 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a href="#"...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">private void SubmitActionPerformed(java.awt.event.ActionEvent evt) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement s = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement s1 = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement s2 = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement s3 = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs = s.executeQuery(&quot;select MAX(Guest_ID) from Guests&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; rs.next();<br />
&nbsp; &nbsp; &nbsp;  int maxGuestID = rs.getInt(1) + 1;<br />
&nbsp; &nbsp; &nbsp;  //s1.execute(&quot;insert into Guests values(&quot; + maxGuestID + &quot;,'&quot; + txtUserName.getText() + &quot;',' &quot; + txtUserAddress.getText() + &quot;','&quot;+ txtUserPhone.getText() + &quot;','&quot;+ txtUserEmail.getText() + &quot;','&quot; + cmbCreditCardType.getSelectedItem() + &quot;','&quot;+ txtCreditCardNumber.getText() + &quot;')&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // insert data into reservation table<br />
&nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs1 = s2.executeQuery(&quot;select MAX(Reservation_ID) from Reservation&quot;);<br />
&nbsp; &nbsp; &nbsp;  rs1.next();<br />
&nbsp; &nbsp; &nbsp;  int maxResID = rs1.getInt(1) + 1;<br />
&nbsp; //i'm getting error for date&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp;  s3.execute(&quot;insert into Reservation values(&quot; + maxResID + &quot;,&quot; + maxGuestID +&quot;,'&quot;+ChkPrepaid.getSelectedObjects()+&quot;,'&quot;+txtCheckInDate.getText()+&quot;','&quot;+txtCheckOutDate.getText()+ &quot;'&quot;);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Error: &quot; + e);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>bandibas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240744.html</guid>
		</item>
		<item>
			<title>HeLp plZ Save a daily query result as Csv Into  New File</title>
			<link>http://www.daniweb.com/forums/thread240723.html</link>
			<pubDate>Mon, 23 Nov 2009 14:47:04 GMT</pubDate>
			<description>Hi all, 
 
i use mssql 2005 
 
I have a doubt, how to create a schedule for a query to run every day,the result should be saved every time the query runs, into a new file 
 
For the moment I use SQL Server Agent to do this daily,  
with a jobtask and my query inserted. The output has no extension...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
i use mssql 2005<br />
<br />
I have a doubt, how to create a schedule for a query to run every day,the result should be saved every time the query runs, into a new file<br />
<br />
For the moment I use SQL Server Agent to do this daily, <br />
with a jobtask and my query inserted. The output has no extension<br />
he doesn’t seem to make a new file every time, just replaces it.<br />
<br />
Also the outputtfile should be automatically saved/exported as an Csv file.If thats possible...<br />
These are my first steps with mssql server. <br />
Im loving it, but now Im stuck since a few days.<br />
<br />
Greetz Kristof</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>Likethatjazz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240723.html</guid>
		</item>
		<item>
			<title>Reverse engineering! (MySQL and PHP)</title>
			<link>http://www.daniweb.com/forums/thread240676.html</link>
			<pubDate>Mon, 23 Nov 2009 11:27:39 GMT</pubDate>
			<description>Hi everyone,  
 
I am tasked to alter the front-end of the database and have been given the whole wad of PHP files and also an .SQL file. 
 
My question is, Why i cant see any changes to the database front-end when i change the .sql file. (I tried creating a new column in one table, lets call it...</description>
			<content:encoded><![CDATA[<div>Hi everyone, <br />
<br />
I am tasked to alter the front-end of the database and have been given the whole wad of PHP files and also an .SQL file.<br />
<br />
My question is, Why i cant see any changes to the database front-end when i change the .sql file. (I tried creating a new column in one table, lets call it abc123, and column name is equipment_name).<br />
<br />
Its pretty basic question but has got me totally stumped. Also, would appreciate if someone could guide me on how to proceed to change the front-end. what files will i actually need to update to see the changes ive made to any table/database .<br />
<br />
looking for quick answer.<br />
<br />
Kind regards,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>bigjoke</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240676.html</guid>
		</item>
		<item>
			<title>Driver issue</title>
			<link>http://www.daniweb.com/forums/thread240671.html</link>
			<pubDate>Mon, 23 Nov 2009 11:08:40 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
I am able to connect to the database from backend that is toad.But from the java application i can't . The error is from the line  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am able to connect to the database from backend that is toad.But from the java application i can't . The error is from the line <br />
<br />
 <pre style="margin:20px; line-height:13px">Connection conn =<br />
<br />
&nbsp; &nbsp; &nbsp; DriverManager.getConnection<br />
<br />
&nbsp; &nbsp; &nbsp; (&quot;jdbc:oracle:thin:@vrs1.india.mitey.com:1591:dapps&quot;);</pre> <br />
I am getting the following error:<br />
<br />
 <pre style="margin:20px; line-height:13px">Exception in thread &quot;main&quot; java.lang.ArrayIndexOutOfBoundsException: 7<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.security.o3logon.C1.r(C1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.security.o3logon.C1.l(C1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.security.o3logon.C0.e(C0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.jdbc.ttc7.O3log.&lt;init&gt;(O3log.java:287)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:227)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.jdbc.driver.OracleConnection.&lt;init&gt;(OracleConnection.java:198)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:525)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:171)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at parts.JdbcTest.main(JdbcTest.java:43)</pre><br />
Pl. kindly help  if any ideas pl.kindly suggest.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>palavi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240671.html</guid>
		</item>
		<item>
			<title>Help with a Following Query</title>
			<link>http://www.daniweb.com/forums/thread240661.html</link>
			<pubDate>Mon, 23 Nov 2009 10:30:01 GMT</pubDate>
			<description><![CDATA[Good Day All  
 
i have the Following that table  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>Good Day All <br />
<br />
i have the Following that table <br />
<br />
 <pre style="margin:20px; line-height:13px">ID&nbsp; | ACTV |VENU |STUD | TRIES<br />
=====================================<br />
1&nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp;  4&nbsp; &nbsp; &nbsp; &nbsp;  162&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
2&nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp;  5&nbsp; &nbsp; &nbsp; &nbsp;  104&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
3&nbsp; &nbsp; &nbsp; &nbsp; 8&nbsp;  5&nbsp; &nbsp; &nbsp; &nbsp;  138&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
4&nbsp; &nbsp; &nbsp; &nbsp; 15&nbsp; 2&nbsp; &nbsp; &nbsp; &nbsp;  68&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
5&nbsp; &nbsp; &nbsp; &nbsp; 15&nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp;  291&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
6&nbsp; &nbsp; &nbsp; &nbsp; 21&nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp;  171&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
7&nbsp; &nbsp; &nbsp; &nbsp; 22&nbsp; 5&nbsp; &nbsp; &nbsp; &nbsp;  101&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
8&nbsp; &nbsp; &nbsp; &nbsp; 27&nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp;  11&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
9&nbsp; &nbsp; &nbsp; &nbsp; 28&nbsp; 5&nbsp; &nbsp; &nbsp; &nbsp;  6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
10&nbsp; &nbsp; &nbsp; &nbsp; 31&nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp;  8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
11&nbsp; &nbsp; &nbsp; &nbsp; 32&nbsp; 6&nbsp; &nbsp; &nbsp; &nbsp;  6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0 <br />
12&nbsp; &nbsp; &nbsp; &nbsp; 33&nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp;  308&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<br />
13&nbsp; &nbsp; &nbsp; &nbsp; 35&nbsp; 6&nbsp; &nbsp; &nbsp; &nbsp;  68&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0</pre><br />
now i have the Following Query that Tries to find the ID's of the records that appear twice in the  &quot;VENU&quot; Field. <br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT id <br />
FROM [dbo].SOL_ACTV_VENU<br />
group by&nbsp; id <br />
having count(venu) &gt; 1<br />
order by sum(stud)</pre><br />
and it seems that it give me nothing while in the table i see there are records like that<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>vuyiswamb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240661.html</guid>
		</item>
		<item>
			<title>SQL tables and relation modelling</title>
			<link>http://www.daniweb.com/forums/thread240660.html</link>
			<pubDate>Mon, 23 Nov 2009 10:19:37 GMT</pubDate>
			<description>what is the differances with SQL tables and relation modelling?</description>
			<content:encoded><![CDATA[<div>what is the differances with SQL tables and relation modelling?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>ratatu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240660.html</guid>
		</item>
		<item>
			<title>Any idea on what happen to our database.</title>
			<link>http://www.daniweb.com/forums/thread240605.html</link>
			<pubDate>Mon, 23 Nov 2009 05:18:14 GMT</pubDate>
			<description><![CDATA[Hi,, i am a newbie in SQL server.. we have a database in our office.. I notice that since 2004 - 2008 our database growth was about 19GB, but since jan. 2009 to present our database grows from 19GB to 52GB... is there's something wrong happening in our database's configuration?  
 
Can anyone pls...]]></description>
			<content:encoded><![CDATA[<div>Hi,, i am a newbie in SQL server.. we have a database in our office.. I notice that since 2004 - 2008 our database growth was about 19GB, but since jan. 2009 to present our database grows from 19GB to 52GB... is there's something wrong happening in our database's configuration? <br />
<br />
Can anyone pls share an idea..<br />
<br />
Thanks..<br />
<br />
Sorry for my english..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>xirosen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240605.html</guid>
		</item>
		<item>
			<title>Changing numbering</title>
			<link>http://www.daniweb.com/forums/thread240479.html</link>
			<pubDate>Sun, 22 Nov 2009 18:18:46 GMT</pubDate>
			<description>Hi all, 
I have a column in my table that auto increments as a counter as new records are added.  I would like to renumber the entire column and have it start at 6000. 
 
Can anyone suggest an sql line that would allow me to acomplish this? 
 
Thanks in advance for your help. 
C-</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I have a column in my table that auto increments as a counter as new records are added.  I would like to renumber the entire column and have it start at 6000.<br />
<br />
Can anyone suggest an sql line that would allow me to acomplish this?<br />
<br />
Thanks in advance for your help.<br />
C-</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>studioceasar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240479.html</guid>
		</item>
		<item>
			<title>SQL question</title>
			<link>http://www.daniweb.com/forums/thread240296.html</link>
			<pubDate>Sat, 21 Nov 2009 19:15:18 GMT</pubDate>
			<description><![CDATA[Is this the right place to ask the following?  
 
I have 2 tables in two different MS Access DB's. Access allows the ability of inserting data from DBA.table1 into DBB.table1, using the format [dba].[table1].[dbb].[table1]. Here's my problem.  
 
Using a single SQL Statement I can't figure out the...]]></description>
			<content:encoded><![CDATA[<div>Is this the right place to ask the following? <br />
<br />
I have 2 tables in two different MS Access DB's. Access allows the ability of inserting data from DBA.table1 into DBB.table1, using the format [dba].[table1].[dbb].[table1]. Here's my problem. <br />
<br />
Using a single SQL Statement I can't figure out the following. DBA.table1 has a record, with let's say ID 300. DBB.table1 has a 300 already, matter of fact the ID goes all the way to 550. <br />
<br />
How do a write an insert statement that gets the full record from DBB.table1, but swaps puts in the 'next available' ID, which in the case, for DBB.table1, is 551?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum128.html">MS Access and FileMaker Pro</category>
			<dc:creator>dh111</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240296.html</guid>
		</item>
		<item>
			<title>ISO-8859-1 SQL error</title>
			<link>http://www.daniweb.com/forums/thread240291.html</link>
			<pubDate>Sat, 21 Nov 2009 18:49:22 GMT</pubDate>
			<description><![CDATA[when I try to create a new mail account in my mail broadcast control center I get this message: 
 
SQL error: swd_act : ERROR: 1146 - Table 'craftyartsalesmailcatcher.swd_account' doesn't existContent-Type: text/html; charset=ISO-8859-1 SQL error: INSERT INTO swd_account (`isact` , `name`) VALUES...]]></description>
			<content:encoded><![CDATA[<div>when I try to create a new mail account in my mail broadcast control center I get this message:<br />
<br />
SQL error: swd_act : ERROR: 1146 - Table 'craftyartsalesmailcatcher.swd_account' doesn't existContent-Type: text/html; charset=ISO-8859-1 SQL error: INSERT INTO swd_account (`isact` , `name`) VALUES ('1' , 'swd_act') : ERROR: 1146 - Table 'craftyartsalesmailcatcher.swd_account' doesn't existStatus: 302 Moved Location: /cgi-bin/amlmlite4/responder.cgi?ses=cTb7C4Sps3MkZBHvZLY_It8ry&amp;act=account <br />
<br />
any help with this?<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>CRAFTYARTS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240291.html</guid>
		</item>
		<item>
			<title>Inserting Multiple rows into a single table.</title>
			<link>http://www.daniweb.com/forums/thread240272.html</link>
			<pubDate>Sat, 21 Nov 2009 16:27:22 GMT</pubDate>
			<description><![CDATA[Hey guys 
 
I am Using Oracle APex and have created a some tables running SQL commands.  I am now trying to INSERT multiple rows of data into one of the tables but am running into issues. 
 
I firstly tried the following: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Hey guys<br />
<br />
I am Using Oracle APex and have created a some tables running SQL commands.  I am now trying to INSERT multiple rows of data into one of the tables but am running into issues.<br />
<br />
I firstly tried the following:<br />
 <pre style="margin:20px; line-height:13px">INSERT INTO stock_item_table (stock_item_no, item_desc, item_price)<br />
VALUES(11,'item1',12);<br />
VALUES(12,'item1',22);<br />
VALUES(13,'item1',32);<br />
VALUES(14,'item1',42);</pre>but this didn't work. and I got the following error: ORA-00911: invalid character<br />
<br />
After reviewing the following Oracle thread on DaniWeb <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread212239.html" target="_blank">http://www.daniweb.com/forums/thread212239.html</a> I created this script.<br />
 <pre style="margin:20px; line-height:13px">INSERT INTO stock_item_table (stock_item_no, item_desc, item_price)<br />
SELECT 11 AS stock_item_no, 'item1' AS item_desc, 12 AS item_price FROM dual<br />
UNION SELECT 12 AS stock_item_no, 'item1' AS item_desc, 22 AS item_price FROM dual<br />
UNION SELECT 13 AS stock_item_no, 'item1' AS item_desc, 32 AS item_price FROM dual<br />
UNION SELECT 14 AS stock_item_no, 'item1' AS item_desc, 42 AS item_price FROM dual<br />
UNION SELECT 15 AS stock_item_no, 'item1' AS item_desc, 52 AS item_price FROM dual<br />
UNION SELECT 16 AS stock_item_no, 'item1' AS item_desc, 62 AS item_price FROM dual<br />
UNION SELECT 17 AS stock_item_no, 'item1' AS item_desc, 72 AS item_price FROM dual<br />
UNION SELECT 18 AS stock_item_no, 'item1' AS item_desc, 82 AS item_price FROM dual<br />
UNION SELECT 19 AS stock_item_no, 'item1' AS item_desc, 92 AS item_price FROM dual<br />
UNION SELECT 20 AS stock_item_no, 'item1' AS item_desc, 112 AS item_price FROM dual<br />
UNION SELECT 30 AS stock_item_no, 'item3' AS item_desc, 12 AS item_price FROM dual<br />
UNION SELECT 31 AS stock_item_no, 'item3' AS item_desc, 22 AS item_price FROM dual<br />
UNION SELECT 32 AS stock_item_no, 'item3' AS item_desc, 32 AS item_price FROM dual<br />
UNION SELECT 34 AS stock_item_no, 'item3' AS item_desc, 42 AS item_price FROM dual<br />
UNION SELECT 35 AS stock_item_no, 'item3' AS item_desc, 52 AS item_price FROM dual<br />
UNION SELECT 36 AS stock_item_no, 'item3' AS item_desc, 62 AS item_price FROM dual<br />
UNION SELECT 37 AS stock_item_no, 'item3' AS item_desc, 72 AS item_price FROM dual<br />
UNION SELECT 38 AS stock_item_no, 'item3' AS item_desc, 82 AS item_price FROM dual<br />
UNION SELECT 39 AS stock_item_no, 'item3' AS item_desc, 92 AS item_price FROM dual<br />
UNION SELECT 50 AS stock_item_no, 'item5' AS item_desc, 12 AS item_price FROM dual<br />
UNION SELECT 51 AS stock_item_no, 'item5' AS item_desc, 12 AS item_price FROM dual<br />
UNION SELECT 52 AS stock_item_no, 'item5' AS item_desc, 22 AS item_price FROM dual<br />
UNION SELECT 53 AS stock_item_no, 'item5' AS item_desc, 32 AS item_price FROM dual<br />
UNION SELECT 54 AS stock_item_no, 'item5' AS item_desc, 42 AS item_price FROM dual<br />
UNION SELECT 55 AS stock_item_no, 'item5' AS item_desc, 52 AS item_price FROM dual<br />
UNION SELECT 56 AS stock_item_no, 'item5' AS item_desc, 62 AS item_price FROM dual<br />
UNION SELECT 57 AS stock_item_no, 'item5' AS item_desc, 72 AS item_price FROM dual<br />
UNION SELECT 58 AS stock_item_no, 'item5' AS item_desc, 82 AS item_price FROM dual<br />
UNION SELECT 59 AS stock_item_no, 'item5' AS item_desc, 92 AS item_price FROM dual<br />
UNION SELECT 60 AS stock_item_no, 'item7' AS item_desc, 12 AS item_price FROM dual<br />
UNION SELECT 61 AS stock_item_no, 'item7' AS item_desc, 12 AS item_price FROM dual<br />
UNION SELECT 62 AS stock_item_no, 'item7' AS item_desc, 22 AS item_price FROM dual<br />
UNION SELECT 63 AS stock_item_no, 'item7' AS item_desc, 32 AS item_price FROM dual<br />
UNION SELECT 64 AS stock_item_no, 'item7' AS item_desc, 42 AS item_price FROM dual<br />
UNION SELECT 65 AS stock_item_no, 'item7' AS item_desc, 52 AS item_price FROM dual<br />
UNION SELECT 66 AS stock_item_no, 'item7' AS item_desc, 62 AS item_price FROM dual<br />
UNION SELECT 67 AS stock_item_no, 'item7' AS item_desc, 72 AS item_price FROM dual<br />
UNION SELECT 68 AS stock_item_no, 'item7' AS item_desc, 82 AS item_price FROM dual<br />
UNION SELECT 69 AS stock_item_no, 'item7' AS item_desc, 92 AS item_price FROM dual;</pre><br />
I get the following error now: The requested URL /apex/wwv_flow.show was not found on this server<br />
<br />
I am not sure what FROM dual is referencing, but should this be referencing the table I am inserting into?  which in this case is stock_item_table? I do not have a table called dual.  If anyone can help me out and explain what I have done wrong and what I need to change for this script to run I would be very grateful.  Thanks for any ones time and help.<br />
<br />
Kind regards</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>fawkman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240272.html</guid>
		</item>
		<item>
			<title>Decrypt of Password</title>
			<link>http://www.daniweb.com/forums/thread239995.html</link>
			<pubDate>Fri, 20 Nov 2009 11:17:14 GMT</pubDate>
			<description>Dear Users, 
 
I have used SHA1 encryption method to encrypt password and stored in login table as a blob field. 
 
Now, to authenticate the password, i need to decrypt it. I am not able to decrypt. 
 
Please help me to decrypt password</description>
			<content:encoded><![CDATA[<div>Dear Users,<br />
<br />
I have used SHA1 encryption method to encrypt password and stored in login table as a blob field.<br />
<br />
Now, to authenticate the password, i need to decrypt it. I am not able to decrypt.<br />
<br />
Please help me to decrypt password</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Pranesh_Ashrit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239995.html</guid>
		</item>
		<item>
			<title>Inserting into temporary table by dynamic query</title>
			<link>http://www.daniweb.com/forums/thread239985.html</link>
			<pubDate>Fri, 20 Nov 2009 10:40:52 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I have created a temporary @table and while inserting ,i am using dynamic sql.But this is not getting executed and throws an error that  
"EXECUTE cannot be used as a source when inserting into a table variable" 
i am using SQLServer2005. 
Dont know where i am going wrong 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have created a temporary @table and while inserting ,i am using dynamic sql.But this is not getting executed and throws an error that <br />
&quot;EXECUTE cannot be used as a source when inserting into a table variable&quot;<br />
i am using SQLServer2005.<br />
Dont know where i am going wrong<br />
 <pre style="margin:20px; line-height:13px">DECLARE @SqlQuery NVARCHAR(4000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; SELECT @SqlQuery='SELECT TOP '+CAST(@no_of_rows as CHAR)+'tblEmployee.id&nbsp;  ,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tblProject.ID, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; FROM&nbsp; &nbsp; &nbsp; &nbsp;  tblBilling (NOLOCK) '<br />
INSERT @table <br />
EXEC @SqlQuery</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>carobee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239985.html</guid>
		</item>
		<item>
			<title>MySQl Stored Procedure passing Parameters with parameter name and values</title>
			<link>http://www.daniweb.com/forums/thread239983.html</link>
			<pubDate>Fri, 20 Nov 2009 10:31:31 GMT</pubDate>
			<description><![CDATA[IN MySQl Stored Procedure how to pass Parameters with parameter name and values i.e. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code...]]></description>
			<content:encoded><![CDATA[<div>IN MySQl Stored Procedure how to pass Parameters with parameter name and values i.e.<br />
 <pre style="margin:20px; line-height:13px">DELIMITER //<br />
&nbsp; CREATE PROCEDURE GetOffice<br />
(countryName VARCHAR(255), countryId int(11))<br />
&nbsp; &nbsp;  BEGIN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  SELECT city, phone <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FROM offices<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  WHERE country = countryName AND <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; country_id = countryId;<br />
&nbsp; &nbsp;  END //<br />
&nbsp; DELIMITER ;<br />
<br />
<br />
CALL GetOffice(&quot;India&quot;,1);</pre>This works fine but i want it the way --------<br />
CALL GetOffice(countryName= &quot;India&quot;,countryId=1);<br />
<br />
<br />
Is there any way to pass parameters to stored procedure along parameter names in MySql.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>sonikadugar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239983.html</guid>
		</item>
		<item>
			<title>Help in a loop query</title>
			<link>http://www.daniweb.com/forums/thread239930.html</link>
			<pubDate>Fri, 20 Nov 2009 05:50:55 GMT</pubDate>
			<description>I have database with a table called orders. The structure is below 
 
Index,    OrderIndex,    OrderNo 
 111,               1 
 112 ,              1 
 113 ,              1  
 114 ,              2 
 115 ,              3 
 116 ,              3</description>
			<content:encoded><![CDATA[<div>I have database with a table called orders. The structure is below<br />
<br />
Index,    OrderIndex,    OrderNo<br />
 111,               1<br />
 112 ,              1<br />
 113 ,              1 <br />
 114 ,              2<br />
 115 ,              3<br />
 116 ,              3<br />
<br />
I want a query that will loop thorugh the database and make the result<br />
<br />
Index,    OrderIndex,    OrderNo<br />
 111,               1,                1<br />
 112,               1,                2<br />
 113,               1,                3<br />
 114,               2,                1 <br />
 115,               3,                1 <br />
 116,               3,                2<br />
<br />
Im trying to change the OrderNo based on the OrderIndex.<br />
<br />
Is there a way to do this purely using sql? If possible please help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>blessanm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239930.html</guid>
		</item>
		<item>
			<title>SQL query noob...</title>
			<link>http://www.daniweb.com/forums/thread239837.html</link>
			<pubDate>Thu, 19 Nov 2009 20:23:03 GMT</pubDate>
			<description><![CDATA[Hi, I have a question regarding a SQL query. I am a complete noob, so please do not make fun of me. 
 
Here is a schema that I created: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi, I have a question regarding a SQL query. I am a complete noob, so please do not make fun of me.<br />
<br />
Here is a schema that I created:<br />
<br />
 <pre style="margin:20px; line-height:13px">JOURNALS(j_num, j_name, j_subject_area, chief_editor_r_ssn)<br />
ISSUES(j_num, i_num, i_date, i_num_pages)<br />
RESEARCHERS(r_ssn, r_name, r_address, r_phone, r_institution)<br />
ARTICLES(art_num, art_title, art_area_topic, art_abstract, j_num_submitted,date_submitted, j_num_published, i_num_published)<br />
AREA_EDITS(j_num, r_sssn)<br />
WRITES(r_ssn, art_num)<br />
REVIEWS(r_ssn, art_num)<br />
RESEARCH_SPECIALTIES(r_spec_name)<br />
RRS(r_ssn, r_spec_name)</pre><br />
It's pretty simple. My question is regarding the linking of the primary keys. Is it necessary to link the primary keys if I were doing something like: The number of journals for which researcher ‘Albert Einstein’ is the chief editor?<br />
<br />
The SQL query I came up with is:<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT count (*), j.j_num<br />
FROM journals as J, Researchers as R, Area_edits as AE<br />
WHERE J.chief_editor_r_ssn=R.r_ssn<br />
AND R.r_name=&quot;Albert Einstein&quot;<br />
AND R.r_ssn=AE.r_ssn<br />
AND J.j_num=AE.j_num;</pre><br />
Is it necessary to include the last 2 steps, or are the unneeded?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>J3vr0N</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239837.html</guid>
		</item>
		<item>
			<title>please solve this query</title>
			<link>http://www.daniweb.com/forums/thread239787.html</link>
			<pubDate>Thu, 19 Nov 2009 15:39:43 GMT</pubDate>
			<description>create a query that will display total no of employee and no of employee that hired in 1995,96,97 from employee table.. 
 
my employee table have field like 
emp_id name hire_date.</description>
			<content:encoded><![CDATA[<div>create a query that will display total no of employee and no of employee that hired in 1995,96,97 from employee table..<br />
<br />
my employee table have field like<br />
emp_id name hire_date.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>jck6288</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239787.html</guid>
		</item>
		<item>
			<title>Mysql Query results with Hyperlink and Font example</title>
			<link>http://www.daniweb.com/forums/thread239779.html</link>
			<pubDate>Thu, 19 Nov 2009 15:22:40 GMT</pubDate>
			<description>Hey, 
 
This is my first post so go easy :) 
 
I’m in the middle of designing a website users can download files from. I’ve searched the web and found the perfect example of what I’m trying to achieve which is something clear and simple (http://www.getfreefonts.info/free_fonts.a.html) 
 
From the...</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
This is my first post so go easy :)<br />
<br />
I’m in the middle of designing a website users can download files from. I’ve searched the web and found the perfect example of what I’m trying to achieve which is something clear and simple (<a rel="nofollow" class="t" href="http://www.getfreefonts.info/free_fonts.a.html" target="_blank">http://www.getfreefonts.info/free_fonts.a.html</a>)<br />
<br />
From the category’s at the top A-Z how, can I return the results with a hyperlink and example of the font? I’m new to web designing (only done 1 before) but I know I need mysql and PhP.<br />
<br />
Regards<br />
Steve</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>StePu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239779.html</guid>
		</item>
		<item>
			<title>Partitioning</title>
			<link>http://www.daniweb.com/forums/thread239658.html</link>
			<pubDate>Thu, 19 Nov 2009 06:17:08 GMT</pubDate>
			<description><![CDATA[Below is the table and the data related to it .How to do we go ahead and create partitioning for this table .Below table had like 50 million of records. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Below is the table and the data related to it .How to do we go ahead and create partitioning for this table .Below table had like 50 million of records.<br />
 <pre style="margin:20px; line-height:13px">CREATE TABLE l_play ( <br />
Pl_id int(11) not null auto increment <br />
E_Id` int(11) NOT NULL, <br />
F_Id` int(11) DEFAULT NULL, <br />
P_Id` int(11) DEFAULT NULL, <br />
P_T` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, <br />
PRIMARY KEY (`pl_id`), <br />
KEY FK_log_playlog_processor` (`Proc_Id`), <br />
KEY FK_log_playlog_file` (`Fi_Id`), <br />
CONSTRAINT FK_log_playlog` FOREIGN KEY (`Fi_Id`) REFERENCESlog_file` (`Fi_Id`), <br />
CONSTRAINT FK_log_playlog_prc` FOREIGN KEY (`Proc_Id`) REFERENCESlog_processor` (`Proc_Id`), <br />
<br />
) ENGINE=InnoDB DEFAULT CHARSET=latin1</pre>Need to partiotion by date .. we get around each day around 1 lakhs of records .. so need to partition for each week or each month .<br />
sample data :<br />
<br />
<br />
102649, 31, 35,, 16, 2008-05-20 05:49:00.0<br />
102650,1, 35, ,7, 2008-05-20 05:50:00.0<br />
102651,2, 35,, 8, 2008-05-20 05:50:00.0<br />
102652,1, 35,, 7, 2008-05-20 05:52:00.0<br />
102653,5, 35,, 9, 2008-05-20 05:53:00.0<br />
102654,1, 35,, 7, 2008-05-20 05:54:00.0<br />
102655,6, 35,, 10, 2008-05-20 05:55:00.0</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>oyeubugme26</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239658.html</guid>
		</item>
		<item>
			<title>What is the best way to store tags in mysql?</title>
			<link>http://www.daniweb.com/forums/thread239580.html</link>
			<pubDate>Wed, 18 Nov 2009 22:30:01 GMT</pubDate>
			<description>Hi 
What is the best way to store tags in mysql database? 
Please help me with this. 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi<br />
What is the best way to store tags in mysql database?<br />
Please help me with this.<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>virtualmisc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239580.html</guid>
		</item>
		<item>
			<title>count non empty xml nodes</title>
			<link>http://www.daniweb.com/forums/thread239572.html</link>
			<pubDate>Wed, 18 Nov 2009 21:54:11 GMT</pubDate>
			<description><![CDATA[If i have some xml in the form 
<root> 
<a>hello</a> 
<b> 
     <bi>hiya</bi> 
     <bii>hey</bii> 
</b> 
<c/> 
<d>hello again</d> 
</root>]]></description>
			<content:encoded><![CDATA[<div>If i have some xml in the form<br />
 <pre style="margin:20px; line-height:13px">&lt;root&gt;<br />
&lt;a&gt;hello&lt;/a&gt;<br />
&lt;b&gt;<br />
&nbsp; &nbsp;  &lt;bi&gt;hiya&lt;/bi&gt;<br />
&nbsp; &nbsp;  &lt;bii&gt;hey&lt;/bii&gt;<br />
&lt;/b&gt;<br />
&lt;c/&gt;<br />
&lt;d&gt;hello again&lt;/d&gt;<br />
&lt;/root&gt;</pre><br />
how can I <br />
<br />
a) count the nodes? i.e. a, b, bi, bii, c, d so 6<br />
b) count the nodes that are non empty a, bi, bii, d so 4<br />
<br />
?<br />
<br />
i have tried <br />
<br />
xmldata.query('count(/root/*)')    ))<br />
<br />
but that only counts the top level nodes and I have no idea where to start with the non empty nodes<br />
<br />
any help will be very much appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>londonstan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239572.html</guid>
		</item>
		<item>
			<title>Migrate data from Mysql to Mssql</title>
			<link>http://www.daniweb.com/forums/thread239495.html</link>
			<pubDate>Wed, 18 Nov 2009 16:23:46 GMT</pubDate>
			<description>Hi, 
 
I am trying to transfer some data from a Mysql database onto a Microsoft SQL database. I would need your help on how to operate this migration as I am new to MSSQL. I have been looking on Google but there are not a lot of pages on that. Can someone help me? 
 
Thanks.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to transfer some data from a Mysql database onto a Microsoft SQL database. I would need your help on how to operate this migration as I am new to MSSQL. I have been looking on Google but there are not a lot of pages on that. Can someone help me?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>asmikwen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239495.html</guid>
		</item>
		<item>
			<title>2 update for 2 table</title>
			<link>http://www.daniweb.com/forums/thread239244.html</link>
			<pubDate>Tue, 17 Nov 2009 17:43:47 GMT</pubDate>
			<description><![CDATA[*this is post table * 
[IMG]http://www.divran.com/script/upload/images/post.jpg[/IMG]  
 
*this is thread table * 
[IMG]http://www.divran.com/script/upload/images/thread.jpg[/IMG]  
 
lie you see 
 
firstpostid in thread table  =  postid in post table  and threadid's]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold"><span style="color:green">this is post table </span></span><br />
<a href="http://www.divran.com/script/upload/images/post.jpg" target="_blank">http://www.divran.com/script/upload/images/post.jpg</a> <br />
<br />
<span style="font-weight:bold"><span style="color:green">this is thread table </span></span><br />
<a href="http://www.divran.com/script/upload/images/thread.jpg" target="_blank">http://www.divran.com/script/upload/images/thread.jpg</a> <br />
<br />
lie you see<br />
<br />
firstpostid in thread table  =  postid in post table  and threadid's<br />
<br />
i wanna update title column in thread table as title in post table <br />
but how ?<br />
<br />
i create following query for trying but i t does not run <br />
<br />
 <pre style="margin:20px; line-height:13px">UPDATE&nbsp; &nbsp; &nbsp; &nbsp;  thread<br />
INNER&nbsp; &nbsp; &nbsp; &nbsp;  JOIN post ON thread.threadid=post.threadid<br />
SET&nbsp; &nbsp; &nbsp; &nbsp;  thread.title=REPLACE(post.title)<br />
WHERE&nbsp; &nbsp; &nbsp; &nbsp;  post.postid=thread.firstpostid</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>zodehala</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239244.html</guid>
		</item>
		<item>
			<title>altering column order</title>
			<link>http://www.daniweb.com/forums/thread239218.html</link>
			<pubDate>Tue, 17 Nov 2009 15:29:04 GMT</pubDate>
			<description><![CDATA[Hello all, 
Is there an easy way to edit the order of my colums in a table? 
Presently, my colums are: cust_num, name, email, location, bday_day, bday_month, bday_year, state 
 
I would like to list the "location" column after "state".  
 
Can anyone offer a simple suggestion. 
 
Thanks in advance....]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
Is there an easy way to edit the order of my colums in a table?<br />
Presently, my colums are: cust_num, name, email, location, bday_day, bday_month, bday_year, state<br />
<br />
I would like to list the &quot;location&quot; column after &quot;state&quot;. <br />
<br />
Can anyone offer a simple suggestion.<br />
<br />
Thanks in advance.<br />
C-</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>studioceasar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239218.html</guid>
		</item>
		<item>
			<title>Parent and Child nodes from a table (navigation category table)</title>
			<link>http://www.daniweb.com/forums/thread239171.html</link>
			<pubDate>Tue, 17 Nov 2009 10:26:24 GMT</pubDate>
			<description>Hi all, 
 
I have a single table with both parent and child nodes, and each has an order number in it. 
 
I am trying to write a single query to output them in order, its for a navigation list with categories and sub-categories. 
 
I could manage it in code rather than in the SQL query but it would...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have a single table with both parent and child nodes, and each has an order number in it.<br />
<br />
I am trying to write a single query to output them in order, its for a navigation list with categories and sub-categories.<br />
<br />
I could manage it in code rather than in the SQL query but it would involve calling a query from within a query loop - which I want to avoid.<br />
<br />
Table:<br />
<br />
 <pre style="margin:20px; line-height:13px">DBID | Title | ParentID | OrderNum<br />
&nbsp;1&nbsp; &nbsp; &nbsp; aaa&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />
&nbsp;2&nbsp; &nbsp; &nbsp; bbb&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2<br />
&nbsp;3&nbsp; &nbsp; &nbsp; ccc&nbsp; &nbsp; &nbsp;  1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />
&nbsp;4&nbsp; &nbsp; &nbsp; ddd&nbsp; &nbsp; &nbsp;  1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2<br />
&nbsp;5&nbsp; &nbsp; &nbsp; eee&nbsp; &nbsp; &nbsp;  2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</pre><br />
and I want to get a result set like:<br />
 <pre style="margin:20px; line-height:13px">DBID | Title | ParentID | OrderNum<br />
&nbsp;1&nbsp; &nbsp; &nbsp; aaa&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &lt;&lt;&lt; main <br />
&nbsp;3&nbsp; &nbsp; &nbsp; ccc&nbsp; &nbsp; &nbsp;  1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &lt;&lt;&lt; child<br />
&nbsp;4&nbsp; &nbsp; &nbsp; ddd&nbsp; &nbsp; &nbsp;  1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp; &lt;&lt;&lt; 2nd child<br />
&nbsp;2&nbsp; &nbsp; &nbsp; bbb&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &lt;&lt;&lt; main <br />
&nbsp;5&nbsp; &nbsp; &nbsp; eee&nbsp; &nbsp; &nbsp;  2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &lt;&lt;&lt; child</pre><br />
I have been looking at using a recursive SQL select or Common Table Expressions (CTE) but have not been able to figure it out yet.<br />
<br />
Can anyone help point me in the right direction?<br />
<br />
(Using SQL Server 2005 / ASP.Net C#)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>shibbard</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239171.html</guid>
		</item>
		<item>
			<title>Auto_increment</title>
			<link>http://www.daniweb.com/forums/thread239109.html</link>
			<pubDate>Tue, 17 Nov 2009 04:25:30 GMT</pubDate>
			<description><![CDATA[I have a table that holds a users id and a cd number, what I would like is to be able to only increment the cd number based the users id not just incrementing it every time a new cd is created 
 
table 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have a table that holds a users id and a cd number, what I would like is to be able to only increment the cd number based the users id not just incrementing it every time a new cd is created<br />
<br />
table<br />
 <pre style="margin:20px; line-height:13px">CREATE TABLE IF NOT EXISTS `cdcreation` (<br />
&nbsp; `user_Id` int(3) NOT NULL,<br />
&nbsp; `cd_Number` int(2) NOT NULL,<br />
&nbsp; PRIMARY KEY (`user_Id`,`cd_Number`)<br />
) ENGINE=MyISAM DEFAULT CHARSET=latin1;</pre><br />
user id's start at 100, so if an id is present but no cd user 100 will get cd 1, if user 101 has no cd they get cd 1 as well, when user 100 makes next cd they get cd 2 and when user 102 gets 1st cd they get cd 1, so it increments based on user number and cd number.<br />
<br />
Both cd number and user id will form the primary key, I would also like to be able to max the number of cd's able to be created to 5(this is not critical but a preference) I use AUTO_INCREMENT in other parts of my db but not sure how to implement it this way based on a user id.<br />
<br />
any help much appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>mr_scooby</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239109.html</guid>
		</item>
		<item>
			<title>Setting up veiws</title>
			<link>http://www.daniweb.com/forums/thread239073.html</link>
			<pubDate>Tue, 17 Nov 2009 00:39:20 GMT</pubDate>
			<description>I am a Student working on  a project useing mysql. I am trying to set up a view and keep getting an error that there is duplicate columns. Is there anyway other then specifiying each table.culumn to stop the view from trying to show both of the columns.  If it helps the two columns are the primary...</description>
			<content:encoded><![CDATA[<div>I am a Student working on  a project useing mysql. I am trying to set up a view and keep getting an error that there is duplicate columns. Is there anyway other then specifiying each table.culumn to stop the view from trying to show both of the columns.  If it helps the two columns are the primary key of one table and the foreign key of another.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>ireverent</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239073.html</guid>
		</item>
		<item>
			<title>Update 1 table without interfering the other</title>
			<link>http://www.daniweb.com/forums/thread238994.html</link>
			<pubDate>Mon, 16 Nov 2009 18:16:40 GMT</pubDate>
			<description>Hi Daniweb guys, 
 
This is my problem: 
My .mdb (microsoft access 2003 file) is containing pricing table and client table. 
(I used visual basic 6 to create an application) 
 
The user can install my application in their own pc and record their client into a provided client table. 
 
But, the...</description>
			<content:encoded><![CDATA[<div>Hi Daniweb guys,<br />
<br />
This is my problem:<br />
My .mdb (microsoft access 2003 file) is containing pricing table and client table.<br />
(I used visual basic 6 to create an application)<br />
<br />
The user can install my application in their own pc and record their client into a provided client table.<br />
<br />
But, the company might change the pricing table every now and then. So the company needs to send (via email) the &quot;update&quot; for the pricing table every now and then.<br />
<br />
So I want to update the pricing table without interfering the client table, will it be possible?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum128.html">MS Access and FileMaker Pro</category>
			<dc:creator>neosonic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238994.html</guid>
		</item>
		<item>
			<title>I really need help linking tables MYSQL</title>
			<link>http://www.daniweb.com/forums/thread238991.html</link>
			<pubDate>Mon, 16 Nov 2009 17:57:02 GMT</pubDate>
			<description><![CDATA[Hello everyone. 
 
Basically, I am making a small site for my friends where we can create users and edit profiles and comment eachother. 
Like a scaled down social network site. The problem is, I really can't get my head around the whole idea of relational databases. 
 
What I have is a table for...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone.<br />
<br />
Basically, I am making a small site for my friends where we can create users and edit profiles and comment eachother.<br />
Like a scaled down social network site. The problem is, I really can't get my head around the whole idea of relational databases.<br />
<br />
What I have is a table for the users - which stores their username, password etc.<br />
I then want this to link into my profile table, which stores their pictures and page-style information etc.<br />
This could then link into other tables for things like comments or statuses etc.<br />
<br />
I am using MySQL and I thought I could link e.g. the user table to the profile table by having the same id. For example, the user table has a user_id field (primary key) and a profile_id which links into the profile_id (primary key) on the profile table.<br />
But I just don't get how to implement this.<br />
It's really hard to explain. I want it, so that when a user registers - not only does the user_id auto increment, but so does the profile_id in the profiles table. And the pictures information and other information from the profile table can be used by the user table to define who the users are etc.<br />
<br />
Could anyone please lend me a helping hand with this. I will try and explain more clearly if you would like.<br />
<br />
Thank you a lot.<br />
<br />
Josh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>josh06</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238991.html</guid>
		</item>
		<item>
			<title>Limit values of an element</title>
			<link>http://www.daniweb.com/forums/thread238985.html</link>
			<pubDate>Mon, 16 Nov 2009 17:40:56 GMT</pubDate>
			<description><![CDATA[Stupid question, really... 
 
Say, if I have a Department tuple with "Faculty" field- how can I declare it on the design stage so it only can take the values of "Science", "Arts" or "Psychology"? 
 
Department { 
<letter_ID : CHAR( 2)>, 
<english_name: VARCHAR2 (50)>, 
<enw_cymraeg: VARCHAR2 (50)>,...]]></description>
			<content:encoded><![CDATA[<div>Stupid question, really...<br />
<br />
Say, if I have a Department tuple with &quot;Faculty&quot; field- how can I declare it on the design stage so it only can take the values of &quot;Science&quot;, &quot;Arts&quot; or &quot;Psychology&quot;?<br />
<br />
Department {<br />
&lt;letter_ID : CHAR( 2)&gt;,<br />
&lt;english_name: VARCHAR2 (50)&gt;,<br />
&lt;enw_cymraeg: VARCHAR2 (50)&gt;,<br />
&lt;faculty: &quot;science&quot; or &quot;arts&quot; or &quot;psychology<br />
}<br />
<br />
I am sure the way I declared it isn't correct. Also, can someone give me an example of the SQL code to do similar kind of thing?<br />
<br />
I vaguely remember that in MS Acess you can create a drop down menu, so I guess it is posible, but I never knew what goes on under the GUI.<br />
<br />
Many thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>Lioshenka</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238985.html</guid>
		</item>
		<item>
			<title>count query</title>
			<link>http://www.daniweb.com/forums/thread238944.html</link>
			<pubDate>Mon, 16 Nov 2009 14:26:46 GMT</pubDate>
			<description>Hi 
 
Been trying to write a query... I have a table of documents, and a table which registers everytime someone downloads a copy of the document.  I want to create a report, in one query, which pulls out each document and counts the views... I thought it woudnt be too tough but have come...</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
Been trying to write a query... I have a table of documents, and a table which registers everytime someone downloads a copy of the document.  I want to create a report, in one query, which pulls out each document and counts the views... I thought it woudnt be too tough but have come unstuck...<br />
<br />
 <pre style="margin:20px; line-height:13px">$sql = &quot;SELECT d.title, d.mktime, COUNT(r.id) FROM documents AS d LEFT JOIN clickreg AS r ON r.docid = d.id&quot;</pre><br />
help please!?!<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>lifeworks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238944.html</guid>
		</item>
		<item>
			<title>database schema for event calendar</title>
			<link>http://www.daniweb.com/forums/thread238925.html</link>
			<pubDate>Mon, 16 Nov 2009 13:32:06 GMT</pubDate>
			<description>Hi all, 
 
1) Users can belong to a specific group wherein when the group moderator publishes an event, its visible to all the members of group. 
 
2) A normal user can publish event in his own calendar, to make that event visible to all users in group, the group moderator needs to approve it. 
...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
1) Users can belong to a specific group wherein when the group moderator publishes an event, its visible to all the members of group.<br />
<br />
2) A normal user can publish event in his own calendar, to make that event visible to all users in group, the group moderator needs to approve it.<br />
<br />
3) While adding an event, a user can select from a list of available resources which gets booked for event's duration and no one else can publish an event using those resources at the same time.<br />
<br />
4) Also when a moderator adds a member to his group, the member needs to approve whether he agrees to be in that specific group. Only after he agrees, he can view that group's events.<br />
<br />
5) A user can belong to more than one group.<br />
<br />
if anyone has any suggestions... u r most welcome !!!<br />
m a php developer and have absolutely no experience in DB design..<br />
help me out guys..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>venkat0904</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238925.html</guid>
		</item>
		<item>
			<title>My Insert statement needs a trim</title>
			<link>http://www.daniweb.com/forums/thread238879.html</link>
			<pubDate>Mon, 16 Nov 2009 09:57:51 GMT</pubDate>
			<description>Hi, 
 
I have an insert statement that i need to refine...basically I need to trim the first couple of letters of whats trapped inthe field. 
so e.g.  
 
Z:\aaa\1.jpg  
 
needs to become  
 
aaa\1.jpg</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have an insert statement that i need to refine...basically I need to trim the first couple of letters of whats trapped inthe field.<br />
so e.g. <br />
<br />
Z:\aaa\1.jpg <br />
<br />
needs to become <br />
<br />
aaa\1.jpg<br />
<br />
Im tried this but its not working<br />
<br />
 <pre style="margin:20px; line-height:13px">sImagelink = mid(request.form(&quot;Imagelink&quot;),4,len(request.form(&quot;Imagelink&quot;)))</pre><br />
any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum127.html">MS SQL</category>
			<dc:creator>kegathor</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238879.html</guid>
		</item>
		<item>
			<title>Netbeans and oracle</title>
			<link>http://www.daniweb.com/forums/thread238845.html</link>
			<pubDate>Mon, 16 Nov 2009 06:19:53 GMT</pubDate>
			<description>The name of this question is oracle project 
Hello and Thank you in advance for any assistance. 
 
 *  
System info:  
* 
I presently use Netbeans6.7,MySQL,glassfish to work with learning JSF  and java apps etc. 
 
 *  
The Purpose of this post is:</description>
			<content:encoded><![CDATA[<div>The name of this question is oracle project<br />
Hello and Thank you in advance for any assistance.<br />
<br />
 <span style="font-weight:bold"> <br />
System info: <br />
</span><br />
I presently use Netbeans6.7,MySQL,glassfish to work with learning JSF  and java apps etc.<br />
<br />
 <span style="font-weight:bold"> <br />
The Purpose of this post is: <br />
</span><br />
I recently was presented with a tutorial to learn JSF and databases.  It uses Oracle stuff.<br />
(Ex)<br />
Creating the TopLink Project The following instructions describe how to create a TopLink project using the Mapping Workbench. <br />
Step 1: Launch OracleAS TopLink Mapping Workbench. Then, select File and New Project... from the main menu. In the Create New Project dialog, provide the name of an existing database (e.g. orcl) and click<br />
 <span style="font-weight:bold"><br />
The functionality of this code is:<br />
</span><br />
 <span style="font-weight:bold"><br />
My question is: <br />
</span> <br />
Is there any one familiar with this “OraclAS TopLink” program ?  Can I just add it to what Im using now (listed above) ?  It seems as if this program could use my MySQL databases and my programs written with Netbeans using glassfish and it will allow me to work with oracle toplink  to make the database work with the class files. <br />
<br />
Is this even close?<br />
<span style="font-weight:bold"><br />
The errors related to this code are:<br />
</span><br />
 <span style="font-weight:bold"><br />
Code description: <br />
</span><br />
 <pre style="margin:20px; line-height:13px"></pre>Thanks again.<br />
-ceyesumma <br />
 <span style="font-weight:bold"><br />
Note:<br />
</span> ………………………………………………………………………………………………<br />
 <span style="font-weight:bold"><br />
Code description <br />
</span><br />
 <pre style="margin:20px; line-height:13px"></pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238845.html</guid>
		</item>
		<item>
			<title>how to create a tablespace that consist a fix number of extents?</title>
			<link>http://www.daniweb.com/forums/thread238676.html</link>
			<pubDate>Sun, 15 Nov 2009 16:46:11 GMT</pubDate>
			<description><![CDATA[i wanted to create a locally managed tablespace with uniform allocation of extents. And also want my tablespace to consist only let say 5 extents.  It will use only one data file. 
 
here is what i know: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px">...]]></description>
			<content:encoded><![CDATA[<div>i wanted to create a locally managed tablespace with uniform allocation of extents. And also want my tablespace to consist only let say 5 extents.  It will use only one data file.<br />
<br />
here is what i know:<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
CREATE TABLESPACE TABLE1<br />
EXTENT MANAGEMENT LOCAL<br />
UNIFORM SIZE 64K<br />
DATAFILE 'C:\ORACLE\ORADATA\MYDB\TABLE1.DBF'<br />
SIZE 5M<br />
AUTOEXTEND AUTO;</pre><br />
I tried maxextents but error. I seriously have no idea whether is it possible to have a fix number of extents?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>flaskvacuum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238676.html</guid>
		</item>
		<item>
			<title>Getting Error While Trying to Use Count Function in Subquery in FROM Clause</title>
			<link>http://www.daniweb.com/forums/thread238531.html</link>
			<pubDate>Sat, 14 Nov 2009 19:36:39 GMT</pubDate>
			<description><![CDATA[The below mysql query yeilds the following result: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>The below mysql query yeilds the following result:<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT COUNT(ProgramType) AS Counter<br />
FROm credential_state<br />
GROUP BY ProgramType;</pre><br />
Results:<br />
Counter<br />
4<br />
7<br />
7<br />
<br />
I would like return the max from the above (7).  The following query is giving my an error that says: Every derived table must have its own alias. Not sure what I'm doing wrong.<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT MAX(Counter) AS MAX FROM(SELECT COUNT(ProgramType) AS Counter<br />
FROm credential_state<br />
GROUP BY ProgramType);</pre><br />
Please HELP!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Chad Gary</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238531.html</guid>
		</item>
	</channel>
</rss>
