Re: [SQL] Merging lines with NULLs (with example data)

2005-10-27 Thread MaXX
Thank you, and sorry for the late answer, I was far away from a decent internet connection... I'll try both your solutions, EXPLAIN ANALYSE will elect the winner... In any case that will be cleaner than my dirty hack (2 distinct queries) which generate a lot of garbage... Thanks again, MaXX Dary

Re: [SQL] Merging lines with NULLs (with example data)

2005-10-25 Thread Daryl Richter
Harald Fuchs wrote: In article <[EMAIL PROTECTED]>, MaXX <[EMAIL PROTECTED]> writes: How can I "merge" this gday,count_udp,count_tcp '2005-10-20','','2' '2005-10-20','3','' '2005-10-21','','1' '2005-10-21','5','' into that: gday,count_udp,count_tcp '2005-10-20','3','2' '2005-10-21','5','1

Re: [SQL] Merging lines with NULLs (with example data)

2005-10-25 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, MaXX <[EMAIL PROTECTED]> writes: > How can I "merge" this > gday,count_udp,count_tcp > '2005-10-20','','2' > '2005-10-20','3','' > '2005-10-21','','1' > '2005-10-21','5','' > into that: > gday,count_udp,count_tcp > '2005-10-20','3','2' > '2005-10-21','5','1' > in

[SQL] Merging lines with NULLs (with example data)

2005-10-24 Thread MaXX
Good afternoon, I have a simple problem, and I feel stupid not finding myself what's the solution... I try to explain shortly, but as I'm not really confident with my explanation, I provided a complete example with data below. How can I "merge" this gday,count_udp,count_tcp '2005-10-20','','2' '