Hi All:
I am rourke to SQL and here is my doubt is using OR operator. I have an employee table with 2 records, employeeid column of 1st row value is 1 and 2nd row column value is *. My query has to fetch the row with employeeid column value as 1 otherwise it has to fetch the rows with employeeid as *. Finally the query has to fetch either one set of records i.e. set of records with employeeid as 1 or set of records with employeeid as *.
I have used "Select * from Employee where emp_id = 1 or emp_id = * ;" but the resultset is fetching all rows where employeeid value as 1 and *. I want either one set of records only.
How to do it in SQL? Thanks in advance
I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...