sql n00b question.. query construction
I have a helpdesk system that I can search for tickets. There are many drop down selection boxes that I can use to define the search. However I need to do some custom searches.
There is a line that I can enter a sql statement.
There is one table called Task status that has: open, closed, pending, etc..
I want to be able to search all tickets that are not equal to Closed for example
Or not equal to “closed” and “open”
Can some one help me
Thank you
I have a helpdesk system that I can search for tickets. There are many drop down selection boxes that I can use to define the search. However I need to do some custom searches.
There is a line that I can enter a sql statement.
There is one table called Task status that has: open, closed, pending, etc..
I want to be able to search all tickets that are not equal to Closed for example
Or not equal to “closed” and “open”
Can some one help me
Code:
SELECT * from hds_tickets where__________________________
Thank you