Home
Submit
Free Hosting
Link To Us
Contacts
SQL Func Sales By Store
SQL
Download
(.zip)
CREATE FUNCTION SalesByStore(@storid varchar(30))
RETURNS TABLE
AS
RETURN (SELECT title, qty
FROM sales s, titles t
WHERE s.stor_id = @storid AND t.title_id = s.title_id)
GO
SELECT * FROM SalesByStore ('8042')
SQL
Computeby
Date func
Func avg price
SQL
Func factorial
Func fn factorial
Func MyDateFormat
SQL
Func Sales By Store MS
Func Sales By Store
Store selling all titles
SQL
trig_funcs