Viewing 15 posts - 256 through 270 (of 395 total)
This should do what you want:
--I have a question which is probably really basic but can't work it out for the life of me so i thought i'll ask for...
September 24, 2012 at 7:46 am
I don't think the OP will notice because he hasn't logged in since 2009....
September 24, 2012 at 7:30 am
How about this?
--========= TEST DATA =============
declare @a table ([User] int, [Year] Char(4), Status1 Char(4), Status2 Char(4), Status3 Char(4));
insert @a values ( 1, 2011, 'Pass', 'Fail', 'Fail' );
insert @a values (...
September 24, 2012 at 7:20 am
This is quite similar to the other one - the main change is the section for allocating sequences to the ground- & air- turnbacks.
Again you will need to add/delete columns...
September 24, 2012 at 5:53 am
Not sure why you've got some rows with Common=0 & not others..
But how about this?
--==== TEST DATA ======
if object_id('tempdb..#temp') is not null
drop table #temp;
create table #temp
(
Client_id int,
id int,
value int
);
insert #temp...
September 20, 2012 at 6:09 am
ChrisM@Work (9/19/2012)
September 20, 2012 at 3:00 am
Can you give an example of what you're thinking of?
September 19, 2012 at 10:24 am
This should do it - You'll need to add extra order dates as required.
--======= TEST DATA ==========
if object_id('tempdb..#ORDERS') is not null
drop table #ORDERS;
create table #ORDERS
(
UserID int,
OrderDate datetime
);
insert into #ORDERS values...
September 19, 2012 at 3:27 am
It's not something as simple as...
SELECT *
INTO dbo.new_table_name
FROM dbo.existing_table
... is it?
September 18, 2012 at 10:55 am
This does the job. I've included all code as I've added an extra row & corrected a time.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
--========= DROP TABLES IF THEY EXIST...
September 18, 2012 at 3:52 am
September 18, 2012 at 2:18 am
--====== TEST DATA SET-UP =================
if object_id('dbo.pvt') is not null
drop table dbo.pvt;
create table dbo.pvt
(
reckey varchar(10),
amt1 decimal(8,2),
amt2 decimal(8,2),
amt3 decimal(8,2),
amt4 decimal(8,2),
amt5 decimal(8,2)
);
insert dbo.pvt...
September 17, 2012 at 10:00 am
Hi
Something to bear in mind:
I used an inner join from dbo.MSP_EpmProject_UserView to [MSPCFPRJ_Business Owner_AssociationView] because that's what's in the code above. If [MSPCFPRJ_Business Owner_AssociationView] hasn't got a match for...
September 17, 2012 at 8:27 am
Is this what you want?
SELECT p.ProjectUID, p.Project_Status,
p.ProjectName AS [Project Name], p.ProjectModifiedDate AS [Last Modified],
...
September 17, 2012 at 5:53 am
Viewing 15 posts - 256 through 270 (of 395 total)