Using AND in query

Поиск
Список
Период
Сортировка
От aravind chandu
Тема Using AND in query
Дата
Msg-id 853899.68325.qm@web31405.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: Using AND in query  (Raymond O'Donnell <rod@iol.ie>)
Re: Using AND in query  (Thomas Kellerer <spam_eater@gmx.net>)
Re: Using AND in query  (David Fetter <david@fetter.org>)
Список pgsql-general
Hello every one,
 
I have encountered a problem while working .I have a sample table with the following data
 
 
TIDDateItem
T1008/1/2010Laptop
T1008/1/2010Desktop
T1018/1/2010Laptop
T1028/1/2010Desktop
T1038/2/2010Laptop
T1038/2/2010Desktop
T1048/2/2010Laptop

 

need the data when a person bought laptop & desktop on the sameday.I used a condition in where clause but its not working,it is returning no rows.Can any one please help me to resolve this issue ?

 
condition in where clause :
table.date in date() to date() and table.item = "laptop" and table.item = "Desktop"
 

В списке pgsql-general по дате отправления:

Предыдущее
От: PIC2010
Дата:
Сообщение: 2010 International Conference on Progress in Informatics and Computing(PIC-2010 )
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Using AND in query