all groups > sql server programming > january 2005 > threads for saturday january 22
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
"GROUP BY" "Start-time to end-time" will cross the 7pm mark
Posted by \ at 1/22/2005 11:56:39 PM
I have an SQL table that contains records like:
> User-name Start-time End-time
> Bob 22-Jan-2005 9:26am 22-Jan-2005 3:15pm
> Gary 22-Jan-2005 7:45am 22-Jan-2005 2:25pm
> Joe 23-Jan-2005 3:16am 23-Jan-2005 1:11pm
> Fred ... more >>
Pros & Cons of uniqueidentifier as PK.
Posted by Lee Tudor at 1/22/2005 11:53:05 PM
Here are some pros and cons of using uniqueidentifier as a PK, do you think
that they justify using or losing it?
Pro
Inserts are evenly spread into the index (clustered or not) and therefore
the index requires less maintenance to remain optimally structured.
Pro
The client can generate ... more >>
Temp Tables
Posted by Sandy at 1/22/2005 11:49:01 PM
I am developing my first website that involves people adding or updating a
directory listing in a database. I'm using VB.Net and Sql Server 2000.
Is this type of situation normally handled with some sort of temp table that
is looked at by someone before the info is actually added to the da... more >>
Identity column: what happens when it runs out?
Posted by Adam Clauss at 1/22/2005 3:22:22 PM
I have a table containing an identity column (bigint) as its primary key.
The table will have very frequent insertions/deletions from it.
Many items will be added, but they aren't really expected to be there for
long. I can never expect that the table is empty, however.
So, eventually, th... more >>
FLOAT datatype weirdness
Posted by MSSQLServerDeveloper at 1/22/2005 11:21:02 AM
Hello - I have the following two sets of very simple SQL
--Example #1
DECLARE @BaseNum float
SELECT @BaseNum = RAND(
(DATEPART(mm, GETDATE()) * 100000 )
+ (DATEPART(ss, GETDATE()) * 1000 )
+ DATEPART(ms, GETDATE()) )
print @BaseNum
go
--Example #2
SELECT RAND(
(DATEPA... more >>
Detecting the INSERT format for DATE database fields?
Posted by tomjerk NO[at]SPAM hotmail.com at 1/22/2005 9:37:04 AM
Assume I got a database resp. table defintion with a DATE field. How do I find out in which format the
field should be filled in an INSERT SQL statement?
Sometimes when I enter e.g.
INSERT INTO .... VALUES (....., '2005-01-25',.....);
or
INSERT INTO .... VALUES (....., '2005-01-25-13.14.15.... more >>
Row Count using Group By and Having
Posted by Kiran at 1/22/2005 12:49:24 AM
Hi,
I have a query that uses Group By and Having to retrieve records.
The query is working fine and I want to get the Row Count of that Query.
How will I do that.
Thanks
Kiran
... more >>
Cursors in functions
Posted by Anett at 1/22/2005 12:26:31 AM
Hi
When I want to loop through a result in sp I use Cursor
and Fetch. But that does not work in functions (atleast
not for me). Anyone that knows what to use instead??
/Anett... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|