Hi,
Trying to fetch information from below table using two queries. Is it possible to retrieve the results of these two queries using a single query?
Declare @testspecName table (specId int,SpecName varchar(50),type char(10))
Insert Into @testspecName
Values (101, 'tyre','parts')
, (102, 'wheel','parts')
, (103, 'steering','parts')
, (104, 'car','vehicle')
, (105, 'bike','vehicle')
select * from @testspecName where type like 'parts'
select * from @testspecName where type NOT like 'parts'