Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group