From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: sql query problem
Date: Tue, 17 Jan 2012 14:35:19 +0100
Message-ID: <20120117133519.GA29528@tux> (raw)
In-Reply-To: <8682062e-b8fa-4778-a544-ab7671ff721b@c1g2000pbf.googlegroups.com>
References: <-926980289640737999@unknownmsgid>
<8682062e-b8fa-4778-a544-ab7671ff721b@c1g2000pbf.googlegroups.com>
Alok Thakur <alokthakur1987@gmail.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°
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: akretschmer@spamfence.net
Subject: Re: sql query problem
In-Reply-To: <20120117133519.GA29528@tux>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox