Home » RDBMS Server » Server Administration » IN NEED OF SQL STATEMENT PLEASE
IN NEED OF SQL STATEMENT PLEASE [message #374966] Mon, 16 July 2001 06:34 Go to next message
sai krishna
Messages: 8
Registered: July 2001
Junior Member
I have two master tables

1)employee with emp_id & emp_name
2)status with status_id & status

One detail Table

1)Sales_Report with

status_id(reference status table),school_name,emp_id(reference employee table),action_date,next_action(reference employee table),next_action_status(reference status table),next_action_date,comments

I need one sql statement which will give me all the details as follows:

status,school name,employee name,action_date, employee name,status,next_action_date,comments
Re: IN NEED OF SQL STATEMENT PLEASE [message #374974 is a reply to message #374966] Mon, 16 July 2001 12:29 Go to previous message
sverch
Messages: 582
Registered: December 2000
Senior Member
SELECT
...
FROM employee a.status b,sales_report c
WHERE c.status_id=b.status_id
AND c.emp_id=a.emp_id;
Previous Topic: Date/Hour problem
Next Topic: Regarding the Crosstab Query
Goto Forum:
  


Current Time: Wed Jul 03 03:57:17 CDT 2024