Search Results

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Stylish ; Forum: MS SQL and child forums
Forum: MS SQL Apr 23rd, 2009
Replies: 4
Views: 559
Posted By Stylish
Inner Join (id is foreign key)

SELECT *
FROM table1 t1, table2 t2
WHERE t1.id = t2.id


Left Outer Join (id is foreign key)

SELECT *
Forum: MS SQL Apr 3rd, 2009
Replies: 3
Views: 576
Posted By Stylish
SELECT table, sum(people)
FROM Tables
GROUP BY table


All aggregate functions (sum, max, min, avg, etc) must include a GROUP BY including all columns up-to the aggregate.

If this is a...
Forum: MS SQL Apr 2nd, 2009
Replies: 2
Views: 1,602
Posted By Stylish
CREATE PROCEDURE CreateWebsiteMember
(
@wbmName varchar(50)
)
AS
INSERT into tblWebsiteMember (Name) VALUES(@wbmName)
SELECT ID as 'Result' FROM tblWebsiteMember where NAME = @wbmName

...
Forum: MS SQL Jun 2nd, 2007
Replies: 2
Views: 1,333
Posted By Stylish
SELECT STATUS.*
FROM STATUS, APPLICATION, GROUPS
WHERE GRP_NAME = 'Group 1' AND GROUPS.GRP_ID = APPLICATION.GRP_ID AND APPLICATION.APP_ID = STATUS.APP_ID
Showing results 1 to 4 of 4

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC