Here is the sample database.
Key_Bunch Entity
----------------------
001 Front Door
001 Back Door
001 Terrace
002 Kitchen
002 Emergency
002 Terrace
003 Front Door
003 Emergency
003 Kitchen
Erro:Not a group by expression
Here is what I am doing
select * from Tab_Key group by Key_Bunch having Entity='Terrace' or Entity='Kitchen'.
I want to select a key bunch based on any two conditions.
I am not being able to pin point the solution.Please help.
Thanks and Regards
Rnty
This post has been edited by rnty: 11 December 2012 - 06:58 AM

New Topic/Question
Reply


MultiQuote




|