Viewing 15 posts - 5,176 through 5,190 (of 6,486 total)
drop the C2 in the ORDER by inside DENSE_RANK(), i.e.
SELECT dense_rank() OVER (
ORDER BY c1) AS [Nu], c1, c2
...
January 17, 2008 at 11:38 am
That's what GSquared was getting at. Since you want to pad, you want all of the results to be a certain width, even if the non-padded has a variable...
January 17, 2008 at 11:33 am
Current process assumes that #emplist table provides the start and end dates specific to each person. Your permanent table would need to continue to provide that, or you can...
January 17, 2008 at 11:21 am
I'm with Lynn - add column, run update process, drop old column.
January 17, 2008 at 10:55 am
Mike DiRenzo (1/17/2008)
Without sampling a large population of your nvarchar date data, I will assume the example you gave will be sufficient.
Here I simulate your scenario.
declare @TestDateValue nvarchar(50)
set @TestDateValue...
January 17, 2008 at 10:53 am
The only thing making the sequence go in the same direction or opposite from the date is this line:
create unique clustered index uc_empshifts on #empshifts(empid,shiftdate DESC)
By making the index DESCending,...
January 17, 2008 at 10:48 am
Not a genius - just another hammerer who's been playing with the hammer a little while longer:).
Glad it worked out for ya!
January 17, 2008 at 10:24 am
oops - that's what I get for editing on the fly:
if object_ID('tempdb..#emplist','U')<>0
Drop Table #emplist
if object_ID('tempdb..#empshifts','U')<>0
Drop Table #empshifts
go
declare @g datetime
select @g=getdate()
CREATE table #empList (
[empID] int NOT NULL,
[ShiftType] ...
January 17, 2008 at 10:15 am
Sure - go into the report you want to parameterize, and click on the data view.
You should have a SQL statement that looks something like:
select * from mytable
Modify the query...
January 17, 2008 at 9:10 am
Put the sub reports in a sub-project, and publish the sub-reports to another folder than the main reports. You can then hide the entire sub-report folder.
You sub-reports references would...
January 17, 2008 at 8:13 am
Sounds like Thanksgiving at my house: my faimly is entirely composed of Millers/Smiths and Joneses.
Like my wife would say - "it like walking into a witness relocation program...
January 17, 2008 at 7:30 am
Damon Wilson (1/17/2008)
Brandie,You are quite welcome. It has been a while since I read a book for relaxation, so why not read something written by a fellow DBA?
Hard enough...
January 17, 2008 at 7:13 am
So - anyone up for a good round of sine/cosine/tangent/arctengent?
Remember: SOHCAHTOA...
Ahhh - high-school math....Nope - I still don't remember most of it@
January 17, 2008 at 7:11 am
That's HTML for ya:)...You could spend years formatting that and HTML will kill it in no time flat...
January 17, 2008 at 7:06 am
You just pull a fast one there - the Saturday rule wasn't there...
Reverse the date assignments as well as well the clustered index, and add the saurday rule
if object_ID('tempdb..#emplist','U')<>0
Drop...
January 17, 2008 at 7:02 am
Viewing 15 posts - 5,176 through 5,190 (of 6,486 total)