Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

If statement in T-SQL

$
0
0
Hi guys,

I am trying to display item_name with a new category, which says the following term ( i have pasted my whole query) :

declare @item varchar(50) 
Select @item = item_name from order_items
If @item = 'charger' or @ite

Viewing all articles
Browse latest Browse all 3145

Trending Articles