Re: [Bacula-users] sorting output bconsole

2009-10-17 Thread Markus Falb
Jari Fredriksson wrote: > 18.10.2009 0:32, Markus Falb kirjoitti: >> Terry L. Inzauro wrote: >> >>> For testing, I've decided to use the mysql command line interface and >>> I have one last question. How would I take take sums of two columns >>> such as JobFiles and JobBytes >> >> Use the addition

Re: [Bacula-users] sorting output bconsole

2009-10-17 Thread Jari Fredriksson
18.10.2009 0:32, Markus Falb kirjoitti: Terry L. Inzauro wrote: For testing, I've decided to use the mysql command line interface and I have one last question. How would I take take sums of two columns such as JobFiles and JobBytes Use the addition Operator like that: mysql> select JobFile

Re: [Bacula-users] sorting output bconsole

2009-10-17 Thread Markus Falb
Terry L. Inzauro wrote: > For testing, I've decided to use the mysql command line interface and I > have one last question. How would I take take sums of two columns such > as JobFiles and JobBytes Use the addition Operator like that: mysql> select JobFiles+JobBytes from Job where JobFiles > 0 li

Re: [Bacula-users] sorting output bconsole

2009-10-17 Thread Jari Fredriksson
17.10.2009 17:41, Terry L. Inzauro kirjoitti: A simple query will return those SELECT SUM(JobFiles) AS JobFilesSum, SUM(JobBytes) AS JobBytesSum FROM Job ; but that is not much of interest, I guess. -- http://www.iki.fi/jarif/ Ships are safe in harbor, but they were never meant t

Re: [Bacula-users] sorting output bconsole

2009-10-17 Thread Terry L. Inzauro
Jari Fredriksson wrote: > > > 17.10.2009 2:19, Terry L. Inzauro kirjoitti: >> For testing, I've decided to use the mysql command line interface and >> I have one last question. How would I take take sums of >> two columns such as JobFiles and JobBytes >> >> >> [18:13:04 r...@jenna:~]# mysql -u ro

Re: [Bacula-users] sorting output bconsole

2009-10-16 Thread Jari Fredriksson
17.10.2009 2:19, Terry L. Inzauro kirjoitti: For testing, I've decided to use the mysql command line interface and I have one last question. How would I take take sums of two columns such as JobFiles and JobBytes [18:13:04 r...@jenna:~]# mysql -u root -px Welcome to the MySQL monitor. C

Re: [Bacula-users] sorting output bconsole

2009-10-16 Thread Terry L. Inzauro
John Drescher wrote: > On Fri, Oct 16, 2009 at 6:30 PM, Terry L. Inzauro > wrote: >> John Drescher wrote: >>> On Fri, Oct 16, 2009 at 5:03 PM, Terry L. Inzauro >>> wrote: Does bconsole support sorting of output? For instance, can bconsole sort the output of "list volumes pool=FullPoo

Re: [Bacula-users] sorting output bconsole

2009-10-16 Thread John Drescher
On Fri, Oct 16, 2009 at 6:30 PM, Terry L. Inzauro wrote: > John Drescher wrote: >> On Fri, Oct 16, 2009 at 5:03 PM, Terry L. Inzauro >> wrote: >>> Does bconsole support sorting of output?   For instance, can bconsole sort >>> the output of "list volumes pool=FullPool" by size >>> or date? >>> >>

Re: [Bacula-users] sorting output bconsole

2009-10-16 Thread Terry L. Inzauro
John Drescher wrote: > On Fri, Oct 16, 2009 at 5:03 PM, Terry L. Inzauro > wrote: >> Does bconsole support sorting of output? For instance, can bconsole sort >> the output of "list volumes pool=FullPool" by size >> or date? >> >> kind regards, >> > > You can do that in a query. > > John Wh

Re: [Bacula-users] sorting output bconsole

2009-10-16 Thread Jose Perez
Hi: On Fri, Oct 16, 2009 at 4:03 PM, Terry L. Inzauro wrote: > Does bconsole support sorting of output?   For instance, can bconsole sort > the output of "list volumes pool=FullPool" by size > or date? > I don't think this is possible but you could some bash script to sort: -init of bconsol

Re: [Bacula-users] sorting output bconsole

2009-10-16 Thread John Drescher
On Fri, Oct 16, 2009 at 5:03 PM, Terry L. Inzauro wrote: > Does bconsole support sorting of output?   For instance, can bconsole sort > the output of "list volumes pool=FullPool" by size > or date? > > kind regards, > You can do that in a query. John ---

[Bacula-users] sorting output bconsole

2009-10-16 Thread Terry L. Inzauro
Does bconsole support sorting of output? For instance, can bconsole sort the output of "list volumes pool=FullPool" by size or date? kind regards, Terry -- Come build with us! The BlackBerry(R) Developer Conference