Click here to Skip to main content
15,923,273 members
Home / Discussions / Database
   

Database

 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Arun.Immanuel5-May-07 2:29
Arun.Immanuel5-May-07 2:29 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 4:42
Joe Smith IX5-May-07 4:42 
QuestionXPO vs SQL Statement or Persistent Object VS SQL Pin
mfcuser4-May-07 8:01
mfcuser4-May-07 8:01 
AnswerRe: XPO vs SQL Statement or Persistent Object VS SQL Pin
Kevin McFarlane5-May-07 5:19
Kevin McFarlane5-May-07 5:19 
QuestionSyntax error converting datetime from character string. Pin
rujuc#4-May-07 0:57
rujuc#4-May-07 0:57 
AnswerRe: Syntax error converting datetime from character string. Pin
Marek Grzenkowicz4-May-07 1:07
Marek Grzenkowicz4-May-07 1:07 
AnswerRe: Syntax error converting datetime from character string. Pin
szukuro4-May-07 1:09
szukuro4-May-07 1:09 
GeneralRe: Syntax error converting datetime from character string. Pin
rujuc#4-May-07 2:22
rujuc#4-May-07 2:22 
Hi szukuro

Thanx for your suggestion. But your tric was not working for my solution. Some how i modified my stored procedure. Is this the correct way?? can we optimized it??

CREATE PROCEDURE ic_get_processeddata
(
@frmDate DateTime,
@toDate DateTime,
@empType varchar(20),
@ein varchar(15)
)
as
if(@empType !='') and (@ein !='')
begin
select EIN,empName,empType,I2C,callAnswered,I2CPer,USLeaves,CBF,SOS,SOI,FCR,Bonus from ic_process where frmDate=@frmDate and toDate=@toDate and empType=@empType and ein=@ein order by empType,empName
end
else if (@empType !='') and (@ein ='')
begin
select EIN,empName,empType,I2C,callAnswered,I2CPer,USLeaves,CBF,SOS,SOI,FCR,Bonus from ic_process where frmDate=@frmDate and toDate=@toDate and empType=@empType order by empName,empType
end
else if(@ein !='') and (@empType ='')
begin
select EIN,empName,empType,I2C,callAnswered,I2CPer,USLeaves,CBF,SOS,SOI,FCR,Bonus from ic_process where frmDate=@frmDate and toDate=@toDate and ein=@ein order by empName,empType
end
else
begin
select EIN,empName,empType,I2C,callAnswered,I2CPer,USLeaves,CBF,SOS,SOI,FCR,Bonus from ic_process where frmDate=@frmDate and toDate=@toDate order by empName,empType
end
GO

GeneralRe: Syntax error converting datetime from character string. Pin
szukuro4-May-07 2:50
szukuro4-May-07 2:50 
Questiondownload Pin
lakkudavanam3-May-07 22:39
lakkudavanam3-May-07 22:39 
AnswerRe: download Pin
Hesham Amin4-May-07 21:54
Hesham Amin4-May-07 21:54 
QuestionDoes this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd3-May-07 22:13
professionalVimalsoft(Pty) Ltd3-May-07 22:13 
AnswerRe: Does this Query return results based on the output of First Query? Pin
Arun.Immanuel3-May-07 22:35
Arun.Immanuel3-May-07 22:35 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd3-May-07 22:50
professionalVimalsoft(Pty) Ltd3-May-07 22:50 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Arun.Immanuel3-May-07 23:37
Arun.Immanuel3-May-07 23:37 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd4-May-07 4:32
professionalVimalsoft(Pty) Ltd4-May-07 4:32 
QuestionBULK data import Pin
pmpdesign3-May-07 17:40
pmpdesign3-May-07 17:40 
AnswerRe: BULK data import Pin
PIEBALDconsult3-May-07 18:00
mvePIEBALDconsult3-May-07 18:00 
GeneralRe: BULK data import [modified] Pin
pmpdesign3-May-07 18:36
pmpdesign3-May-07 18:36 
QuestionStored proc or query Pin
topcatalpha3-May-07 2:21
topcatalpha3-May-07 2:21 
AnswerRe: Stored proc or query Pin
Colin Angus Mackay3-May-07 3:14
Colin Angus Mackay3-May-07 3:14 
GeneralRe: Stored proc or query Pin
topcatalpha3-May-07 3:22
topcatalpha3-May-07 3:22 
QuestionWhere can i start, am leaving VB6 to .NET Help Pin
Vimalsoft(Pty) Ltd3-May-07 1:18
professionalVimalsoft(Pty) Ltd3-May-07 1:18 
AnswerRe: Where can i start, am leaving VB6 to .NET Help Pin
Colin Angus Mackay3-May-07 1:38
Colin Angus Mackay3-May-07 1:38 
GeneralRe: Where can i start, am leaving VB6 to .NET Help Pin
Vimalsoft(Pty) Ltd3-May-07 2:27
professionalVimalsoft(Pty) Ltd3-May-07 2:27 

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.