Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

How can I combine these to tables?

$
0
0

I have a query that i get the MAX number of "stars"

 

 

 

    <cfquery datasource="Intranet" name="getMaxstars">    SELECT   TOP (1) WITH TIES employee, SUM(execoffice_status) AS 'total_max'    FROM     CSEReduxResponses    GROUPBY employee    ORDERBY 'total_max' DESC    </cfquery >

 

I also have a different table EMPLOYEE. Table EMPLOYEE also comes from a different datasource="phonelist". Where in this table I have the employees first_name and last_name columns , they share the same column emp_id.

How can I output the employee first_name and last_name using the other table.

 

 

What I eventually I want to do it output:

max:

john doe - stars = 4


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>