Viewing 15 posts - 166 through 180 (of 1,344 total)
Remove the < 6 from the where clause,
Then use the case statement to create the new derived columns you need.
Try it and get as far as you can, then post...
October 4, 2012 at 10:21 am
Something like
SELECT
temp.cStudentId,
temp.iSchoolCode,
temp.cGradeCode,
COUNT(1) AS iMemb,
SUM(CASE WHEN temp.cAbsenceCode IN ('E','U') THEN 1 ELSE 0 END) AS Absences
FROM (
SELECT
ROW_NUMBER() OVER(PARTITION BY x.cStudentId ORDER BY dtEnrollmentDate Desc ) AS DaySeq,
x.*
FROM #x1 x)...
October 3, 2012 at 3:44 pm
When the Variable is an int16 and I try
Dts.Variables["Variable"].Value = 1;
I get the same error.
When in the SSIS Script task Editor hover your cursor over the "1" and it...
October 3, 2012 at 3:20 pm
Can you please elaborate on your table schema.
Present some sample data and what you want the results to look like.
October 2, 2012 at 12:39 pm
Doesn't sound like your creating a report. Sounds more like a data viewer for 650 different tables.
They have a tool for that, its called Sql Server Management Studio. :-P.
ha, all...
October 1, 2012 at 4:45 pm
October 1, 2012 at 3:44 pm
Using the View, and not dynamic SQL.
I'm pretty sure you can do this in a procedure too, you just have to alias the columns in the select so they are...
October 1, 2012 at 3:27 pm
sql1411 (10/1/2012)
No. The customerID is different for each customer. Below is the revised INSERT statement
GO
INSERT INTO dbo.CustomerPurchase ( PurchaseDate, CustomerID, CustomerName, PurchaseDetails)
SELECT '2012-06-01 00:00:00.000',1001,'Wilson Menthis','Purchased Item 6AB2'
...
October 1, 2012 at 3:21 pm
Your request doesnt quite make sense, your looking at CMC_BLCO_COMM_ITEM.BLEI_CK to see if its NULL, but your create table statement declares "NOT NULL" So it cannot be null, why check...
October 1, 2012 at 3:13 pm
Is customer ID Supposed to be the same across all customers?
CREATE TABLE #CustomerPurchase(
[PurchaseDate] [datetime] NOT NULL,
[CustomerID] [int] NOT NULL,
[CustomerName] [varchar](25) NULL,
[PurchaseDetails][varchar](500)NULL
) ON [PRIMARY]
GO
--Insert some sample data into the sample table
GO
INSERT...
October 1, 2012 at 2:56 pm
Cross join the table or join it to itself.
Please post DDL statements, and the query you tried.
October 1, 2012 at 2:51 pm
Drop the unique key/index.
Add the new column.
Create a new Unique Index on the now 5 columns.
October 1, 2012 at 2:48 pm
Discusses Issues with money.
There are rounding issues with money and is probably not the best datatype to use in your scenario.
September 27, 2012 at 11:13 am
What your requesting is kind of unusual, and I can't think of an easy way to display 15 rows.
Would it be acceptable if you set the option on your group...
November 9, 2011 at 8:32 am
Viewing 15 posts - 166 through 180 (of 1,344 total)