Click here to Skip to main content
15,899,475 members
Home / Discussions / Database
   

Database

 
GeneralRe: AS PinPopular
SilimSayo29-Dec-11 4:44
SilimSayo29-Dec-11 4:44 
Questionhow to loop over results of a select statement ? Pin
yousefshokati27-Dec-11 19:40
yousefshokati27-Dec-11 19:40 
AnswerRe: how to loop over results of a select statement ? Pin
gvprabu27-Dec-11 21:25
gvprabu27-Dec-11 21:25 
AnswerRe: how to loop over results of a select statement ? Pin
jschell29-Dec-11 14:39
jschell29-Dec-11 14:39 
Questionhow to loop over results of a select statement ? Pin
yousefshokati27-Dec-11 19:39
yousefshokati27-Dec-11 19:39 
AnswerRe: how to loop over results of a select statement ? Pin
Shameel27-Dec-11 19:42
professionalShameel27-Dec-11 19:42 
AnswerRe: how to loop over results of a select statement ? Pin
PIEBALDconsult28-Dec-11 2:33
mvePIEBALDconsult28-Dec-11 2:33 
QuestionMicrosoft SQL Server 2008 R2 (between) Pin
Framework .l.27-Dec-11 16:59
Framework .l.27-Dec-11 16:59 
i'm trying to filter by date using query but error.

select s.IdStaff, s.NamaStaff, 
	sum(pd.Qty *
	case s.posisi
		when 'K.Teknisi' then kd.komisiteknisi
		when 'K.Controller' then kd.komisitelemarketing
		when 'K.Manager' then kd.komisicontroller
		when 'K.TeleMarketing' then kd.komisimanager
		when 'K.Cadangan' then kd.komisicadangan
	end) Insentif
from staff s inner join penjualan p on s.idstaff = p.idstaff
	inner join penjualandetail pd on p.idpenjualan = pd.idpenjualan
	inner join komisidetail kd on pd.idbarang = kd.idbarang
	where p.tglpenjualan between 12/1/2011 and 12/30/2011
group by s.idstaff, s.namastaff


error message : Msg 206, Level 16, State 2, Line 1
Operand type clash: date is incompatible with int
AnswerRe: Microsoft SQL Server 2008 R2 (between) Pin
R. Giskard Reventlov27-Dec-11 17:17
R. Giskard Reventlov27-Dec-11 17:17 
QuestionRe: Microsoft SQL Server 2008 R2 (between) Pin
Framework .l.27-Dec-11 17:21
Framework .l.27-Dec-11 17:21 
AnswerRe: Microsoft SQL Server 2008 R2 (between) Pin
thatraja27-Dec-11 17:46
professionalthatraja27-Dec-11 17:46 
AnswerRe: Microsoft SQL Server 2008 R2 (between) Pin
Shameel27-Dec-11 17:59
professionalShameel27-Dec-11 17:59 
QuestionFailed to open malformed assembly 'mscorlib' with HRESULT 0x80070008. Pin
yousefshokati26-Dec-11 19:41
yousefshokati26-Dec-11 19:41 
AnswerRe: Failed to open malformed assembly 'mscorlib' with HRESULT 0x80070008. Pin
Luc Pattyn26-Dec-11 23:52
sitebuilderLuc Pattyn26-Dec-11 23:52 
QuestionHelp in finding the differences in values across sub groups. Pin
aakar25-Dec-11 9:17
aakar25-Dec-11 9:17 
AnswerRe: Help in finding the differences in values across sub groups. Pin
SilimSayo29-Dec-11 10:36
SilimSayo29-Dec-11 10:36 
AnswerRe: Help in finding the differences in values across sub groups. Pin
datakeyword8-Feb-12 15:57
datakeyword8-Feb-12 15:57 
AnswerRe: Help in finding the differences in values across sub groups. Pin
datakeyword8-Feb-12 18:57
datakeyword8-Feb-12 18:57 
QuestionUsing where condition in Linked server with ms access in sql server. Pin
yesu prakash23-Dec-11 19:55
yesu prakash23-Dec-11 19:55 
AnswerRe: Using where condition in Linked server with ms access in sql server. Pin
coded00725-Dec-11 19:23
professionalcoded00725-Dec-11 19:23 
AnswerRe: Using where condition in Linked server with ms access in sql server. Pin
Shameel25-Dec-11 22:43
professionalShameel25-Dec-11 22:43 
QuestionChecking database has a table. Pin
yuvarajujogi22-Dec-11 19:50
yuvarajujogi22-Dec-11 19:50 
AnswerRe: Checking database has a table. Pin
Shameel22-Dec-11 23:40
professionalShameel22-Dec-11 23:40 
AnswerRe: Checking database has a table. Pin
Eddy Vluggen23-Dec-11 1:16
professionalEddy Vluggen23-Dec-11 1:16 
AnswerRe: Checking database has a table. Pin
RDBurmon23-Dec-11 2:42
RDBurmon23-Dec-11 2:42 

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.