Re: sql query problem

From: Oliveiros <oliveiros(dot)cristina(at)gmail(dot)com>
To: Alok Thakur <alokthakur1987(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: sql query problem
Date: 2012-01-15 21:13:18
Message-ID: CAGp7Z5PmRiaJST=i1q3drhrBhz3sFMudB6d43Q7sn26K9E1U3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

What does a 0 state mean? Failed? And a 1 state? Passed?

Best,
Oliveiros

2012/1/14 Alok Thakur <alokthakur1987(at)gmail(dot)com>

> Dear All,
>
> I have two tables one contains details of user and other contains
> result. The details are:
> 1. UserTable - id, name, phone
> 2. result - id, question_id, user_id, status (0 or 1)
>
> I want the list like this:
> User Id Name Attended Failed Passed
>
> but i could not find the way to do this.
>
> Please help
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Misa Simic 2012-01-15 22:36:23 Re: Call function with dynamic schema name
Previous Message Pavel Stehule 2012-01-15 18:27:05 Re: Call function with dynamic schema name