Search Results

Showing results 1 to 40 of 67
Search took 0.02 seconds.
Search: Posts Made By: tesuji ; Forum: MySQL and child forums
Forum: MySQL Jul 27th, 2008
Replies: 4
Views: 1,627
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,385
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,385
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: MySQL Jul 26th, 2008
Replies: 6
Solved: MySql Vs Oracle
Views: 2,535
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: MySQL Jul 26th, 2008
Replies: 5
Views: 1,287
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: MySQL Jul 25th, 2008
Replies: 1
Views: 441
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: 1,016
Posted By tesuji
By tricky triggers, as you may have already figured out.
Forum: MySQL Jul 25th, 2008
Replies: 2
Views: 1,157
Posted By tesuji
Hello

Your mistake! You cannot do that !

-----
tesu
Forum: MySQL Jul 25th, 2008
Replies: 5
Views: 1,287
Posted By tesuji
next: today + 1
previous: today - 1
Forum: MySQL Jul 20th, 2008
Replies: 1
Views: 2,358
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: MySQL Jul 14th, 2008
Replies: 1
Views: 1,320
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,367
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,719
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: MySQL Jul 12th, 2008
Replies: 4
Views: 2,719
Posted By tesuji
hi,

you may google Joe Celko trees

krs,
tesu
Forum: MySQL Jul 12th, 2008
Replies: 11
Views: 3,169
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: 1,011
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: MySQL Jul 12th, 2008
Replies: 4
Views: 2,478
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...
Forum: MySQL Jul 9th, 2008
Replies: 3
Views: 560
Posted By tesuji
no, not that a good idea, consider:

left join (there are no null entries, because each left value has its mate in right column)
1 4
2 5
4 6

right join (if right value has no mate in left...
Forum: MySQL Jul 9th, 2008
Replies: 3
Views: 560
Posted By tesuji
Hello bajanstar

you may try this statement:

select receptor as
'ultimate donors, really? Shouldn''t it be ultimate receptors?'
from inthebelowtable where receptor NOT IN
...
Forum: MySQL Jul 9th, 2008
Replies: 11
Views: 3,169
Posted By tesuji
Dear kvdd

Your IF - statement is again WRONG. Pls, look at syntax in post #6 again.

>> 2) returns:
2008-05-19 09:00:00
09:00:00
21:00:00
-12:00:00
.. and here more of course
Forum: MySQL Jul 9th, 2008
Replies: 11
Views: 3,169
Posted By tesuji
hi kvdd,

if statement is correct, also your case statement seams to be correct. You can put an else part to it to assign a value instead of getting NULL if if condition evaluates false. Two...
Forum: MySQL Jul 8th, 2008
Replies: 11
Views: 3,169
Posted By tesuji
What do you think of correct syntax?

SELECT IF ... THEN ... ELSE ... ENDIF AS diff


krs,
tesu
Forum: MySQL Jul 4th, 2008
Replies: 3
Views: 1,026
Posted By tesuji
Hi rupak

Stay your ground! Knowing as less as possible from that database protects one from becoming infested with badly base database concepts. Try to learn db2, firebird, oracle, postgresql, ms...
Forum: MySQL Jul 2nd, 2008
Replies: 11
Views: 4,242
Posted By tesuji
can you give us the exact error message?

does error also happen if you execute mysql_query($query) ?

does the row you want to delete still exists?

What database engine, what about commit?
...
Forum: MySQL Jul 2nd, 2008
Replies: 3
Views: 1,654
Posted By tesuji
that s true ! try it without _

-----
tesu
Forum: MySQL Jul 2nd, 2008
Replies: 1
Views: 692
Posted By tesuji
Hello

In subselect you select b.Airtime and then you compare it with a.Airtime but between
them there are still large differences.

try these changes:

AND a.Airtime -- you want to...
Forum: MySQL Jul 2nd, 2008
Replies: 11
Views: 4,242
Posted By tesuji
Hi

Do below statements not work on mysql?

DELETE FROM accounts WHERE usrn = 'caughtusername';
COMMIT;

As nav33n already suggested.

krs,
Forum: MySQL Jul 1st, 2008
Replies: 3
Views: 1,538
Posted By tesuji
Hi daniyal

you may cast a glance on http://www.daniweb.com/forums/thread132147.html to get your inspiration from on how to solve your problem :icon_wink:

krs,
tesu
Forum: MySQL Jun 30th, 2008
Replies: 1
Views: 1,265
Posted By tesuji
Hello,

unfortunately and opposite to other database vendors, mysql does not publish a meaningful list of all error numbers or even warnings, they only explain some errors here and there. So one...
Forum: MySQL Jun 29th, 2008
Replies: 3
Views: 1,538
Posted By tesuji
Hi

This is a very simple standard task you always have to solve, if one-to-many related tables need to get together. Is that not related to your other nice thread, E-commerce data design issue of...
Forum: MySQL Jun 29th, 2008
Replies: 1
Views: 891
Posted By tesuji
Hi veledrom,

I think your SQL is syntactically not corret: If insert is done from result set given by select you must not use values part. Also, if you want to insert two values you must also...
Forum: MySQL Jun 27th, 2008
Replies: 1
Views: 586
Posted By tesuji
of course, you do have.
Forum: MySQL Jun 27th, 2008
Replies: 4
Views: 6,395
Posted By tesuji
Hi tuse

How are you?



Well, if you had access to grant table mysql.user you would have also been able to
SELECT User, Password FROM mysql.user. You got it? Yes, you would be able to hack...
Forum: MySQL Jun 23rd, 2008
Replies: 3
Views: 1,667
Posted By tesuji
Hi tmarket

Did you already tried this sort of inner join:

select r.title from ranges r, ips s
where r.start <= s.ip and sr.ip <= r.stop

Additionally, you should put indexes on s.ip and...
Forum: MySQL Jun 23rd, 2008
Replies: 3
Views: 1,667
Posted By tesuji
hi

You may try this syntax, what is quite usual in other databases:
SELECT title FROM ranges JOIN ips ON
(
ip BETWEEN start AND stop
)


Question about this create table statement:
Forum: MySQL Jun 23rd, 2008
Replies: 4
Views: 849
Posted By tesuji
Hi

What exactly do you mean by:
"This query doesn't work .... mysql server has gone away is the return or nothing... just loading" ?

Do you get any error message?
Does the query never ends?...
Forum: MySQL Jun 19th, 2008
Replies: 3
Views: 1,867
Posted By tesuji
Apparently this means a problem with the db design.

But you may freely post your table's schema together with some sample data.

krs,
tesu
Forum: MySQL Jun 13th, 2008
Replies: 7
Views: 1,026
Posted By tesuji
correct, it is cartesian product, not cross product. thank you, varmadba :)

True, the cardinality is just the total product of the cardinalities of all involved tables. But this might be ok to...
Forum: MySQL Jun 13th, 2008
Replies: 2
Views: 1,282
Posted By tesuji
It depends on the data type of the attribute you demand to be excluded from result set, for examples

if numeric: ... where Attribute != number
if char: ...where Attribute != 'excludeme'
if char...
Forum: MySQL Jun 13th, 2008
Replies: 7
Views: 1,026
Posted By tesuji
Obviously a task too overcharging him. Why not letting him doing plain cross products first a la posting #2 ?
Showing results 1 to 40 of 67

 


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

©2003 - 2009 DaniWeb® LLC