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

Displaying revenue to another employee

$
0
0
Hi guys,

As you can see, my query below displays the revenue by name for those who active.

Select First_Name, SUM(Total_Price*Num_Of_Products) from employees_new as E Inner join sales as S 
on E.Employee_id=S.Employee_Id
Whe

Viewing all articles
Browse latest Browse all 3145

Trending Articles