Click here to Skip to main content
16,016,669 members
Home / Discussions / Database
   

Database

 
GeneralRe: problem of champ type Pin
foryou16-Feb-09 23:50
foryou16-Feb-09 23:50 
QuestionHelp is needed in Triggers and indexes in sql server 2000 Pin
Rameez Raja15-Feb-09 20:00
Rameez Raja15-Feb-09 20:00 
AnswerRe: Help is needed in Triggers and indexes in sql server 2000 Pin
Wendelius15-Feb-09 20:16
mentorWendelius15-Feb-09 20:16 
QuestionHow will we stop the duplicating entries while we entering in Excel database? Pin
hitesh.kalra15-Feb-09 18:54
hitesh.kalra15-Feb-09 18:54 
Questionhow to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing15-Feb-09 15:10
Golden Jing15-Feb-09 15:10 
AnswerRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
_Maxxx_15-Feb-09 16:34
professional_Maxxx_15-Feb-09 16:34 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing15-Feb-09 17:21
Golden Jing15-Feb-09 17:21 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
_Maxxx_15-Feb-09 18:31
professional_Maxxx_15-Feb-09 18:31 
Sovann wrote:
Thanks for your kindly to help me.


No worries

Sovann wrote:
but what you wrote is in query right ?


Yes - just plain SQL - so you can put it in a stored proc or whatever

Sovann wrote:
It did not process


? in what way. I created a dummy table and entered data similar to your example, ran the query against it and got your desired results.
The column and table names were different to yours, but the query certainly worked fine...

Sovann wrote:
but if there are more employee, Does it work ?


I think it should work as long as there is always an In and Out (not sure what it would do if there was only an In time and no Out - or if there were more than two of each. It doesn't matter how many employees there are.

Sovann wrote:
My idea if we select and use for loop, what can we do ?


If you WANT to write loops etc. then sure, you could do that. You could create a temporary table, populate it using a number of queries in a loop, or whatever you want to do. Depends whether your aim is to solve the problem or to write some sql using a for loop?

___________________________________________
.\\axxx
(That's an 'M')

GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing15-Feb-09 20:45
Golden Jing15-Feb-09 20:45 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
_Maxxx_16-Feb-09 12:50
professional_Maxxx_16-Feb-09 12:50 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing17-Feb-09 20:58
Golden Jing17-Feb-09 20:58 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
_Maxxx_17-Feb-09 21:53
professional_Maxxx_17-Feb-09 21:53 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing17-Feb-09 22:27
Golden Jing17-Feb-09 22:27 
AnswerRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Wendelius15-Feb-09 18:09
mentorWendelius15-Feb-09 18:09 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing15-Feb-09 20:35
Golden Jing15-Feb-09 20:35 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Wendelius15-Feb-09 21:23
mentorWendelius15-Feb-09 21:23 
GeneralRe: how to create a query by using store procedure in SQL Server 2000 ? Pin
Golden Jing15-Feb-09 22:41
Golden Jing15-Feb-09 22:41 
QuestionAb Inito conundrums.... Pin
PoisonCreed14-Feb-09 15:04
PoisonCreed14-Feb-09 15:04 
AnswerRe: Ab Inito conundrums.... Pin
Ashfield15-Feb-09 8:16
Ashfield15-Feb-09 8:16 
GeneralRe: Ab Inito conundrums.... Pin
PoisonCreed15-Feb-09 12:48
PoisonCreed15-Feb-09 12:48 
GeneralRe: Ab Inito conundrums.... Pin
Ashfield15-Feb-09 20:57
Ashfield15-Feb-09 20:57 
QuestionSQL SERVER 2005 INSTALLATION Pin
Member 465028714-Feb-09 5:16
Member 465028714-Feb-09 5:16 
AnswerRe: SQL SERVER 2005 INSTALLATION Pin
Wendelius14-Feb-09 6:29
mentorWendelius14-Feb-09 6:29 
GeneralRe: SQL SERVER 2005 INSTALLATION Pin
Member 465028714-Feb-09 8:00
Member 465028714-Feb-09 8:00 
GeneralRe: SQL SERVER 2005 INSTALLATION Pin
Wendelius14-Feb-09 9:12
mentorWendelius14-Feb-09 9:12 

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.