Viewing 15 posts - 286 through 300 (of 1,923 total)
Lynn Pettis (4/3/2012)
ColdCoffee (4/3/2012)
Is startdate the Sunday/Monday of the week that your input date falls on and the EndDate would be exactly 7 days from...
April 3, 2012 at 1:41 pm
Can you define "StartDate" and "EndDate"?
Is startdate the Sunday/Monday of the week that your input date falls on and the EndDate would be exactly 7 days from that sunday/monday?
As lynn...
April 3, 2012 at 1:31 pm
Q1:
What if those characters are not present in a row? what would like it to be returned?
Q2:
Do you want to update your current columns that contains 'AiR_Fir' to just 'air_fir'...
April 3, 2012 at 1:23 pm
Is there a question here?
< 2 will produce only one month data; it will exclude the second month. You may want to use <= 2. And DATEDIFF is the function...
April 3, 2012 at 11:23 am
Hi sql2k8,
With 151 points and 699 visits, you sure know how to post the questions as per the guidelines.
Please have a look at the following article on how to post...
April 2, 2012 at 1:04 pm
mollaa (4/1/2012)
Now I want to to select columns from T2 where the corresponding column is NOT NULL in T1
I was 200% sure that this request would come!!!...
April 1, 2012 at 3:52 am
This of course can be broken by CONCAT_NULL_YIELDS_NULL setting. So care should be taken before executing this script.
March 31, 2012 at 3:21 pm
This?
IF OBJECT_ID('T1') IS NOT NULL
DROP TABLE T1
;
IF OBJECT_ID('T2') IS NOT NULL
DROP TABLE T2
;
CREATE TABLE T1
(
PK1 INT
,C1 INT
,C2 INT
...
March 31, 2012 at 2:59 pm
Will this do the cut?
; WITH CTE AS
(
SELECT Product
,[TransactionYYYYMM1]
,Ct = COUNT(*)
FROM #mytable
GROUP BY Product, TransactionYYYYMM1
UNION ALL
SELECT 'TOTAL' Product
, [TransactionYYYYMM1]
, Ct...
March 30, 2012 at 2:52 pm
This , may be??
DECLARE @Replacement VARCHAR(100)
SELECT @Replacement = 'E:\fsaATLAS\BostonUniversity\'
DECLARE @Table TABLE
(
FileFolder VARCHAR(200)
)
INSERT @Table
SELECT 'D:\fsaATLAS\YourUniversityName\SevisDownloads\somepdfname.n'
SELECT T.FileFolder
,NewLoc = REVERSE(LEFT(CrsApp.Rvrs, ...
March 30, 2012 at 12:40 pm
Can be done!
Will the string always follow this pattern:
drive:\rootfolder\firstfolder\secondfolder\filename.extension
??
March 30, 2012 at 11:02 am
mark hutchinson (3/29/2012)
@ColdCoffeeThat is why I used a Having clause
You are right; i did not notice that u are choosing both CustomerID and ProductCode in your sub-query.I thot you were...
March 29, 2012 at 10:18 pm
mark hutchinson (3/29/2012)
@jeffI was thinking about something that might look like this:
FROM
(Select Distinct CustomerID, ProductCode From #Purchase WHERE ProductCode In ('A', 'B')
) p1
This will...
March 29, 2012 at 8:50 pm
Jeff, is it possible to run the test on 10 Million row table, if you have time?
March 29, 2012 at 7:06 pm
dwain.c (3/29/2012)
I just wanted to clarify because it sounds like dwain.c might be a little confused at this point.
Actually after ColdCoffee's prior post, I was no longer confused. I...
March 29, 2012 at 6:34 pm
Viewing 15 posts - 286 through 300 (of 1,923 total)