Viewing 15 posts - 4,546 through 4,560 (of 8,761 total)
Just remove the arbitrary opening parenthesis
😎
CREATE VIEW abcd AS
SELECT
a.description,
a.corporate_tag,
a.corporate ,
a.banner_tag,
a.banner,
a.region_tag,
a.region,
a.division_tag,
a.division,
a.hierarchy_level,
a.load_id,
a.process_name,
a.loop_id,
( case WHEN b.corporate_tag IS NULL or b.banner_tag IS NULL THEN 'I' Else 'U' END )
/* or ( case...
September 14, 2015 at 3:25 pm
SQLPain (9/14/2015)
Thanks Errikur,I only want results from past 21 days, I tried this also:
AppDetails.DateDetailDisposed = DATEADD(DAY,-21,getdate())
Still gives me a blank result set
Missed the 21 days:-P
😎
AppDetails.DateDetailDisposed BETWEEN CONVERT(DATE,DATEADD(DAY,-25,getdate()),0) AND CONVERT(DATE,getdate(),0)
Note, convert...
September 14, 2015 at 3:17 pm
Slightly different approach from JLS's
😎
USE tempdb;
GO
SET NOCOUNT ON;
GO
DECLARE @SAMPLE_DATA TABLE
(
column1 NUMERIC(12,2) NOT NULL
,column2 NUMERIC(12,2) NOT NULL
);
INSERT INTO @SAMPLE_DATA(column1,column2)
VALUES ...
September 14, 2015 at 3:12 pm
SQLPain (9/14/2015)
Thanks Scott,How do I fix this code:
AppDetails.DateDetailDisposed BETWEEN getdate() - 25 AND getdate() - 20
I only need getdate() -21, but that's giving me blank output
Use DATEADD
😎
AppDetails.DateDetailDisposed BETWEEN DATEADD(DAY,-25,getdate())...
September 14, 2015 at 2:59 pm
pietlinden (9/14/2015)
September 14, 2015 at 2:33 pm
pietlinden (9/14/2015)
I just find...
September 14, 2015 at 1:50 pm
Wayne West (9/14/2015)
Matt Miller (#4) (9/14/2015)
Eirikur Eiriksson (9/14/2015)
Jeff Moden (9/14/2015)
Eirikur Eiriksson (9/13/2015)
September 14, 2015 at 1:44 pm
nightowl23 (9/14/2015)
September 14, 2015 at 1:09 pm
christine 23290 (9/14/2015)
September 14, 2015 at 1:06 pm
zzzzcarl (9/14/2015)
I thing the problem is solved. Now I have had 2 succesfully start of the...
September 14, 2015 at 11:53 am
ScottPletcher (9/14/2015)
Check the compatibility level of the db. Compatibility needs to be at least 90 for ROW_NUMBER() to work.
No, the compatibility level does not affect newer functionality.
😎
This will run...
September 14, 2015 at 11:45 am
Animal Magic (9/14/2015)
I was hoping someone could help me out with an issue which has been frustrating me this afternoon. All i am trying to do is pass...
September 14, 2015 at 10:42 am
DonlSimpson (9/14/2015)
Ed Wagner (9/14/2015)
BL0B_EATER (9/14/2015)
Eirikur Eiriksson (9/14/2015)
Ed Wagner (9/14/2015)
Luis Cazares (9/14/2015)
whereisSQL? (9/14/2015)
anthony.green (9/14/2015)
Ed Wagner (9/14/2015)
Stuart Davies (9/14/2015)
Ed Wagner (9/14/2015)
anthony.green (9/14/2015)
snickersCandy
Girl
Boy
George
Jungle
Book
Necessities
Preriquisites
prior
Last
First
Leader
September 14, 2015 at 10:10 am
Ed Wagner (9/14/2015)
Luis Cazares (9/14/2015)
whereisSQL? (9/14/2015)
anthony.green (9/14/2015)
Ed Wagner (9/14/2015)
Stuart Davies (9/14/2015)
Ed Wagner (9/14/2015)
anthony.green (9/14/2015)
snickersCandy
Girl
Boy
George
Jungle
Book
Necessities
Preriquisites
September 14, 2015 at 8:41 am
Jeff Moden (9/14/2015)
Eirikur Eiriksson (9/13/2015)
😎
Jeff Moden (9/12/2015)
September 14, 2015 at 12:54 am
Viewing 15 posts - 4,546 through 4,560 (of 8,761 total)