Click here to Skip to main content
15,896,154 members
Home / Discussions / Database
   

Database

 
QuestionRe: On error resume next Pin
Eddy Vluggen2-Aug-12 12:33
professionalEddy Vluggen2-Aug-12 12:33 
AnswerRe: On error resume next Pin
vanikanc3-Aug-12 3:05
vanikanc3-Aug-12 3:05 
GeneralRe: On error resume next Pin
Eddy Vluggen3-Aug-12 4:02
professionalEddy Vluggen3-Aug-12 4:02 
QuestionSQL Query - write all in one query Pin
Raman samineni1-Aug-12 6:30
Raman samineni1-Aug-12 6:30 
AnswerRe: SQL Query - write all in one query Pin
PIEBALDconsult1-Aug-12 8:42
mvePIEBALDconsult1-Aug-12 8:42 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni1-Aug-12 16:02
Raman samineni1-Aug-12 16:02 
GeneralRe: SQL Query - write all in one query Pin
PIEBALDconsult1-Aug-12 18:23
mvePIEBALDconsult1-Aug-12 18:23 
AnswerRe: SQL Query - write all in one query Pin
Mycroft Holmes1-Aug-12 13:17
professionalMycroft Holmes1-Aug-12 13:17 
Raman samineni wrote:
I have 3 select statments

Funny I count 5, the ability to count is reasonably fundamental to stating your problem. You also need to be much clearer what your goal is.

Do some reading on UNION and UNION ALL, these will help. Your queries must have the same fields and formats so your first query should be something like

SQL
Select E.FirstName +' ' + E.LastName as FullName, 'Supervisor' as TypeName
INNER JOIN [cgs].dbo.tems h ON(h.Supervisor = E.EmploId)
where h.temId = 336

Never underestimate the power of human stupidity
RAH

GeneralRe: SQL Query - write all in one query Pin
Raman samineni1-Aug-12 15:56
Raman samineni1-Aug-12 15:56 
GeneralRe: SQL Query - write all in one query Pin
Mycroft Holmes1-Aug-12 16:25
professionalMycroft Holmes1-Aug-12 16:25 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni2-Aug-12 8:22
Raman samineni2-Aug-12 8:22 
AnswerRe: SQL Query - write all in one query Pin
Eddy Vluggen1-Aug-12 22:34
professionalEddy Vluggen1-Aug-12 22:34 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni2-Aug-12 8:19
Raman samineni2-Aug-12 8:19 
GeneralRe: SQL Query - write all in one query Pin
Eddy Vluggen2-Aug-12 8:59
professionalEddy Vluggen2-Aug-12 8:59 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni6-Aug-12 8:37
Raman samineni6-Aug-12 8:37 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni6-Aug-12 8:39
Raman samineni6-Aug-12 8:39 
QuestionRe: SQL Query - write all in one query Pin
Eddy Vluggen6-Aug-12 8:50
professionalEddy Vluggen6-Aug-12 8:50 
AnswerRe: SQL Query - write all in one query Pin
Raman samineni6-Aug-12 11:11
Raman samineni6-Aug-12 11:11 
RantRe: SQL Query - write all in one query Pin
Eddy Vluggen6-Aug-12 11:30
professionalEddy Vluggen6-Aug-12 11:30 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni8-Aug-12 5:30
Raman samineni8-Aug-12 5:30 
GeneralRe: SQL Query - write all in one query Pin
Eddy Vluggen8-Aug-12 7:00
professionalEddy Vluggen8-Aug-12 7:00 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni8-Aug-12 11:21
Raman samineni8-Aug-12 11:21 
GeneralRe: SQL Query - write all in one query Pin
Eddy Vluggen8-Aug-12 12:12
professionalEddy Vluggen8-Aug-12 12:12 
QuestionSSRS Pin
Arul R Ece31-Jul-12 23:57
Arul R Ece31-Jul-12 23:57 
AnswerRe: SSRS Pin
Eddy Vluggen1-Aug-12 2:48
professionalEddy Vluggen1-Aug-12 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.