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

First occurrences

$
0
0
Hi,Below is the table and results I am looking for......i am an SQL newbie. Game Play_Id Team Player EVENT1 1 1 2 A Frank 31 3 A John 21 4 B Michael 42 1 2 2 A Craig 2 3 B Bill 22 4 A Tom 1the result i am looking for is the first event for each team in each game where the event is not null.the result of the above would be:Game Play Id Team Player Event1 2 A Frank 31 4 B Michael 42 3 B Bill 22 4 A Tom 1

Viewing all articles
Browse latest Browse all 3145

Trending Articles