Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~785 People Reached
Favorite Forums

7 Posted Topics

Member Avatar for marrrrrrc

I'd be interested in the solution to this too. Right now, the only way I know how to do it with any decent performance is to use a cheap trick using string concatenation and de-concatenation. I would post it here, but I'd be embarrassed if someone were to post a …

Member Avatar for tal17
0
115
Member Avatar for sjgriffiths

Yes. You can write a script and schedule it through your OS. [url]http://dev.mysql.com/doc/refman/5.0/en/batch-mode.html[/url]

Member Avatar for jemajoign
0
72
Member Avatar for stonyheng

If by 'pair up' you mean that you want them to appear in the same row, I think the approach would be to join the table to itself. So if you had a table like: [code] id description linkid 1 item 1 3 2 item 2 1 3 item 3 …

Member Avatar for jemajoign
0
104
Member Avatar for navneet1083

Is this what you need? [code=sql] select i, substring_index(source_ip, '.', i) source_ip_new, count(*) as myCount from ( select (1) as i union select (2) union select (3) union select (4) ) as n join userbase_copy group by i, source_ip_new with rollup having i = 3 and count(*) > 0; [/code]

Member Avatar for tesuji
0
187
Member Avatar for jemajoign

I was trying to create a moving average. Here's the sample data: [code=MySQL] create temporary table if not exists window (id int); delete from window; insert into window(id) select 1 union select 2 union select 3 union select 4 union select 15 union select 6 union select 7 union select …

0
71
Member Avatar for chrischirowa
Re: SQL

Just an additional note about the pronunciation of "MySQL": From [url]http://forge.mysql.com/wiki/MySQLFAQ[/url] How do I pronounce MySQL? MySQL is pronounced "My Ess Que Ell" ("My S Q L"). But we're friendly people, so we don't get angry if people say "Mysequel". ;-)

Member Avatar for jbennet
0
114
Member Avatar for stonyheng

What do you mean when you say you want to find out "how many tables actually have the same variable as the key table?"

Member Avatar for tesuji
0
122

The End.