<?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 - Database Design</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our Database Design forum is the place for Q&A-style discussions related to general database design and schema. Questions pertaining to non-database-specific SQL can also be asked here. Otherwise, use one of the database-specific forums.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 21 Nov 2009 07:11:50 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Database Design</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<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>ER Diagram Help</title>
			<link>http://www.daniweb.com/forums/thread238119.html</link>
			<pubDate>Thu, 12 Nov 2009 20:53:47 GMT</pubDate>
			<description><![CDATA[Hello I'm designing a database for my Computing Science department and I am having some trouble with the ER Diagram. Any help would be great appreciated. 
 
What I have so far is: 
 
Each course has a ID Code, title, is taken by one or more students and is taught by one or more lecturers. 
 
Each...]]></description>
			<content:encoded><![CDATA[<div>Hello I'm designing a database for my Computing Science department and I am having some trouble with the ER Diagram. Any help would be great appreciated.<br />
<br />
What I have so far is:<br />
<br />
Each course has a ID Code, title, is taken by one or more students and is taught by one or more lecturers.<br />
<br />
Each course has none or more tutorial groups.<br />
<br />
A tutorial group has one or more students and only one tutor.<br />
<br />
Tutors are members of staff with a status of full-time/part-time.<br />
<br />
Each student has a unique matriculation number, a name and email address.<br />
<br />
Each student has an assessment for each course they take consisting of an exam mark in the range 0-100 and a practical mark in range 0-20.<br />
<br />
Lecturers have a photocopy budget and all lecturers are a member of staff with a unique staff number, a name and a status(e.g Research assistant).<br />
<br />
All staff members have one manager who is also a member of staff.<br />
<br />
-----------<br />
<br />
COURSE<br />
ID Code<br />
Title<br />
<br />
STUDENT<br />
Matriculation Number<br />
Assessment<br />
Name<br />
Email<br />
<br />
LECTURER<br />
Staff Number<br />
Photocopy Budget<br />
Name<br />
Status<br />
<br />
STAFF<br />
Manager<br />
<br />
TUTOR<br />
Status<br />
<br />
<br />
<br />
I know I have missed things out/put entities in the wrong place therefore any help would be great.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Garee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238119.html</guid>
		</item>
		<item>
			<title>Schema to ER</title>
			<link>http://www.daniweb.com/forums/thread237685.html</link>
			<pubDate>Wed, 11 Nov 2009 07:36:28 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I wanted to ask if I have the folling relations in my db: 
 
A(_nb_, ziel, total) 
B(_nb_, _platz_, uid?) 
C(_uid_, name, stammkunde?) 
 
where B.nb -> A.nb, B.uid -> C.uid]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I wanted to ask if I have the folling relations in my db:<br />
<br />
A(<span style="text-decoration:underline">nb</span>, ziel, total)<br />
B(<span style="text-decoration:underline">nb</span>, <span style="text-decoration:underline">platz</span>, uid?)<br />
C(<span style="text-decoration:underline">uid</span>, name, stammkunde?)<br />
<br />
where B.nb -&gt; A.nb, B.uid -&gt; C.uid<br />
<br />
Now if I translate that into a ER model, would it be (1) or (2):<br />
<br />
where in 2, A and B are related through a &quot;subclass&quot; hierarchy.<br />
<br />
Thanks in advance.</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12524&amp;d=1257924974" target="_blank">er.jpg</a> (18.9 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>sanv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237685.html</guid>
		</item>
		<item>
			<title>New Web database</title>
			<link>http://www.daniweb.com/forums/thread237534.html</link>
			<pubDate>Tue, 10 Nov 2009 18:41:23 GMT</pubDate>
			<description>I have been a member for some time just watching in the background. I work in security but am trying to change my career to computers. I finally got a laptop to explore more.  
 
I decided to jump in and tell my boss his web site sucks and needs a new one. So now I have to build it. I am using...</description>
			<content:encoded><![CDATA[<div>I have been a member for some time just watching in the background. I work in security but am trying to change my career to computers. I finally got a laptop to explore more. <br />
<br />
I decided to jump in and tell my boss his web site sucks and needs a new one. So now I have to build it. I am using Share Point and most of it is cut and paste. <br />
<br />
Now it is a small company so I only had to set up about 7 emails and created about 6 pages on the Share Point site including 2 calendars.<br />
<br />
I connected the calendars using office outlook so now everyone can see updates on the calendar if you have access to that page.<br />
<br />
I pointed the domain to the Share Point only to find you have to log in to see anything. So that didn't work because now you can't google it.<br />
<br />
I then added a web hosting portion thus dumping all my emails. I set them up again and they are working fine. Now I have just a basic template as the web site with a log in portal pointer to the Share Point.<br />
<br />
I want to put my data base of employee files on line because their is room now for a server! I have a mac and love the look and feel of Bento but I don't think they have a server app. I found it is also compatible with File Maker Pro which does have a server app. <br />
<br />
I am not looking for code or for someone to do this for me. I am looking for guidance. I was doing pretty good so far but now I am dealing with other peoples sensitive information. My data base is nice and includes photos of all the guards, address lists, guard card and social security numbers, drivers license numbers, birthdays. I know that Share Point is somewhat secure and I can restrict access to these sensitive items however I am still thinking about encrypting the database or access somehow.<br />
<br />
Any suggestions on how I should set up and encrypted data base on Share Point. Or maybe I should use a key to open the data base.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>jester42002</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237534.html</guid>
		</item>
		<item>
			<title>database design for webstore with over 2000 products</title>
			<link>http://www.daniweb.com/forums/thread236954.html</link>
			<pubDate>Sun, 08 Nov 2009 09:43:39 GMT</pubDate>
			<description>what do i need im a newb just wondering. have subscibed will be otofied of any posts.</description>
			<content:encoded><![CDATA[<div>what do i need im a newb just wondering. have subscibed will be otofied of any posts.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>SKANK!!!!!</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236954.html</guid>
		</item>
		<item>
			<title>Application of Database Recovery System</title>
			<link>http://www.daniweb.com/forums/thread235667.html</link>
			<pubDate>Tue, 03 Nov 2009 13:43:46 GMT</pubDate>
			<description><![CDATA[I've got an assignment about database recovery system. I need to find an organization/enterprise and figure out its recovery system. I ask for help from someone who ever made or knew database recovery system applied by an organization/enterprise. Please share me some details. 
 
Thank you. 
 
Best...]]></description>
			<content:encoded><![CDATA[<div>I've got an assignment about database recovery system. I need to find an organization/enterprise and figure out its recovery system. I ask for help from someone who ever made or knew database recovery system applied by an organization/enterprise. Please share me some details.<br />
<br />
Thank you.<br />
<br />
Best regards,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Arcaiz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235667.html</guid>
		</item>
		<item>
			<title>ERD help!</title>
			<link>http://www.daniweb.com/forums/thread234639.html</link>
			<pubDate>Fri, 30 Oct 2009 09:31:42 GMT</pubDate>
			<description><![CDATA[I have to make an ERD diagram using this scenario case and I'm not sure if I have all the required tables/fields in my ERD. Is my entities normalized up to 3NF? Are the relationships correct? 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have to make an ERD diagram using this scenario case and I'm not sure if I have all the required tables/fields in my ERD. Is my entities normalized up to 3NF? Are the relationships correct?<br />
 <pre style="margin:20px; line-height:13px"><br />
Background<br />
<br />
The Brisbane Driving School was established in Brisbane in 1992. Since then, the School has grown steadily and now has several offices in most of the main suburbs of Brisbane. However, the School is now so large that more and more administrative staff members are being employed to cope with the ever-increasing amount of paperwork. Furthermore, the communication and sharing of information between offices is poor. The Director of the School, Dave Darcy, feels that too many mistakes are being made and that the success of the School will be short-lived if he does not do something to remedy the situation. He knows that a database could help in part to solve the problem and has approached you to help in creating a database system to support the run­ning of the Brisbane Driving School. The Director has provided the following brief description of how the Brisbane Driving School operates.<br />
<br />
The company has now employed over 120 staff. Around 100 of them are driving instructors.&nbsp; Over the years BDS has accumulated over 4000 customers. Around 100,000 lessons have been delivered and around 5000 driving tests arranged.<br />
<br />
How the company operates<br />
<br />
Each office has a Manager (who tends to also be a Senior Instructor), several Senior Instructors, Instructors, and administrative staff. All instructors should possess a valid Queensland Instructor licence. The Manager is responsible for the day-to-day running of the office. Clients must first register at an office and this requires that they complete an application form, which records their personal details. Before the first lesson, a client is requested to attend an interview with an Instructor to assess the needs of the client and to ensure that the client holds a valid provisional driving license. A client is free to ask for a particular Instructor or to request that an Instructor be changed at any stage throughout the process of learning to drive. After the interview, a driving course is agreed and the first lesson is booked. A client may request individual lessons or book a block of lessons for a reduced fee. An individual lesson is for one hour, which begins and ends at the office. A lesson is with a particular Instructor in a particular car at a given time. Lessons can start as early as 8am and as late as 8pm. After each lesson, the Instructor records the progress made by the client and notes the mileage used during the lesson. The School has a pool of cars, which are adapted for the purposes of teaching. Each Instructor is allocated to a particular car. As well as teaching, the Instructors are free to use the cars for personal use. The cars are inspected at regular intervals for faults. Once ready, a client applies for a driving test date. The school will arrange to make the booking. To obtain a driving license the client must pass the road test. It is the responsibility of the Instructor to ensure that the client is best prepared for the test. The Instructor is not responsible for testing the client and is not in the car during the test but should be available to drop off and pick up the client before and after the test at the Driving Test Centre. If a client fails to pass, the Instructor must record the reasons for the failure.<br />
<br />
In this case study you have to design a database that incorporates all the above information and records, and design a user-friendly user interface for data entry staff and driving instructors to update information. Driving instructors are allowed to access and update data for those lessons and driving tests under his/her own name. They are allowed to see their learners’ details but not allow to change make any changes.&nbsp; The data entry staff and the branch manager can see all data and have all rights.</pre><br />
Here's  a screenshot of the ERD diagram <a rel="nofollow" class="t" href="http://www.lovelyanime.com/erd.gif" target="_blank">http://www.lovelyanime.com/erd.gif</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>MuffinKun</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234639.html</guid>
		</item>
		<item>
			<title>My homework</title>
			<link>http://www.daniweb.com/forums/thread234465.html</link>
			<pubDate>Thu, 29 Oct 2009 14:54:02 GMT</pubDate>
			<description>i am trying to design a hotel maintenance database that keep the maintenance of the hotel.,can someone think of the entities i should use for that?need it as soon as possible.....thanks</description>
			<content:encoded><![CDATA[<div>i am trying to design a hotel maintenance database that keep the maintenance of the hotel.,can someone think of the entities i should use for that?need it as soon as possible.....thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>didie_rock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234465.html</guid>
		</item>
		<item>
			<title><![CDATA[Q&A]]></title>
			<link>http://www.daniweb.com/forums/thread234241.html</link>
			<pubDate>Thu, 29 Oct 2009 00:43:49 GMT</pubDate>
			<description><![CDATA[As a volunteer for a non-profit organization, I've been asked to delve into a database which would allow us to transfer data from our old Q&A  program (the floppies are really floppies) to one that will be compatible with OS post Win XP. Apparently Q & A will not operate on Vista or Win 7. Since...]]></description>
			<content:encoded><![CDATA[<div>As a volunteer for a non-profit organization, I've been asked to delve into a database which would allow us to transfer data from our old Q&amp;A  program (the floppies are really floppies) to one that will be compatible with OS post Win XP. Apparently Q &amp; A will not operate on Vista or Win 7. Since Q&amp;A not only holds our membership &amp; volunteer lists and contact information, but also all the data for 5 different fundraising events (it includes such things as vendors, invoices issued to vendors, point of sale and also calculates our percentage of sales, applicable taxes and exemptions, etc.) it would be prudent to do something before it's non-functional.<br />
We've looked at some of the programs available for handling non-profit orgs but find that they are far too complex for our needs as well as too costly for our limited budget (we are a completely self-supporting community centre in a rural area).<br />
Since volunteers would be handling all this info, it needs to be easy to learn and use.<br />
Frankly, I haven't worked with databases since the advent of dBase and have forgotten everything I ever knew.<br />
Anyone have any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>romi65</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234241.html</guid>
		</item>
		<item>
			<title>project help:LAN search engines</title>
			<link>http://www.daniweb.com/forums/thread233292.html</link>
			<pubDate>Mon, 26 Oct 2009 02:17:42 GMT</pubDate>
			<description>Hello,I am the third year student,I have taken the mini project of LAN search engine.with JAVA as front end and oracle as a backend. 
but I am not getting exactly how the LAN search Engines work and how to get the database for the local LAN systems. 
 
Plz anyone help me, to get the exact ideas.</description>
			<content:encoded><![CDATA[<div>Hello,I am the third year student,I have taken the mini project of LAN search engine.with JAVA as front end and oracle as a backend.<br />
but I am not getting exactly how the LAN search Engines work and how to get the database for the local LAN systems.<br />
<br />
Plz anyone help me, to get the exact ideas.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Hritika</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233292.html</guid>
		</item>
		<item>
			<title>Quote system (Having issue with concept of having products and services)</title>
			<link>http://www.daniweb.com/forums/thread232088.html</link>
			<pubDate>Wed, 21 Oct 2009 21:36:38 GMT</pubDate>
			<description><![CDATA[I'm mapping out an entity relationship diagram to try learn more about database design. I currently have approximately 17 tables that map out a quotation management system that quotes customers prices for products and/or services. I've been working on it for a number of days now but I am unable to...]]></description>
			<content:encoded><![CDATA[<div>I'm mapping out an entity relationship diagram to try learn more about database design. I currently have approximately 17 tables that map out a quotation management system that quotes customers prices for products and/or services. I've been working on it for a number of days now but I am unable to find resources/help relating to the following<br />
<br />
The entities/tables within the scenario I'm having trouble with are as follows:<br />
<ul><li>Customer</li>
<li>Quote</li>
<li>QuoteItemListing</li>
<li>ProductItems</li>
<li>ServiceItems</li>
<li>Products</li>
<li>Services</li>
</ul><br />
<span style="font-weight:bold">Relationships</span><br />
Customer (requests) Quote<br />
Quote (has) QuoteItemListing<br />
QuoteItemListing (may have) ProductItems<br />
QuoteItemListing (may have) ServiceItems<br />
ProductItems (are) Products<br />
ServiceItems (are) Services<br />
<br />
Essentially, I wish to be able to reference the IDs of the Products and Services a customer wishes to get a quote on in one table (QuoteItemListing). Could anyone please point me in the right direction? Thanks a lot.<br />
<br />
My tables at present:<br />
<br />
<span style="font-weight:bold">Customer</span><br />
ID<br />
name<br />
address<br />
phone<br />
<br />
<span style="font-weight:bold">Quote</span><br />
ID <br />
customerFK<br />
<br />
<span style="font-weight:bold">QuoteItemListing</span><br />
ID<br />
quoteFK<br />
<br />
<span style="font-weight:bold">ProductItems</span><br />
ID<br />
productFK<br />
quantityRequired<br />
quoteOrderFK<br />
<br />
<span style="font-weight:bold">ServiceItems</span><br />
ID<br />
serviceFK<br />
quoteOrderFK<br />
<br />
<span style="font-weight:bold">Product</span><br />
ID<br />
name<br />
price<br />
<br />
<span style="font-weight:bold">Service</span><br />
ID<br />
name<br />
hourlyRate<br />
hoursRequired</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>daveomcgee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232088.html</guid>
		</item>
		<item>
			<title>Database HELP....Logical and Conceptual Design</title>
			<link>http://www.daniweb.com/forums/thread231668.html</link>
			<pubDate>Tue, 20 Oct 2009 14:00:53 GMT</pubDate>
			<description><![CDATA[Hi, could someone please help me, i'm in great need of some advice. I have a sorta simple scenario from which i gotta build a database from, can someone please shed some light on the matter, no matter how small your input is. thanks 
 
The database must allow for clients to: 
- make holiday...]]></description>
			<content:encoded><![CDATA[<div>Hi, could someone please help me, i'm in great need of some advice. I have a sorta simple scenario from which i gotta build a database from, can someone please shed some light on the matter, no matter how small your input is. thanks<br />
<br />
The database must allow for clients to:<br />
- make holiday bookings, each booking may be for a number of tents, and can be<br />
complex; clients organizing family holidays may want different numbers of tents on<br />
different days as family groups come and go;<br />
- reserve (and be billed for) activities, e.g. the hire of canoes; data would include the date<br />
the canoe trip took place and the number of canoes used. Generally activities are<br />
arranged once the holidaymaker is on-site.<br />
<br />
needs to record the following data:<br />
About the client:<br />
• Name.<br />
• Address.<br />
• Telephone,<br />
• Credit card details.<br />
About the site:<br />
• For each tent its name and capacity.<br />
• For the restaurant (or other facilities) if present, its name and capacity.<br />
• For equipment, the item type (e.g. canoe or high chair) and how many of the item are<br />
held.<br />
About bookings:<br />
• It is necessary to record that a booking is made.<br />
• The cost of the booking at the time the booking is made.<br />
About billing:<br />
• The cost of items (e.g. a 2-person tent) throughout the year must be recorded.<br />
Generally this will be divided into high, mid and low season rates.<br />
• As time goes by these prices will be updated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>mikhail96</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231668.html</guid>
		</item>
		<item>
			<title>mysql to sqlite</title>
			<link>http://www.daniweb.com/forums/thread231241.html</link>
			<pubDate>Sun, 18 Oct 2009 20:12:51 GMT</pubDate>
			<description><![CDATA[Could anyone lend some help? 
 
Trying to figure out how to do this in SQLite3 
 
(this is mySQL) 
 
  <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>Could anyone lend some help?<br />
<br />
Trying to figure out how to do this in SQLite3<br />
<br />
(this is mySQL)<br />
<br />
 <pre style="margin:20px; line-height:13px">CREATE TABLE car_contacts (<br />
&nbsp; id INTEGER NOT NULL AUTO_INCREMENT,<br />
&nbsp; carriers_id CHAR NOT NULL,<br />
&nbsp; name CHAR NULL,<br />
&nbsp; phone CHAR NULL,<br />
&nbsp; phone_ext INTEGER NULL,<br />
&nbsp; fax CHAR NULL,<br />
&nbsp; email CHAR NULL,<br />
&nbsp; PRIMARY KEY(id, carriers_id),<br />
&nbsp; INDEX car_contacts_FKIndex1(carriers_id),<br />
&nbsp; FOREIGN KEY(carriers_id)<br />
&nbsp; &nbsp; REFERENCES carriers(id)<br />
&nbsp; &nbsp; &nbsp; ON DELETE NO ACTION<br />
&nbsp; &nbsp; &nbsp; ON UPDATE NO ACTION<br />
);</pre>any help would be greatly apreciated!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>lukerobi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231241.html</guid>
		</item>
		<item>
			<title><![CDATA["Claim a slot" database design]]></title>
			<link>http://www.daniweb.com/forums/thread231224.html</link>
			<pubDate>Sun, 18 Oct 2009 18:29:02 GMT</pubDate>
			<description><![CDATA[I'm developing a web page for a friend that allows participants of a sports event to "claim" a slot in a 24 hour tennis marathon.  The marathon has room for 24 x 4 participants. 
 
My idea was to have a table with the columns "hour" [0-23], "time" and "name", and pre-fill that table with 4 rows for...]]></description>
			<content:encoded><![CDATA[<div>I'm developing a web page for a friend that allows participants of a sports event to &quot;claim&quot; a slot in a 24 hour tennis marathon.  The marathon has room for 24 x 4 participants.<br />
<br />
My idea was to have a table with the columns &quot;hour&quot; [0-23], &quot;time&quot; and &quot;name&quot;, and pre-fill that table with 4 rows for each hour that have empty time and names columns.<br />
<br />
Then, when someone fills in the form stating his name and the hour he wants to play, I'd update the table using something like<br />
<br />
 <pre style="margin:20px; line-height:13px">UPDATE slots SET time = NOW(), name = &quot;John Doe&quot;<br />
WHERE hour=14 AND name=&quot;&quot;<br />
BUT AT MOST 1 ROW</pre><br />
and then I'd check PHP's mysql_affected_rows() to see if the slot was claimed successfully. Because if 5 people are  trying to enroll for the same hour simultaneously, one of the attempts will have to fail.<br />
<br />
I can't find a way to do this. So, my design is probably incorrect? Any suggestions how to tackle this? Thanks<br />
<br />
Joris</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>jorisb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231224.html</guid>
		</item>
		<item>
			<title><![CDATA[real client's project..please help optimizing design!!]]></title>
			<link>http://www.daniweb.com/forums/thread230917.html</link>
			<pubDate>Sat, 17 Oct 2009 11:56:43 GMT</pubDate>
			<description><![CDATA[Right, I poster earlier with a practice table I was working on. I appreciated the reply and have been working on that.. but yesterday I got a real client's project. 
 
I have been given the task of optimizing the database design.  
The database keeps track of the transactions the company makes. A...]]></description>
			<content:encoded><![CDATA[<div>Right, I poster earlier with a practice table I was working on. I appreciated the reply and have been working on that.. but yesterday I got a real client's project.<br />
<br />
I have been given the task of optimizing the database design. <br />
The database keeps track of the transactions the company makes. A transaction is made and records are stored in several different tables.<br />
<br />
<br />
These are the tables:<br />
<br />
Ledger<br />
Group <br />
User <br />
Opening Balance<br />
Transaction<br />
Transaction Type<br />
<br />
<br />
<br />
 The client would like <br />
<br />
1) the data to be stored in ONE location and not 2 different places<br />
<br />
2) to save disk space<br />
<br />
3) prevent duplicate entries being <br />
<br />
<br />
Any ideaS? I wont post the current design of the database unless necessary as I would like to try and do it all by myself but some pointers would be appreciated.<br />
<br />
Initially I was thinking of denormalization. Eradicating the multiple tables and placing all data in one table. But this might not be the best strategy. How would you do it? What practices would you use?<br />
<br />
ANY help would be appreciated. <br />
<br />
Thanks!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>badmanmc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230917.html</guid>
		</item>
		<item>
			<title>Help me please</title>
			<link>http://www.daniweb.com/forums/thread230435.html</link>
			<pubDate>Thu, 15 Oct 2009 15:53:09 GMT</pubDate>
			<description>I request the assistance I work on the  library database,  But I have  problem on the erd and relationship between entity ,if any one can help me  I am grateful to him . 
this my project if any one can add some entity and the erd please: 
The system contains entities that act and participate with...</description>
			<content:encoded><![CDATA[<div>I request the assistance I work on the  library database,  But I have  problem on the erd and relationship between entity ,if any one can help me  I am grateful to him .<br />
this my project if any one can add some entity and the erd please:<br />
The system contains entities that act and participate with the system , these entities are :<br />
<br />
Employee Entity : each employee has an ID, Name, DOB , Address , telephone # , and supervised by other employee. The employee deal with supplier who supply the books, and treat each order comes from customer <br />
<br />
Book Entity : each book has an ID , Name , Author Name , Book Category , and Price of the book.<br />
<br />
Customer Entity : each customer has an ID, Name, Address , Telephone # , the customer is person who borrowing books from the library .<br />
<br />
Supplier Entity :  each supplier has an ID , Name , Telephone # , Address , the supplier is supply the library with different category of books.<br />
<br />
Order Entity : each order has an ID , order date , delivery date , ID for the employee , and the ID for the customer who borrowed the books , Quantity of the order .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>huss_584</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230435.html</guid>
		</item>
		<item>
			<title>Is this database structure correct? Please help</title>
			<link>http://www.daniweb.com/forums/thread229969.html</link>
			<pubDate>Wed, 14 Oct 2009 00:34:57 GMT</pubDate>
			<description>I am fairly new to mysql and wanted to practice making a database and tables. As well as filling the tables with made up data and then practicing queries. I wanted to emulate a real life database project.  
 
So I decided to make a database for a Car Dealership.  
 
the database consists of three...</description>
			<content:encoded><![CDATA[<div>I am fairly new to mysql and wanted to practice making a database and tables. As well as filling the tables with made up data and then practicing queries. I wanted to emulate a real life database project. <br />
<br />
So I decided to make a database for a Car Dealership. <br />
<br />
the database consists of three tables...Car...Buyer..Repairs. The structure is displayed below. <br />
<br />
<br />
CAR table - <br />
<br />
car_id int(5) primary key <br />
make varchar(15) <br />
model varchar(15) <br />
year int(4) <br />
origin varchar(15) <br />
buyer int(5) foreign key references buyer_id in the BUYER table <br />
cost double(5,2) <br />
<br />
<br />
<br />
BUYER table - <br />
<br />
buyer_id int(5) primary key <br />
name varchar(20) <br />
address varchar(20) <br />
tel int(10) <br />
car_id int(5) foreign key references car_id in the CAR table <br />
<br />
<br />
REPAIRS table- <br />
<br />
part_id int(5) primary key <br />
origin varchar(15) <br />
cost double(5,2) <br />
car_id int(5) foreign key references car_id in the CAR table <br />
<br />
<br />
(SCREENSHOT ATTACHED)<br />
<br />
<br />
Do you see any problems in this structure? <br />
anything I should have done differently? <br />
anything I could do to improve database performance? <br />
<br />
Please bare with me as I am new to this and wish to be a DBA one day soon! <br />
<br />
All comments will be appreciated!! <br />
<br />
Thanks people</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12112&amp;d=1255482070" target="_blank">db.JPG</a> (80.6 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>badmanmc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229969.html</guid>
		</item>
		<item>
			<title>3NF Advice</title>
			<link>http://www.daniweb.com/forums/thread229538.html</link>
			<pubDate>Mon, 12 Oct 2009 13:26:23 GMT</pubDate>
			<description>Hi I am sitting with an flat db file, and need it converted to 3NF 
 
Example: 
ProductID      Published           Title                  Authors 
1                      2000           Car Mech.         Bill Meyer, Peter Daniels  
   
I have split this structure in 3 tables: 
Book 
Author...</description>
			<content:encoded><![CDATA[<div>Hi I am sitting with an flat db file, and need it converted to 3NF<br />
<br />
Example:<br />
ProductID      Published           Title                  Authors<br />
1                      2000           Car Mech.         Bill Meyer, Peter Daniels <br />
  <br />
I have split this structure in 3 tables:<br />
Book<br />
Author<br />
Author_Book<br />
<br />
In Book I have the following fields: (PrimaryKey)ProductID, Producttitle, Published.<br />
<br />
In Author I have: (PrimaryKey)AuthorID, Firstname, Lastname<br />
<br />
Ans in Author_Book I have: ProductID, Author<br />
<br />
<br />
So, one book can have many authors, and one author can have many books. It must be a many-many relationship. <br />
Have I thought correctly, and made a proper 3NF?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>hasse76</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229538.html</guid>
		</item>
		<item>
			<title>database design for photographs</title>
			<link>http://www.daniweb.com/forums/thread228655.html</link>
			<pubDate>Thu, 08 Oct 2009 19:57:33 GMT</pubDate>
			<description>Hi 
I would like to create a database to classify and control all the photos that I have stored in my computer. 
It is clear that I need one table PHOTOS with attributes of ID, name, camera and date. 
Second table would be DATA, including aperture, ISO, fstop, focal length, and so. 
Then come the...</description>
			<content:encoded><![CDATA[<div>Hi<br />
I would like to create a database to classify and control all the photos that I have stored in my computer.<br />
It is clear that I need one table PHOTOS with attributes of ID, name, camera and date.<br />
Second table would be DATA, including aperture, ISO, fstop, focal length, and so.<br />
Then come the problem: I would like to be able to include tags, for example portrait, landscape, etc, but some are subclasses, for example in portrait&gt;family&gt;my kids.<br />
How can I construct the table, simply a list of tags each with an ID? And how do I relate the photo ID to the tags, if there are , say 6 for a photo?<br />
And same problem with the lat table LOCATION in the computer: my files are stored in folders by years and inside the year, dates. I don't know how to construct the table for this.<br />
Can you offer any help? (I am VERY new to databases, but I will learn)<br />
THANK you in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>ana.gr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228655.html</guid>
		</item>
		<item>
			<title>Problem with Database Design</title>
			<link>http://www.daniweb.com/forums/thread227468.html</link>
			<pubDate>Sat, 03 Oct 2009 18:07:30 GMT</pubDate>
			<description>Hi! 
 
I am a student and I am working on database that concerns customer-order-product relationship. When designing it I encountered an issue that I do not really know how to solve it in the way it seems reasonable and obeys Normalization process. I would appreciate for any assistance. 
...</description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
I am a student and I am working on database that concerns customer-order-product relationship. When designing it I encountered an issue that I do not really know how to solve it in the way it seems reasonable and obeys Normalization process. I would appreciate for any assistance.<br />
<br />
Description of my problem:<br />
We have product for instance T-shirt that can have different sizes and colors and each of this specific combination has quantity (<a rel="nofollow" class="t" href="http://img251.imageshack.us/img251/8871/products.jpg" target="_blank">http://img251.imageshack.us/img251/8871/products.jpg</a>)<br />
Next I created relation between Orders and Products as many-to-many (<a rel="nofollow" class="t" href="http://img406.imageshack.us/img406/8471/orderdetails.jpg" target="_blank">http://img406.imageshack.us/img406/8...derdetails.jpg</a>). And here problems starts… In Order_Details table if someone order 5x of T-shirt with size S and color blue, and then 3x of the same T-shirt but with M size I will have repeated some values. Another thing is that Size and Color attributes rely only only on ProductFK Key and not the whole Key (OrderFK-ProductFK) so I moved these details to another table like here(<a rel="nofollow" class="t" href="http://img18.imageshack.us/img18/3507/productorderdetails.jpg" target="_blank">http://img18.imageshack.us/img18/350...derdetails.jpg</a>), but now arise another problem Quantity attribute… in my it should be placed in Order_Details, right ? The thing is now I ended up with basically the same table like Product_Size_Color (<a rel="nofollow" class="t" href="http://img251.imageshack.us/img251/8871/products.jpg" target="_blank">http://img251.imageshack.us/img251/8871/products.jpg</a>) but without Quantity attribute which we do not need here since I assume it should be in Order_Details table. How I can combine it altogether to get consistent database ?<br />
<br />
Whole database until now looks like this (<a rel="nofollow" class="t" href="http://img18.imageshack.us/img18/8130/wholedatabase.jpg" target="_blank">http://img18.imageshack.us/img18/8130/wholedatabase.jpg</a>)<br />
If there is anything else that in Your opinion is bad please let me know.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>kkris1983</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227468.html</guid>
		</item>
		<item>
			<title>ERD for social networking website</title>
			<link>http://www.daniweb.com/forums/thread226797.html</link>
			<pubDate>Wed, 30 Sep 2009 13:39:05 GMT</pubDate>
			<description>Hi, 
 
I designed this ERD for a small social networking website (1-2 million user), and I would love to get experts feedback on the initial design 
 
http://www.seegh.com/erd.png 
 
Thanks In Advance 
Regards. 
Yehia A.Salam</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I designed this ERD for a small social networking website (1-2 million user), and I would love to get experts feedback on the initial design<br />
<br />
<a rel="nofollow" class="t" href="http://www.seegh.com/erd.png" target="_blank">http://www.seegh.com/erd.png</a><br />
<br />
Thanks In Advance<br />
Regards.<br />
Yehia A.Salam</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>yehiasalam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226797.html</guid>
		</item>
		<item>
			<title>online library management system</title>
			<link>http://www.daniweb.com/forums/thread226131.html</link>
			<pubDate>Sun, 27 Sep 2009 15:37:05 GMT</pubDate>
			<description>please give me information on hw to do project on  online library management system ...if any one have done the project please send me the codes for the same...</description>
			<content:encoded><![CDATA[<div>please give me information on hw to do project on  online library management system ...if any one have done the project please send me the codes for the same...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>chaitragn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226131.html</guid>
		</item>
		<item>
			<title>Movie Database</title>
			<link>http://www.daniweb.com/forums/thread225682.html</link>
			<pubDate>Fri, 25 Sep 2009 11:04:52 GMT</pubDate>
			<description>Hi, 
 
What would be the best way to have film found from a database of films using a number drop down menus and maybe a search bar? 
 
The results would be displayed in a list. 
 
Wht would be the best way to build this? 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
What would be the best way to have film found from a database of films using a number drop down menus and maybe a search bar?<br />
<br />
The results would be displayed in a list.<br />
<br />
Wht would be the best way to build this?<br />
<br />
Thanks<br />
<br />
Dan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>audiomandan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225682.html</guid>
		</item>
		<item>
			<title>Database Newbie</title>
			<link>http://www.daniweb.com/forums/thread225577.html</link>
			<pubDate>Fri, 25 Sep 2009 03:35:26 GMT</pubDate>
			<description><![CDATA[Hi all,  
 
 I'm just starting to dabble in databases and I'm a little lost. 
I have a couple of questions: 
 
I have two excel spreadsheets containing employee records & equipment records respectively. For MS Access, I simply import these spreadsheets into MS Access. Is this the way to do it on...]]></description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
 I'm just starting to dabble in databases and I'm a little lost.<br />
I have a couple of questions:<br />
<br />
I have two excel spreadsheets containing employee records &amp; equipment records respectively. For MS Access, I simply import these spreadsheets into MS Access. Is this the way to do it on mysql and other dbrm apps (importing data from spreadsheets) or is there some other standard way ?<br />
<br />
What are the common ways to create the tables that are worked on in dbrm apps ? <br />
<br />
I googled and it seems that everyone creates the tables using scripts and not spreadsheets ... so how do we input chunks of data (ie.  120 employee records) into these tables ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>EshenZero</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225577.html</guid>
		</item>
		<item>
			<title>database design for a questionaire type form</title>
			<link>http://www.daniweb.com/forums/thread224928.html</link>
			<pubDate>Tue, 22 Sep 2009 19:57:35 GMT</pubDate>
			<description>I have an idea of the design but I want to know if it wont impact performance. I have a student form consisting of Qu like: 
 
- Do you have internet access 
- Relationship 
- Do you want to pay by cheque, credit card + other options 
- etc 
 
So I wanted to create 2 tables as thus: 
 
tblDataTypes</description>
			<content:encoded><![CDATA[<div>I have an idea of the design but I want to know if it wont impact performance. I have a student form consisting of Qu like:<br />
<br />
- Do you have internet access<br />
- Relationship<br />
- Do you want to pay by cheque, credit card + other options<br />
- etc<br />
<br />
So I wanted to create 2 tables as thus:<br />
<br />
tblDataTypes<br />
<br />
-id<br />
-value<br />
<br />
<br />
tblRelations<br />
<br />
-ID<br />
-parentID<br />
-childID<br />
<br />
Examples:<br />
<br />
tblDataTypes:<br />
ID Value<br />
1 Relationship<br />
2 Internet Access<br />
3 Payment<br />
4 Married<br />
5 Single<br />
6 Divorced<br />
7 Yes<br />
8 No<br />
9 Cheques<br />
10 Credit Card <br />
etc<br />
<br />
tblRelations:<br />
ID parentID childID<br />
1 1 4<br />
2 1 5<br />
3 1 6<br />
4 2 7<br />
5 2 8<br />
6 3 9<br />
7 3 10<br />
etc<br />
<br />
I did it this way so that even if more questions are added after, the table does not have to be re-built, instead having the parent child relationship, i can easily extend the form data. <br />
The problem am having is now, if i want to relate these tables to the students, how do i do that. Would i <br />
<br />
1) do a table consisting of say 10 columns for 10 different questions with their id's as foreign:<br />
ex: <br />
tblsurvey<br />
ID studentID internetAccessID relationshipID paymentID ...<br />
1 1 4 2 6<br />
<br />
The foreign keys above are obtained by quering the 2 tables above and the primary key of tblRelations inserted in tblSurvey<br />
<br />
2) each question relates to studentID<br />
ex:<br />
tblSurvey<br />
ID studentID answerID<br />
1 1 4<br />
2 1 2<br />
3 1 6<br />
etc<br />
<br />
Option 2) will have many rows and I think that would impact on performance for number of searches that have to be made while option 1) has a problem of expansion. What if the form needs to be updated and more questions added, so option 1) table's design would have to be re-done.<br />
<br />
Any suggestions?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>kpeeroo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224928.html</guid>
		</item>
		<item>
			<title>Autonumbering</title>
			<link>http://www.daniweb.com/forums/thread223944.html</link>
			<pubDate>Fri, 18 Sep 2009 05:49:50 GMT</pubDate>
			<description><![CDATA[Below code is in my DB file. 
If I enter a card no in first record, for Others card no will be automatically  comming. 
 
but for the other "Test " I want to show the record no automatically. 
I was coded below. but it's not working. 
Pls help me.  
Thank you.]]></description>
			<content:encoded><![CDATA[<div>Below code is in my DB file.<br />
If I enter a card no in first record, for Others card no will be automatically  comming.<br />
<br />
but for the other &quot;Test &quot; I want to show the record no automatically.<br />
I was coded below. but it's not working.<br />
Pls help me. <br />
Thank you.<br />
<br />
<br />
<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim card As Long<br />
Dim aNumber As Long<br />
&nbsp;<br />
Private Sub CardNo_AfterUpdate()<br />
&nbsp; &nbsp; card = card + 1<br />
End Sub<br />
<br />
Private Sub CardNo_BeforeUpdate(Cancel As Integer)<br />
&nbsp; &nbsp; card = CardNo.Text&nbsp; &nbsp; <br />
End Sub<br />
<br />
Private Sub CardNo_GotFocus()<br />
&nbsp; &nbsp; If CardNo.Text = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; CardNo.Text = card<br />
&nbsp; &nbsp; End If<br />
End Sub<br />
<br />
Private Sub test_AfterUpdate()<br />
&nbsp; &nbsp; aNumber = aNumber + 1<br />
End Sub<br />
<br />
Private Sub test_BeforeUpdate(Cancel As Integer)<br />
&nbsp; &nbsp; aNumber = test.Text<br />
End Sub<br />
<br />
Private Sub test_GotFocus()<br />
&nbsp; &nbsp; If test.Text = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; aNumber = 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; test.Text = aNumber<br />
&nbsp; &nbsp; End If<br />
End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>riyaza</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223944.html</guid>
		</item>
		<item>
			<title>Old Sage software</title>
			<link>http://www.daniweb.com/forums/thread223708.html</link>
			<pubDate>Thu, 17 Sep 2009 08:22:04 GMT</pubDate>
			<description>I am a first time poster and couldnt find a relevant category to post in so chose this as most are viewing.My wife has a company that currently uses an old sage product as a database. It runs in dos and will only run in windows using an emulator, but it will not run in vista at all. We have been...</description>
			<content:encoded><![CDATA[<div>I am a first time poster and couldnt find a relevant category to post in so chose this as most are viewing.My wife has a company that currently uses an old sage product as a database. It runs in dos and will only run in windows using an emulator, but it will not run in vista at all. We have been let down badly by one company and are looking for a dedicated individual to basically recreate what we have and make it windows friendly and add a few tweaks here and there. The business has around 9 customers, with hundreds of products. If anyone has any recommendations, it would be much appreciated. We are located in the NW and are prepared to pay well for good but prompt work.It was called RETRIEVE and is about 20 years old and is used as a database but not accounting. Extracting the data is one part, but also creating a front end that is simple to navigate (her business partner is 65 and not IT savvy) and a backend that is also easy to manage. They both work in seperate locations and need to be able to easily update the database so both are seeing the same data. Sage no longer support it by the way for obvious reasons<br />
<br />
Thanks<br />
<br />
John</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>jhesketh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223708.html</guid>
		</item>
		<item>
			<title>Question about how to design a parts location database</title>
			<link>http://www.daniweb.com/forums/thread221607.html</link>
			<pubDate>Wed, 09 Sep 2009 03:21:10 GMT</pubDate>
			<description><![CDATA[First off, I am kind of new to database design, so please take that into account.  
 
I have a project that I am working on for my work place. It's something to make my life easier. I'm a new parts man at a diesel mechanics shop. They have hundreds of engine parts that are not organized very well....]]></description>
			<content:encoded><![CDATA[<div>First off, I am kind of new to database design, so please take that into account. <br />
<br />
I have a project that I am working on for my work place. It's something to make my life easier. I'm a new parts man at a diesel mechanics shop. They have hundreds of engine parts that are not organized very well. The person who runs the parts dept. Knows where everything is, but we new folks struggle to find things. <br />
<br />
So, I decided to work on a database of inventory for the express purpose of storing the location of the parts inventoried to make them easier to find. <br />
<br />
I have been wracking my brain (which is very small by the way) to come up with a good db design for the locations of parts,  considering that the parts are scattered in many rooms and in different types of containers. Also, many of the parts are very small pieces, like tiny o-ring's, that take up a small amount of space, and are very hard to find, in the containers they are in. <br />
<br />
Most of the parts are on/in shelves, hangers, drawers, or bins. Since there are different types of containers, that might have to be located, by different methods I'm not sure how to finish this up.<br />
<br />
I've looked at it from different angles and have finally come up with the following.<br />
<br />
I will have an entity called Part, and also an entity called Container that represents the container type and then a Location entity. <br />
<br />
The parts are located by building, floor, room, and then location. Like I said before, the location can be on a wall/hanger, on a shelf which might be against a wall. A shelf would be part of a section with numbered shelves, and the part would most likely have a position on the particular shelf.  A Shelf could also be on an aisle with multiple shelve sections just like I stated above. <br />
<br />
Parts in bins could be in shelf sections, that would be against a wall or on an aisle, and be located by column/row positioning. The same goes for the drawers that we use for brass parts, etc. <br />
<br />
My real problem is coming up with how to implement the container positioning, with the different container types located in different ways. The following are examples of the data I would need to store in order to find a part:<br />
<br />
A part stored on a hanger might be located by: <br />
<br />
Part, Building, Floor, Room, Wall, Wall-Zone, Position <br />
or <br />
Part, Building, Floor, Room, Aisle, Aisle-Position.<br />
<br />
A part on a shelf might be located like this:<br />
<br />
Part, Building, Floor, Room, Aisle, Shelving-Section, Shelf-Number, Position (number position from left)<br />
<br />
And a part in a drawer might be located by the following:<br />
<br />
Part, Building, Floor, Room, Aisle, Section, Column, Row.<br />
<br />
If any one here has a good idea about how to build a structure that would allow fairly easy retrieval of this type of data, I would really appreciate the advice. <br />
<br />
Sincerely, Rich</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>incomer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221607.html</guid>
		</item>
		<item>
			<title>Merging SMS and MySql database</title>
			<link>http://www.daniweb.com/forums/thread221201.html</link>
			<pubDate>Mon, 07 Sep 2009 16:42:19 GMT</pubDate>
			<description>HI guys, 
 
I am working on my end year project that involves replcaing use of SMS to chat on TV. i.e. instead of sending an SMS when asked for views, you just open my Midlet and write the comment. THe ricky part coes in when I need to maintain the current SMSing option.  
So I needo hve code that...</description>
			<content:encoded><![CDATA[<div>HI guys,<br />
<br />
I am working on my end year project that involves replcaing use of SMS to chat on TV. i.e. instead of sending an SMS when asked for views, you just open my Midlet and write the comment. THe ricky part coes in when I need to maintain the current SMSing option. <br />
So I needo hve code that when it recieves the comment online it converts within the server to SMS-like coding so that the current system in place that picks SMSes still works.<br />
Any one with a hint on the way forward??<br />
 I beleive I have tried to summarise my problem too much, so in case you a re not cear please tell me which part isn't so that I explain.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>justM</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221201.html</guid>
		</item>
		<item>
			<title>dba responsiblities</title>
			<link>http://www.daniweb.com/forums/thread215645.html</link>
			<pubDate>Wed, 02 Sep 2009 06:49:33 GMT</pubDate>
			<description>i want to know dba responsibilties and what he must to do with clear information.</description>
			<content:encoded><![CDATA[<div>i want to know dba responsibilties and what he must to do with clear information.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>santhoshvarma.a</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215645.html</guid>
		</item>
		<item>
			<title>DB design capturing mergers and acquisitions</title>
			<link>http://www.daniweb.com/forums/thread215464.html</link>
			<pubDate>Tue, 01 Sep 2009 14:12:28 GMT</pubDate>
			<description><![CDATA[Hello - I'm just looking for some feedback and some discussion from other DB pros about the viability of a DB design I came up with.  The goal is to create the DB back end to an application feature that keeps track of company name history in the event of name change, buy out or merger such that...]]></description>
			<content:encoded><![CDATA[<div>Hello - I'm just looking for some feedback and some discussion from other DB pros about the viability of a DB design I came up with.  The goal is to create the DB back end to an application feature that keeps track of company name history in the event of name change, buy out or merger such that there is a traceable account history.<br />
<br />
I've come up with with this ERD:<br />
<br />
<a rel="nofollow" class="t" href="http://www.jerseytransit.org/Docs/AliasConsolidation.gif" target="_blank">http://www.jerseytransit.org/Docs/Al...solidation.gif</a><br />
<br />
 What bothers me about my design:  It relies on a trigger to keep data integrity.   For example, looking at my ERD in the above link, let's say Company A buys out CompanyB and CompanyC.  Company A is the &quot;acquirer&quot; role and both CompanyB and CompanyC are &quot;acquiree&quot; role.  But the data model allows for possible entry of the &quot;acquirer&quot; to more than one company, if there is some error.  I  think I could write a trigger to check that there is not already an &quot;acquirer&quot; in this scenario and to not allow the update, but this is not using the natural referential integrity of an RDBMS. <br />
<br />
So my questions to you pros are:  1.  Does this matter? 2.  Is this a viable way of handling this?  3. Is there another way you can see to do this without coding a trigger?<br />
<br />
Any discussion is much appreciated - Thank you for reading this over!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>NewJoizey</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215464.html</guid>
		</item>
		<item>
			<title>Microsoft Access Query or Table ???? Please help me.</title>
			<link>http://www.daniweb.com/forums/thread214288.html</link>
			<pubDate>Thu, 27 Aug 2009 03:48:48 GMT</pubDate>
			<description>Hello, 
 
I have a problem and I hope someone could help me with this. 
 
I have a student registration database. 
The case is that there is courses that student can register in.  
And when they register there a groups formed for the courses. So there may be 2 groups that give the same course...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have a problem and I hope someone could help me with this.<br />
<br />
I have a student registration database.<br />
The case is that there is courses that student can register in. <br />
And when they register there a groups formed for the courses. So there may be 2 groups that give the same course depending on how much students register.<br />
<br />
The courses are divided in two levels, so there are courses that is level1, and level2.<br />
<br />
The level 1 courses are teached in one day. So they are one day course.<br />
The level 2 courses are teached in 5 days. so they are a 5 days course.<br />
<br />
The students can only make the exam if they attend to the courses. <br />
For the 1 day course they have to attend 1 time.<br />
For the 5 days course they have to attend at least 3 times.<br />
<br />
So I have made a query which I get the list of the students that can make the exams. That was easy.<br />
<br />
But now I have to add a mark field for only the students that was allowed to attend to make the exams. <br />
<br />
My problem is now that I don't know how to incorporate this table. So I can register the marks for the students that only was allowed to take the exams.<br />
The exams are a one time exam, so that determine if you pass the course. <br />
<br />
Please help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>roxys</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214288.html</guid>
		</item>
		<item>
			<title>advice on a database design please</title>
			<link>http://www.daniweb.com/forums/thread214283.html</link>
			<pubDate>Thu, 27 Aug 2009 03:39:39 GMT</pubDate>
			<description>Hi all; 
 
I’m a newbie here and it looks as if I might be able to get a bit of advice on what I think should be a fairly simple project that would actually have some value in my real world if I managed to get it working. 
 
I have successfully set up a web site with a MySQL database and I can...</description>
			<content:encoded><![CDATA[<div>Hi all;<br />
<br />
I’m a newbie here and it looks as if I might be able to get a bit of advice on what I think should be a fairly simple project that would actually have some value in my real world if I managed to get it working.<br />
<br />
I have successfully set up a web site with a MySQL database and I can connect to it using some simple PHP code, so that part is out of the way.  The challenge will be to build on it.<br />
<br />
Here is the background.  I would like to build a database to record attendance at a variety of activities that are organized into categories.  The first name and last name of the person attending, the activity category such as Outdoor Sports, Cultural or Intellectual and the actual activity is really all that is required.<br />
<br />
Examples of activities by category might be as follows:<br />
<br />
Category = Outdoor Sports (Activities = Archery, Swimming, Tennis)<br />
Category = Cultural (Art, Music, Drama)<br />
Category = Intellectual (Lectures, Seminars, Discussion Groups)<br />
<br />
The categories are fairly static, however the actual activities are somewhat dynamic in that new ones are regularly introduced and some are dropped from the program.<br />
<br />
Reports that would be desired might be as follows:<br />
<br />
•	All activities attended by a person between two dates, or for the current or last month, etc.<br />
•	Persons who attended a particular activity.<br />
•	Persons who attended activities in a particular category.<br />
•	Count of attendance for a particular activity between two dates.<br />
•	Count of attendance for a particular category between two dates.<br />
•	And probably a whole lot of goodies that I haven’t thought about yet.<br />
<br />
Some database maintenance requirements would be:<br />
<br />
•	Add, delete or modify a person (First name, Last Name)<br />
•	Add, delete or modify an activity, and possibly a category.<br />
<br />
For the record, there could be a few hundred people in the program, possibly about 10 categories of activities, and approximately 50 unique activities.  Occasionally an activity might be scheduled more than once on a particular day, so I will need to think about how to deal with that situation.<br />
<br />
Currently entering the data is a tedious task, and I am thinking that I would like to set up a data entry form where the user could use drop down list boxes to select the person who attended with a mouse click, another drop down box for the category that would then offer a list of specific activities.  It would be handy if the date that the activity could be entered by means of a calendar.  I actually built something like this using VBA in Excel, so it will be an interesting challenge for me to see if I can make it happen in PHP.<br />
<br />
So to the question on the design.<br />
<br />
I’m thinking that I should have a “person” table that contains the first and last name of the person and a master_id field.  Then a table that has the date and a master_id field that would be the same as and linked to the master_id in the person table.  Then the same idea with the category table that would have a master_id field linking back to the “person” table’s master_id.  And the same design for the activity table.<br />
<br />
Table = person<br />
Fields = id (index), master_id. first_name, last_name <br />
<br />
Table = date_time<br />
Fields – id (index), master_id, activity_date, activity_time<br />
<br />
Table = category<br />
Fields = id (index), master_id, activity_category<br />
<br />
Table = activity<br />
Fields = id (index), master_id, activity<br />
<br />
I would like to have some confidence that I am on reasonably solid ground with this database design before I get to far along with this.  This is the only design that I can come up with that I think will satisfy the reports that I would like to extract from the database.  However I know very little about this, hence my pleas for some help.<br />
<br />
Any advice or suggestions would be mighty welcome, and if you could point me to some PHP code and a MySQL database that might behave somewhat like I am after, it always helps my learning process.<br />
<br />
I hope that this all makes sense.<br />
<br />
Thanks for the time that you are taking to help me.<br />
<br />
Sheila</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>Sheilac</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214283.html</guid>
		</item>
		<item>
			<title>UML diagrams for Job Portal</title>
			<link>http://www.daniweb.com/forums/thread213743.html</link>
			<pubDate>Tue, 25 Aug 2009 05:34:29 GMT</pubDate>
			<description>I want  class,ER,Activity,Sequence,Usecase Diagrams for job portal as soon as possible.</description>
			<content:encoded><![CDATA[<div>I want  class,ER,Activity,Sequence,Usecase Diagrams for job portal as soon as possible.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>archanaj39</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread213743.html</guid>
		</item>
		<item>
			<title>About Data Migration...</title>
			<link>http://www.daniweb.com/forums/thread213701.html</link>
			<pubDate>Tue, 25 Aug 2009 02:30:03 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I don't know whether i'm posting this thread in the right forum category or not... But, would you guys give me an info on how we could estimate the cost or budget required to migrate all the data from DB ABC to DB XYZ? 
 
Thanks in advance.]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I don't know whether i'm posting this thread in the right forum category or not... But, would you guys give me an info on how we could estimate the cost or budget required to migrate all the data from DB ABC to DB XYZ?<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum142.html">Database Design</category>
			<dc:creator>kramero</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread213701.html</guid>
		</item>
	</channel>
</rss>
