Viewing 15 posts - 46 through 60 (of 102 total)
catchkkarthi (2/27/2011)
...how to find the difference between two times..ie logout and login...is there any way to find in minutes...
Like so
DATEDIFF(MINUTE, '2011-02-27 06:54:39.780', '2011-02-28 06:54:39.780')
February 27, 2011 at 9:55 pm
catchkkarthi (2/26/2011)
i have an error while selecting the data for a char
i have a table with projectid -datetime,logintime-datetime,logouttime-datetime,workdate-varchar in dd/mm/yyyy format date.
when i used to update the table after the...
February 27, 2011 at 12:07 am
SQLkiwi (2/26/2011)
diamondgm (2/26/2011)
I was trying to indicate that the order by clause seems inconsequential.
Yes but calling NEWID() is not for free, and neither is sorting by a uniqueidentifier.
Thanks for answering...
February 26, 2011 at 11:40 pm
SQLkiwi (2/26/2011)
diamondgm (2/26/2011)
SELECT RANK() OVER (PARTITION BY empno ORDER BY NEWID())...
February 26, 2011 at 11:32 pm
SQLkiwi (2/26/2011)
diamondgm (2/26/2011)
By playing devils advocate, could it not easily be argued that RDBMS is all about arrays? Sure we don't call them...
February 26, 2011 at 11:25 pm
LutzM (2/26/2011)
Since SQL doesn't have arrays, this section most probably is about a frontend dev.
In case your tutor is teaching you that arrays are part...
February 26, 2011 at 11:13 pm
daveriya (2/25/2011)
i have tried this query to remove duplicate values.
but getting error like 'incorrect syntax near keyword where"
select *
2 from
3 (select d.*
4...
February 26, 2011 at 12:00 am
I'm not aware of a name for the concept.
An example will be: table has field named RowStatus of type bit default to null.
While busy with the row, update RowStatus =...
February 22, 2011 at 8:26 pm
Steve,
Not to be nasty, but I have no cooking clue what the SQL you posted is attempting to accomplish.
Let me try and break your process down for you...
1. Mark all...
February 22, 2011 at 11:54 am
Hi dcase,
Without seeing the DDL with some sample data - I'm not sure what I'm posting will help you.
If this concept doesn't solve your problem, please post DDL and some...
February 21, 2011 at 12:02 pm
We'd be able to help you a lot more if you posted the DDL and your code thus far.
English can be a little ambiguous 😀
February 21, 2011 at 2:07 am
It does indeed seem like bitwise operation; I believe & is the binary AND operation.
Though it also seems that the logic is flawed as the same result would occur whether...
February 20, 2011 at 11:34 pm
Haha, yeah - I thought it would be scrutanized 😛
February 20, 2011 at 11:25 pm
Hi,
IMO, the way you are thinking of using SQL for your logic is a little off.
Consider 2 insert statements:
INSERT INTO payments (col1, coln...)
select col1, coln... from tmp_payments where personid in...
February 20, 2011 at 12:03 am
Viewing 15 posts - 46 through 60 (of 102 total)