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

Re: sql query problem

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: sql query problem
Date: 2012-01-17 13:35:19
Message-ID: 20120117133519.GA29528@tux (view raw or flat)
Thread:
Lists: pgsql-sql
Alok Thakur <alokthakur1987(at)gmail(dot)com> wrote:

> Dear,
> 
> I am trying to provide you as much details as possible.
> 
> answer` (
>   `id` int(10) NOT NULL AUTO_INCREMENT,
>   `question_id` int(10) NOT NULL,
>   `user_id` int(10) NOT NULL,
>   `answer` int(10) NOT NULL,  ->
>   `status` tinyint(1) NOT NULL,  --> Status will be 0 or 1 means wrong
> or right answer
>   `date` datetime NOT NULL,
>   PRIMARY KEY (`quiz_result_id`)
> )
> 
> user` (
>   `user_id` int(11) NOT NULL AUTO_INCREMENT,
>   `user` varchar(255) NOT NULL,
>   `username` varchar(255) NOT NULL,
>   `user_email` varchar(255) NOT NULL,
>   `user_gender` varchar(255) NOT NULL,
>   `refrence` varchar(255) NOT NULL,
>   `join_date` varchar(255) NOT NULL,
>   `status` tinyint(1) NOT NULL,
>   `banned` tinyint(1) NOT NULL,
>   PRIMARY KEY (`user_id`)
> )

That's MySQL (i guess), please join a mysql-list.



Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

In response to

Responses

pgsql-sql by date

Next:From: David JohnstonDate: 2012-01-17 14:05:44
Subject: Re: sql query problem
Previous:From: Filip RembiałkowskiDate: 2012-01-17 11:53:18
Subject: Re: Wrong query plan when using a left outer join

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