public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
* sql query
@  Jude DaShiell
   ` Tim Chase
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jude DaShiell @  UTC (permalink / raw)
  To: blinux-list

I wrote a query in sql using psql for an interactive environment in 
console mode.  I can get a couple different kinds of output neither of 
which would be useful for production level work.  The column names from 
which data was taken in a table would be informative if those were to show 
up to the left of the values but that's a different kind of output and 
what is also happening when I use an aggregate function say 
round(avg(sug),1) is that the function shows with its result on output.  
That particular formula was used to calculate average blood sugar for a 
set of data.  I can use \t and turn off all tuples and then all I read are 
the rounded averages again with no explanatory text.
I understand all of this since I wrote the query but someone else who 
doesn't know what Linux is never mind what postgresql is needing to look 
at this data without assistance is going to have a hard road to travel.
I was reading up on comment (7) but unless those \D directives can operate 
like \t and show column names and comments written for aggregate functions 
that won't be a workable solution.



jude <jdashiel@shellworld.net>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 sql query Jude DaShiell
 ` Tim Chase
   ` Jude DaShiell
   ` Jude DaShiell
     ` Rob Harris
       ` Jude DaShiell
   ` Jude DaShiell
     ` Rob Harris
     ` Tim Chase
       ` Jude DaShiell
         ` Tim Chase
           ` Jude DaShiell
 ` Shlomi Fish
   ` Jude DaShiell
 ` Geoff Shang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).