I Have a table dbo.ArtikelAlternatief created like this:
CREATE TABLE [dbo].[ArtikelAlternatief](
[Barcode] [varchar](50) NOT NULL,
[BarcodeAlternatief] [varchar](50) NOT NULL,
CONSTRAINT [PK_ArtikelAlternatief] PRIMARY KEY CLUSTERED
(
[Barcode] ASC,
[BarcodeAlternatief] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Now I want the following results combined:
select BarcodeAlternatief AS 'Barcode' from dbo.ArtikelAlternatief where Barcode like '7630015711115'
select Barcode AS 'Barcode' from dbo.ArtikelAlternatief where BarcodeAlternatief like '7630015711115'
How is it possible to combine those 2 query's in one result column?