| | |
SQL
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
![]() |
•
•
Join Date: Jun 2009
Posts: 11
Reputation:
Solved Threads: 0
Hi all,
I need a favor on SQL this time
There are 4 tables as follows
Employee(EmpID,EmpName,...........)
Designation(Des_ID,Designation....)
EmpProfInfo(EmpID,Des_ID,..........)
Training(TrainingTypeID,EmpID,TrainingType,.......)
When an employee allocated to a training their details will be inserted in to the Training Table
I want to write a sql query so that I can select EmpID,EmpName,Designation of employees who do not participated in the particular training type
It would be a great help if anyone could show me a way to achieve this
I need a favor on SQL this time
There are 4 tables as follows
Employee(EmpID,EmpName,...........)
Designation(Des_ID,Designation....)
EmpProfInfo(EmpID,Des_ID,..........)
Training(TrainingTypeID,EmpID,TrainingType,.......)
When an employee allocated to a training their details will be inserted in to the Training Table
I want to write a sql query so that I can select EmpID,EmpName,Designation of employees who do not participated in the particular training type
It would be a great help if anyone could show me a way to achieve this
Try this
SELECT Training.EmpID, Training.TrainingType, Employee.EmpName, EmpProfInfo.Des_ID, Designation.Designatio
FROM Designation RIGHT OUTER JOIN
Employee RIGHT OUTER JOIN
EmpProfInfo RIGHT OUTER JOIN
Training ON EmpProfInfo.EmpID = Training.EmpID ON Training.EmpID = Employee.EmpID ON Designation.Des_ID = EmpProfInfo.Des_ID
WHERE (Training.TrainingType <> 'Type1')
SELECT Training.EmpID, Training.TrainingType, Employee.EmpName, EmpProfInfo.Des_ID, Designation.Designatio
FROM Designation RIGHT OUTER JOIN
Employee RIGHT OUTER JOIN
EmpProfInfo RIGHT OUTER JOIN
Training ON EmpProfInfo.EmpID = Training.EmpID ON Training.EmpID = Employee.EmpID ON Designation.Des_ID = EmpProfInfo.Des_ID
WHERE (Training.TrainingType <> 'Type1')
![]() |
Similar Threads
- Need Microsoft SQL certified professional (Tech / IT Consultant Job Offers)
- SQL Server Developer, Manchester, UK (Software Development Job Offers)
- ASP.NET/SQL Developer/Programmer (Web Development Job Offers)
- Freelance .NET / MS SQL developer (Web Development Job Offers)
- Software Engineer (.NET , SQL) (Software Development Job Offers)
- UPS is Hiring!! PL/SQL & UNIX Technical Specialist (Software Development Job Offers)
- SQL Server DBA - " Hot " (Software Development Job Offers)
- PHP / My SQL Web developer (Web Development Job Offers)
- Sql Dba (Software Development Job Offers)
- SQL Server DBA (Software Development Job Offers)
Other Threads in the VB.NET Forum
- Previous Thread: Retreiving data from previous form to next form
- Next Thread: Socket programming....
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account arithmetic array basic beginner browser button buttons center check code combo component crystalreport cuesent data database datagrid datagridview date datetimepicker design designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter folder forms ftp generatetags hardcopy html images input insert intel listview monitor net networking number open output panel passingparameters picturebox picturebox1 picturebox2 port print printing problem problemwithinstallation project searchvb.net select serial settings shutdown socket sqlserver survey tcp temperature text textbox timespan toolbox transparency trim txttoxmlconverter updown user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic.net visualstudio visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





