Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
create proc IHaveParam (@param varchar(1000))
as
begin
select *
from leTable
where leColumn = @param
end
execute IHaveParam 'parameter value in single quotes'
[COLOR=blue]CREATE[/color] [COLOR=blue]PROCEDURE[/color] get_Parts
[COLOR=blue]AS[/color]
[COLOR=blue]DECLARE[/color]
@partNum [COLOR=blue]varchar[/color](40)
[COLOR=blue]BEGIN[/color]
[COLOR=blue]SET[/color] @partNum = [COLOR=red]'myPart'[/color]
[COLOR=blue]SELECT[/color] [COLOR=#FF00FF]DISTINCT[/color] @partNum [COLOR=blue]As[/color] PartNumber,
BIN_ID,
SUM(BIN_QTY) [COLOR=blue]AS[/color] BIN_QTY
[COLOR=blue]FROM[/color] plm_brad.LEI_WARE
[COLOR=blue]WHERE[/color] PART_ID = @partNum
[COLOR=blue]GROUP[/color] [COLOR=blue]BY[/color] BIN_ID
[COLOR=blue]END[/color]
[COLOR=blue]CREATE[/color] [COLOR=blue]PROCEDURE[/color] get_Parts
@partNum [COLOR=blue]varchar[/color](40)
[COLOR=blue]AS[/color]
[COLOR=blue]BEGIN[/color]
[COLOR=blue]SELECT[/color] [COLOR=#FF00FF]DISTINCT[/color]
BIN_ID,
SUM(BIN_QTY) [COLOR=blue]AS[/color] BIN_QTY
[COLOR=blue]FROM[/color] plm_brad.LEI_WARE
[COLOR=blue]WHERE[/color] PART_ID = @partNum
[COLOR=blue]GROUP[/color] [COLOR=blue]BY[/color] BIN_ID
[COLOR=blue]END[/color]