Viewing 15 posts - 6,781 through 6,795 (of 10,144 total)
Chooes the column you want, min or max (or average, if you wish):
DROP TABLE #Sample
CREATE TABLE #Sample (LOG_NUMBER CHAR(3), EVENT_TIME DATETIME)
INSERT INTO #Sample (LOG_NUMBER, EVENT_TIME)
SELECT '002','2011-08-07 20:29:05.787' UNION ALL
SELECT '002','2011-08-07...
August 9, 2011 at 6:19 am
Mad-Dog (8/9/2011)
this syntax give me the right results but can it be change some how to start with a select first and not with "with cte as"?THX
As John says, Yes...
August 9, 2011 at 5:09 am
How about a little sample data, say 10 rows split across two day boundaries?
August 9, 2011 at 2:40 am
Mad-Dog (8/9/2011)
Hi,i've a table with 2 columns one log_event_num (int) and one log_event_time (datetime).
how i can write a select that will show me every day only one log_event_num per event?
THX
Do...
August 9, 2011 at 2:29 am
uche_ezeribe (8/9/2011)
what i get now is
UserName FirstName LastName VacID vacancy Degree
-----------------------------------------------------------
joyr Joy ...
August 9, 2011 at 2:24 am
This will show you a way to do it.
-- test table
DROP TABLE #ContainerMemberDefinitions
CREATE TABLE #ContainerMemberDefinitions (ContainerID INT, Expression VARCHAR(MAX))
INSERT INTO #ContainerMemberDefinitions (ContainerID, Expression)
SELECT 15, '#Nodes.Caption LIKE ''%adsl%''' UNION ALL
SELECT 15,...
August 8, 2011 at 9:53 am
How do you know the two rows from the first query are ORred and not ANDed?
Do you have any restrictions over how you execute the SQL i.e. can you create...
August 8, 2011 at 8:08 am
Of course. Can you post the parts of the statement you wish to create, with a little more explanation?
August 8, 2011 at 7:09 am
Daniel Bowlin (8/8/2011)
Ready. Set. Commence Week.
Same time every day Dan. Have you had your shredded wheat?
August 8, 2011 at 6:59 am
Do you mean, construct the WHERE clause programatically client-side?
August 8, 2011 at 6:52 am
mickdunde (8/8/2011)
I've looking for a way how to use result from a select as a where clause to another statement. As an example I have two tables, tblNodes and...
August 8, 2011 at 6:15 am
hxkresl (8/5/2011)
August 8, 2011 at 4:16 am
Cities and states are different entities with different properties. Model them as parent and child tables.
This problem is only the beginning, it will get much worse if you continue...
August 5, 2011 at 9:47 am
Tom.Thomson (8/4/2011)
crookj (8/4/2011)
proboscishaustellum
Malaria
August 5, 2011 at 2:19 am
hxkresl (8/4/2011)
...merge mogknicker.mog.EnligtenmentSchemaMap as T
...
What?!! No, no. Classy mogs go commando.
August 5, 2011 at 2:12 am
Viewing 15 posts - 6,781 through 6,795 (of 10,144 total)