Viewing 15 posts - 16 through 30 (of 87 total)
Hey kalit.sikka
Tnx for your follow up post on ur resolution.
January 12, 2011 at 3:16 am
please post insert scripts in future.
try this
select a.TeamID, a.OD OrderDate, b.value
from
(select TeamID, max(OrderDate) OD
from yourtable
group by TeamID) a
join yourtable b
on a.TeamID=b.TeamID
and a.OrderDate=b.OD
January 12, 2011 at 3:04 am
January 12, 2011 at 2:58 am
Here you go...
Not the most effecient solution, but it will do
set dateformat ymd
declare @start datetime
declare @increment float
declare @end datetime
set @start=(select cast('2000/01/01' as datetime))
set @end =(select cast('2031/01/01' as datetime))
if exists(select...
January 12, 2011 at 2:10 am
create the ssis package and schedule it from sql server agent
December 2, 2010 at 3:28 am
Howdy EML,
Did the solution provide resolution?
(sound like a rapper :-))
November 14, 2010 at 10:16 pm
Chris is right
replace
convert(char(10), OrderDate, 120)
with
OrderDate
from the solution
November 10, 2010 at 7:34 am
the Code i was asking for is the create statements and insert dummy data, created below
this should resolve your problem. let me know how it goes
---Create Table
create table test( smalldate...
November 10, 2010 at 7:29 am
El Gato (11/10/2010)
SELECT *
FROM dbo.ZNodeOrder NO
INNER JOIN dbo.ZNodeOrderLineItem NOLI
ON...
November 10, 2010 at 5:39 am
I would look towards partitioning. Although the end user will see 1 table, the physical file groups will be stored on different drives for speeds of access.
Possibly create non-clustered indexes...
November 10, 2010 at 3:55 am
Edward-445599 (11/10/2010)
I am trying to create a partition on an existing table and I am struggling
The only way I can think of doing this is to create a blank...
November 10, 2010 at 3:50 am
Please paste some DDL code and sample data.
In theory, I would have the working day column as a bit data type. if 0 non working day, if 1 working day.
on...
November 10, 2010 at 3:43 am
please check your scripts. you got 4 columns and inserting 3 values.
November 4, 2010 at 7:51 am
Not too sure on the p-sql
but heres t-sql
declare @p int
begin
if @p is null
select * from dataset
else
select * from dataset where @p=' values'
end
November 4, 2010 at 12:51 am
Viewing 15 posts - 16 through 30 (of 87 total)