Forum: Database Design Jan 20th, 2009 |
| Replies: 5 Views: 791 Hi, I am back again.
Because of "A French vocable got one or more English vocable equivalents and vice versa." there exists a many-to-many relationship between both entities. Therefore this is the... |
Forum: MySQL Jul 27th, 2008 |
| Replies: 4 Views: 1,534 Hello,
>>> I installed and configured MySQL on my server and also installed the MySQL ODBC driver (version 5.1). What the problem is now that I couldn't establish a connection, despite that I... |
Forum: MySQL Jul 27th, 2008 |
| Replies: 5 Views: 1,318 Hello again,
The problem are duplicate date (fecha) values, why sum will be wrongly computed. To solve this, date and uniqueID must be combined in that order because date has higher priority than... |
Forum: MySQL Jul 27th, 2008 |
| Replies: 5 Views: 1,318 hello,
I am glad that you have got inspired by my solutions.
Questions:
1. How is your uniqueID computed?
2. Does uniqueID correspond to the date?
3. Isn't there a contradiction in |
Forum: C++ Jul 27th, 2008 |
| Replies: 10 Views: 2,727 hi,
you may read this
http://gcc.gnu.org/
or that
http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/G_002b_002b-and-GCC.html |
Forum: Oracle Jul 27th, 2008 |
| Replies: 2 Views: 934 Hello
if you want to get an oracle developer you probably become fond of this site:
http://st-curriculum.oracle.com/tutorial/SQLDeveloper/index.htm
Also full oracle documentation is available... |
Forum: MySQL Jul 26th, 2008 |
| Replies: 6 Views: 2,447 Hello rich_m,
how are you?
I am afraid you will have to wait at the Greek calends.
Once MySql company had a wonderful oracle clone. It was MaxDB, formerly SAPDB. And lots of people thought... |
Forum: Database Design Jul 26th, 2008 |
| Replies: 1 Views: 839 Hello
What is the primary key of responses, (response_id, range_id)?
To ensure referential integrity all foreign keys (fk) must be set up correctly.
Diaries ---< questions: diary_id is fk... |
Forum: C++ Jul 26th, 2008 |
| Replies: 10 Views: 2,727 possibly #include <iostream> or using namespace std forgotten.
That also works: return answer == 'y' ;
instead of: if ( answer == 'y' ) return true; else return false;
krs,
tesu |
Forum: MySQL Jul 26th, 2008 |
| Replies: 5 Views: 1,188 hi velodrom
SELECT current_date() - INTERVAL 1 DAY AS "Help yesterday !",
current_date() + INTERVAL 1 DAY AS "for tomorrow never come !";
may also give some results.
krs, tesu |
Forum: MS SQL Jul 26th, 2008 |
| Replies: 2 Views: 1,632 ah sorry, Easter() is my own udf, please replace it by for example yourBirthday.
krs, tesu |
Forum: MS SQL Jul 26th, 2008 |
| Replies: 2 Views: 1,632 hello
SELECT DATEDIFF(DAY, yourBirthday, getdate()) AS silly_days
may work on mssqlserver.
krs,
tesu |
Forum: MS SQL Jul 25th, 2008 |
| Replies: 4 Views: 1,188 Hello,
you may have a look at DATE_FORMAT(date, format), especially specifier %p to convert date and time values.
krs,
tesu |
Forum: Oracle Jul 25th, 2008 |
| Replies: 1 Views: 2,097 Hi,
you may try:
select * from yourtable where TO_CHAR(your_date, 'MM') in ('01', '03',... ,'12')
krs,
tesu |
Forum: Database Design Jul 25th, 2008 |
| Replies: 2 Views: 1,146 Hello
that depends on your specific database system. There are Database systems where you can
type in: select myBirthday - now() as "My age is:" ;
You need to know the current-date function... |
Forum: MS SQL Jul 25th, 2008 |
| Replies: 3 Views: 3,057 Hello,
php default's is auto commit ON. Therefore, you first step should always be switching it OFF, if you want to do serious database programming. With auto commit ON you will never be able to... |
Forum: MySQL Jul 25th, 2008 |
| Replies: 1 Views: 417 Hello
Because both products differ in an important property they must have different part numbers. So you are able to manage different quantities, deliverers, prices, taxes etc.
You may put them... |
Forum: MySQL Jul 25th, 2008 |
| Replies: 2 Views: 972 By tricky triggers, as you may have already figured out. |
Forum: MySQL Jul 25th, 2008 |
| Replies: 2 Views: 1,110 Hello
Your mistake! You cannot do that !
-----
tesu |
Forum: MySQL Jul 25th, 2008 |
| Replies: 5 Views: 1,188 next: today + 1
previous: today - 1 |
Forum: MS SQL Jul 25th, 2008 |
| Replies: 3 Views: 1,030 hello,
>>> "select * from table1 where RAM between ... "
Never use *, the sign of slackers! You must always enumerate only those columns you really need for your datagrid!
There are lots of... |
Forum: MS SQL Jul 24th, 2008 |
| Replies: 3 Views: 3,057 hi,
how do you access the database? If by ODBC, you should set autocommit OFF. Unfortunately, ODBC's default is ON!
krs,
tesu |
Forum: MS SQL Jul 22nd, 2008 |
| Replies: 3 Views: 2,179 And also that "unaltered" code went through some modification meanwhile, LOL |
Forum: MS SQL Jul 22nd, 2008 |
| Replies: 3 Views: 2,179 hi,
there are some discrepancies:
1. What are PD.REFNO, PH1.BGROUP, PS1.REFNO ?
2. Is there a self-join: LEFT JOIN TableC LEFT JOIN TableC C ???
3. TableC of first left join... |
Forum: MS SQL Jul 22nd, 2008 |
| Replies: 4 Views: 3,713 hello,
in union clause the column which should be ordered cannot be denoted by column name. Column to be ordered must be specified by its position number like in:
select a, b, c from t1
union... |
Forum: MS SQL Jul 20th, 2008 |
| Replies: 3 Views: 2,173 Hello dmmckelv,
When Edgar Frank Codd invited relational databases his primary idea was to found it on
logic algebra and set theory. The rows of relational tables (aka relations) are sets.... |
Forum: MySQL Jul 20th, 2008 |
| Replies: 1 Views: 2,270 Hi Finau,
If both following statements are true
1. Each table has a column named region_id of compatible data type
2. At least one of those tables has primary key region_id AND all other
... |
Forum: Database Design Jul 15th, 2008 |
| Replies: 5 Views: 1,437 I did not change your table tbl_Author which already has Author-Name. Therefore I left out your 3rd table ! |
Forum: Database Design Jul 15th, 2008 |
| Replies: 5 Views: 1,437 Hello,
in tbl_poems exists a transitive dependency poem-ID -> Author-ID -> Book-ID. Therefore, this table does not satisfy 3NF. fk Author-ID should be removed and inserted into tbl_Book. The... |
Forum: MySQL Jul 14th, 2008 |
| Replies: 1 Views: 1,184 So you want to decipher a 160 bit binary HSA1 string? Impossible! (except for hiring some Roadrunner doing brute-force decryption.) |
Forum: MySQL Jul 13th, 2008 |
| Replies: 1 Views: 2,224 Hi
There is a function LAST_INSERT_ID() what returns the last-created auto-increment value. So first insert parent data what creates a new auto-increment ID. Then insert row in child table where... |
Forum: MySQL Jul 13th, 2008 |
| Replies: 4 Views: 2,531 Hi jakesee
For better handling you need one root only. This can easily be done by defining a master root where all other roots can be formally connected to. Only this master root will not have a... |
Forum: Database Design Jul 13th, 2008 |
| Replies: 3 Views: 1,953 Hi rich_m
>>> My team( all freshers) are developing a project that will involve many Modules.
You must be "sophos ke moros" to carry out such database design successfully, which is every... |
Forum: MySQL Jul 12th, 2008 |
| Replies: 4 Views: 2,531 hi,
you may google Joe Celko trees
krs,
tesu |
Forum: MySQL Jul 12th, 2008 |
| Replies: 11 Views: 2,998 hello kvdd,
there must be at least one space between END and IF in ENDIF: END IF;
If you omit the else part, you will get NULL , if condition is not satisfied.
I have checked your picture... |
Forum: MySQL Jul 12th, 2008 |
| Replies: 1 Views: 963 Hello,
1. how come that in
>>> select temp.start, temp.end, temp.gene_name, min(temp.distance) as
>>> minimum_distance from (select start_bindsite, end_bindsite, gene_name,
>>>... |
Forum: Oracle Jul 12th, 2008 |
| Replies: 1 Views: 1,270 Hi varun077,
Most of your questions including your several performance and maintenance issues will simply get solved if you (re-)design a true relational datamodel based on correct relationships... |
Forum: MS SQL Jul 12th, 2008 |
| Replies: 1 Views: 1,728 Hello guptaalok12,
When Edgar Frank Codd invited relational databases his primary idea was to found it on logic algebra and set theory. The Rows of relational tables (aka relations) are sets.... |
Forum: MS SQL Jul 12th, 2008 |
| Replies: 2 Views: 3,026 first do you first update, then:
update whattable set price = 5 where price IS NULL
From now onwards, all goods without price before will now cost 5 yourPriceUnit. Is this really correct?
... |
Forum: MySQL Jul 12th, 2008 |
| Replies: 4 Views: 2,378 Hello elliaw,
Actually, this query is wrong! It should not work! Because of * (the sign of slackers) more than one column will be selected. Therefore, GROUP BY clause must contain more than as... |