Viewing 15 posts - 1,081 through 1,095 (of 1,825 total)
Try this free ebook - http://www.red-gate.com/specials/Grant.htm
If after reading that you dont know , its not worth knowing 🙂
January 25, 2010 at 9:01 am
+1 to you for working it out for yourself. 🙂
January 22, 2010 at 2:37 am
Try this, ive had to create a unique Id in the required order to get the 'previous' row
Drop table #Testtable
go
CREATE TABLE [#Testtable](
[TestTableId] integer identity,
[CustNo] [varchar](20) NOT NULL,
[ContractNo] [varchar](20) NOT NULL,
[RNo]...
January 22, 2010 at 2:35 am
Hi , I dont have access to a 2000 box to test but i think this should would
Select t1.* into #t1 from TestTable t1
join (Select CustNo,ContractNo,RNo,MAX(DateFrom) as MaxDate
...
January 22, 2010 at 1:40 am
Heres one method using PIVOT.
January 22, 2010 at 1:27 am
Something like this ?
with cteAccounts
as
(
Select AcctNo,Payment,Date,row_number() over (partition by AcctNo order by Date desc) as Rown
from Accounts
)
select * from cteAccounts
where...
January 21, 2010 at 8:01 am
Apologies Wrong link
http://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/
January 21, 2010 at 4:36 am
Try this....
http://www.sqlservercentral.com/articles/T-SQL/62867/
Please confirm which SQL Version you are running.
January 21, 2010 at 4:28 am
Duplicate thread
http://www.sqlservercentral.com/Forums/Topic850276-392-1.aspx
January 21, 2010 at 1:34 am
Shark Energy (1/11/2010)
January 20, 2010 at 7:09 am
So what does your statement look like now ?
January 20, 2010 at 3:55 am
This has the potential for fun.... 😉
January 20, 2010 at 1:47 am
Seriously, what do you expect from this forum ?
Without more detail on when this error occurs all that i can say is that you are inserting (possibly updating) data into...
January 20, 2010 at 1:45 am
Urgent or not, your error is on this line
SET @smaldate = select max(dat_Date) from tbl_Transaction where txt_statecode=@StateID and txt_DistrictCode=@DisID and dat_Date='3/31/2008'
The correct syntax is
select @smaldate = max(dat_Date) from tbl_Transaction...
January 20, 2010 at 1:40 am
Viewing 15 posts - 1,081 through 1,095 (of 1,825 total)