Search Results

Showing results 1 to 40 of 296
Search took 0.02 seconds.
Search: Posts Made By: tesuji
Forum: Database Design Jan 20th, 2009
Replies: 5
Views: 772
Posted By tesuji
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,511
Posted By tesuji
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,273
Posted By tesuji
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,273
Posted By tesuji
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,661
Posted By tesuji
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: 923
Posted By tesuji
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
Solved: MySql Vs Oracle
Views: 2,393
Posted By tesuji
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: 833
Posted By tesuji
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,661
Posted By tesuji
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,157
Posted By tesuji
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,569
Posted By tesuji
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,569
Posted By tesuji
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,180
Posted By tesuji
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,064
Posted By tesuji
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,120
Posted By tesuji
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,006
Posted By tesuji
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: 410
Posted By tesuji
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: 955
Posted By tesuji
By tricky triggers, as you may have already figured out.
Forum: MySQL Jul 25th, 2008
Replies: 2
Views: 1,088
Posted By tesuji
Hello

Your mistake! You cannot do that !

-----
tesu
Forum: MySQL Jul 25th, 2008
Replies: 5
Views: 1,157
Posted By tesuji
next: today + 1
previous: today - 1
Forum: MS SQL Jul 25th, 2008
Replies: 3
Views: 1,018
Posted By tesuji
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,006
Posted By tesuji
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,123
Posted By tesuji
And also that "unaltered" code went through some modification meanwhile, LOL
Forum: MS SQL Jul 22nd, 2008
Replies: 3
Views: 2,123
Posted By tesuji
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,594
Posted By tesuji
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,106
Posted By tesuji
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,231
Posted By tesuji
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,426
Posted By tesuji
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,426
Posted By tesuji
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,143
Posted By tesuji
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,153
Posted By tesuji
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,471
Posted By tesuji
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,918
Posted By tesuji
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,471
Posted By tesuji
hi,

you may google Joe Celko trees

krs,
tesu
Forum: MySQL Jul 12th, 2008
Replies: 11
Views: 2,907
Posted By tesuji
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: 940
Posted By tesuji
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,262
Posted By tesuji
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,703
Posted By tesuji
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: 2,954
Posted By tesuji
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,330
Posted By tesuji
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...
Showing results 1 to 40 of 296

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC