Programming :: Database Design Using IDs As Opposed As Candidate Keys As Primary Key
Jul 27, 2011
Self learner developer since about 2 years, I'm trying to understand deeper how to design a database in the best and most efficient way possible.Reading about UML design, I've found this: Do not automatically add ID numbers(surrogate keys) or substitute keys to a table until you are sure that:
-There is at least one candidate key (before the surrogate is added),
-the table is a parent in at least one association, and
-there is no candidate key small enough for its values to be copied many times into the child table.
Until then, I've always did this (I mean using ID) to identify my rows.So my questions are:
1. Why should we avoid using ID to identify rows?
2. Candidate keys add some weight to our database, and this can huge if we have millions of records, so why should we use these over surrogate keys?
View 1 Replies
ADVERTISEMENT
Sep 9, 2010
As I am Carrying out a project to Design Social Networking Databases, I need 5 tables for designing it.My frontend being php and backend being Mysql.I need to know what are the 5 tables I can have and how to implement them.
View 4 Replies
View Related
May 2, 2010
Perhaps this is not the best place to ask, however, I have not had any luck finding answers elsewhere and I know the someone here knows the answer.In a nutshell, I am looking to purge information which I do not want retained (for privacy reasons) from the various database files used by Firefox. Using the available preference settings I have configured Firefox to clear everything on quit except for:
Saved Passwords
Site Preferences
Browsing History
I have no concern with the first two categories. It is the third one which I wish to fine tune beyond what I can do within the Firefox app. I wish to keep those sites which I have typed in so that they can be accessed by the Old Location Bar add-in - so that when I enter "li" in the address bar I am directed to linuxquestions.org. However, I do not want the data stored which allows Firefox to display previously visited links in a different color (and probably more data as I dig further).
So my plan would be to build some scripts to remove the offending data from the applicable sqlite databases (places.sqlite in the case of browsing history) by brute force. As mozilla.org does not expect users to do this they do not seem to have any documentation readily available describing the layout and use of the databases behind Firefox.So my question is... can someone point me to a source of the documentation I am seeking?
View 10 Replies
View Related
May 13, 2010
I am not clear as how to put my question but what I am looking at is some tool which has a GUI to be able to design a databases and also once the database is done it should be working.Some thing like drag and drop interface for a database.As an example I can write a query on mysql command prompt or phpmyadmin to create table its fields etc.Can I use some thing which does not involve mysql command line?What should I search for?I know very well how to work with mysql command prompt I need a GUI tool for the same to some non technical users.
View 1 Replies
View Related
Apr 8, 2010
I want to design an audio chat programming in Ubuntu.So how shall I proceed? Any help on this please?I am complete novice in this topic. Currently my aim is to capture audio from microphone.
View 1 Replies
View Related
Jun 18, 2010
Code: cmd='date | wc'
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
View 4 Replies
View Related
Apr 3, 2011
what the best free linux graphic design interface was? Possibly one from the ubuntu one software center. I tried boa constructor and it was glitchy and kept crashing. I want something very easy to use and as simple as possible as i am new to programming. I want something that also supports the major programming languages like python C++, etc and was also wondering where i could go to learn codes for python.
View 4 Replies
View Related
Oct 5, 2010
I am designing a KEDB (Known Error Database) which I am currently maintaining with MS-Excel. I want to develop a Web Application to accomplish this task in a more convenient and effective way. Well, you guess, the client should be happy to see how we provide support more effectively...? I want to make it ITIL-Compliant. I (optionally) want to provide the Problem and Change Management facilities within it in a way that the concerned teams and the management can find the KEDB very useful for their work also. I am going to do it entirely in PHP and JavaScript for client-side validations wherever needed.
View 3 Replies
View Related
Apr 29, 2010
im interested in improving my web designing. ive been trying to learn ajax and flash completed a couple tutorials and i was thinking about starting a project. the goal of the project is to make a banner on top of a webpage that basicly is a slide show of thumbnails. but at the same time when u click on the image that flashes by it send you to the page where u can buy a print of the image. when you hover over the banner it stops. and is all contained in its own box. i did try to use a banner slide show box b4 but it didnt do everything i wannted and at the same time it expanding the length of the webpage as it scrolled the top.i was wondering how i might get the tools and knowlege i need to acomplish my goal.
View 3 Replies
View Related
Mar 30, 2011
Is there anything that Windows can and GNU/Linux can't in Web programming and design?
View 10 Replies
View Related
Jun 3, 2010
I want to learn how to create computer software/programs. I want to be able to design them to be cross platform (Win32, OSX, Linux). I was wondering if anyone knows what kind of courses I need to take for this? And would it be possible to study by myself and learn it for free?
View 13 Replies
View Related
Nov 23, 2010
So a friend and I are new-ish to linux (I am reasonably comfortable with basic /etc text editing, command admin). We are, however, completely new to programming and (x)html. We have a few (what we think are) interesting ideas for dynamic websites.Ideally we would like to develop our own course of study to get to the point where we have a basic understanding of programming so that our adventures in the programming of a dynamic website would be possible. Much of what we need learn to do is the following: use daily updated public-domain data from several other sites, manipulate that data algorithmically, which would then yield updating output on our site. Here is what I would like to do:
1. learn the basics of programming with a language that would teach good code habits and fundamental understanding.
2. become comfortable with (x)html
3. learn another language for the extension of (x)html into a dynamic data-heavy website.
Question could you please suggest a way about going about 1>2>3?Ideally the language of (1) would be something that would not be "wasted" just on web design etc. As a language, C really appeals to me. However, if learning this wouldn't lend itself to being helpful in learning another language for webdesign maybe I shouldn't use it(?).If (1) weren't to be C, what language would be funadmental enough to teach good coding but also be helpful in learning (3)
View 14 Replies
View Related
Mar 8, 2010
know abt daemon process and how it is used for acting as proxy server if nay tutorial is there for it .
View 3 Replies
View Related
Feb 28, 2011
I have to write a script or program to log the details of the primary partition of a linux server which should be generic. Can anyone tel what is the command in linux to get the list of the partitions and how to find the primary partition among the other. Or can I know from proc filesystem.
View 3 Replies
View Related
Jan 15, 2010
is it possible to stream a window from X, as opposed to forwarding it over SSH? I've used X-forwarding before so that I could ssh into another computer and open up a graphical program and have it show up on mine. But as far as I know, that window only opens on your computer, not on the computer the program is actually running on. Is it possible for me to open a window on my computer, and to sort of X stream it to another computer that has X so they can watch what I'm doing in that window?
View 1 Replies
View Related
Jan 27, 2010
What database can I use for c++?,this is my first week programming in c++.
View 14 Replies
View Related
Jun 16, 2010
I tried shutting down from terminal as opposed to KMenu and the shutdown hung without completing. I did a 'hard' shutdown mechanically.The command I used was: # shutdown -a -t 5secs now
Is there a way to correct this?
Desktop Running Gear
i-386 Processor
2.6GHz/512MB RAM/160GB HDD
HS Cable-Modem: (Motorola SURFBoard SB5101) direct to ISP (no router)
[Code].....
View 4 Replies
View Related
Dec 1, 2010
I would like to keep this simple and if possible use a piped command as opposed to an all out complex method.I have a script that does many things for me, and one of them builds a basic simple system report (I know about lshw, but this is for me to learn as well as be functional)
I would like to add another pipe to remove the"model name:" portion.I do not really want to use the store in a variable first solutions if I can help it.
View 7 Replies
View Related
Feb 10, 2010
sql statement. I am trying to check if there is such a value in the database.
Code:
string NewMovie = "ww";
string queryText ;
queryText = "Select * from movie_info WHERE movie_title = '"+ NewTitle +"'";
MYSQL *conn;
conn=mysql_init(NULL);
mysql_real_connect(conn,host,username,password,database,0,NULL,0);
[Code]......
return 0; The problem i am facing is how do i check if the value is found. I read up and found that a query will return a value of TRUE if the query is a success and a FAIL if there is an error. How do i call these values and then based the check on it?
View 1 Replies
View Related
Nov 4, 2010
Is it possible to set up Ubuntu 10.10 where one click will open a document as opposed to double clicking?
View 2 Replies
View Related
Apr 25, 2011
How to map special keys in vim, e.g. ctrl+< , ctrl+> , shift+< . I want to resize the windows in vim, ctrl+w+< is complex, I want map it to double press ctrl+< , how can I achieve it ?
View 2 Replies
View Related
Apr 7, 2011
How to create a database using c language it includes structures, pointers, arrays and switch..
View 4 Replies
View Related
Apr 26, 2011
I have a php scriptI want it to ping list of ips from a databse(using fping) and based on the status of the values to put them in a field(status) into the database(0 if down,1 if up)i executed tghe script and it gives me this error:Thread 1 - 17:51:01 26-04-2011 4.2.2.2 alive Couldn't execute query.I cant see what 's wrongthis is the source of the php script:
<?php
require_once("conf.php");
$connection1 = mysql_connect($h, $u, $p) or die("Couldn't connect.");
[code]....
View 1 Replies
View Related
Apr 26, 2010
I have created a database which stores students grades for different stages of a project. One of the stages of the project is the specification part. I have a simple bit of html code which is going to be used as the searching facility. I want the user to be able to enter their ID and then it will display only their results. At the moment, it is displaying the results for EVERY student because I cant seem to find the correct syntax for my statement.
Heres the HTML code
<html>
<head>
</head>
<body>
<body bgcolor="#6881bb">
<center>
[Code]....
At the moment when i click the button, no matter what I enter every students marks appear on the screen.
I think, but obviously dont know for sure because if i did i would know how to solve the problem, the code that i need to change is in green.
View 3 Replies
View Related
Aug 9, 2010
How to shorten the long URL without using database(i.e. without storing url entries in DB)?
View 2 Replies
View Related
Jan 5, 2009
I am trying to unload file from a database. Which contains few lines with the character below. Rest of the data was unloaded appropriately.
Code:
a) What does this below character means?
b) How can i remove it,
I already have
Code:
sed '/^$/d'
c) Will this effect the file by any means (If I am guessing properly, this is the eof notation)
View 5 Replies
View Related
Mar 28, 2011
I would like in depth knowledge of how these keys work. If I were to want to use these keys for my own application how would I program them?
View 1 Replies
View Related
Jul 1, 2011
Under Gnome on 10.10, does anybody know how to make the Rubbish Bin open when one double-clicks the icon as opposed to single-click?
View 7 Replies
View Related
May 12, 2011
i get some trouble setting up good environment in linux.i have problem regarding connecting php(under linux) to a sybase server(under windows)is there anyway connecting this two technologies?.
View 1 Replies
View Related
May 23, 2011
I have a (rather large) database of mp3 track information. I also have several directories of the actual mp3s. I'm trying to write a simple bash script that will check the contents of the directories against what's in the database, and upon finding a file that isn't in the database, do something.
Here's what I have so far:
Code:
The trouble I'm having (in the sample directory of "/mnt/music/B/Beatles, The/" the file "Beatles, The - Taxman.mp3" isn't in the database.) is getting it to actually trigger an error when an entry isn't in the database.
Once triggering on a non-entered file is working, any way to get it to traverse the entire /mnt/music hierarchy?
View 13 Replies
View Related