Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Different t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 3522 of 3799
Post > Topic >>

Re: Different type of query

by scrawford@[EMAIL PROTECTED] (Steve Crawford) Jun 11, 2008 at 11:27 AM

PostgreSQL Admin wrote:
> I have a table ...
>
> when I run this query:
> select ndb_no, nutrient_no, nutrient_value from nutrient_data where 
> ndb_no = 13473;
>
> it produces:
> ndb_no | nutrient_no | nutrient_value
> --------+-------------+----------------
>  13473 |         203 |          24.18
> ...
>
>
> I want only certain nutrient_no (say 8 of them) and the nutrient 
> values by ndb_no.
Not entirely sure I understand the question. Do you mean that for a 
given nutrient_no, you want the complete list of nutrient values? If so, 
it's just:

--Example for nutrient_no 203:
SELECT ndb_no, nutrient_value from nutrient_data where nutrient_no=203;

Cheers,
Steve


-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 5 Posts in Topic:
Different type of query
postgres@[EMAIL PROTECTED  2008-06-11 13:27:45 
Re: Different type of query
scrawford@[EMAIL PROTECTE  2008-06-11 11:27:36 
Re: Different type of query
postgres@[EMAIL PROTECTED  2008-06-11 14:41:48 
Re: Different type of query
scrawford@[EMAIL PROTECTE  2008-06-11 12:01:29 
Tsearch
postgres@[EMAIL PROTECTED  2008-06-12 08:47:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:46:45 CST 2008.