Viewing 15 posts - 7,861 through 7,875 (of 15,381 total)
grovelli-262555 (6/20/2013)
I'm well versed in Access but know very little T-SQL. What does "ROW_NUMBER() over(partition by" do?
Here is entry from BOL: http://msdn.microsoft.com/en-us/library/ms186734.aspx
June 21, 2013 at 8:55 am
You will have to group by ALL columns not part of an aggregate. You did not include text_type_name in your group by.
Try this.
GROUP BY sam_typ_tst_typ.SAMPLE_TYPE_NUM, sample_type_name, method_name, method_descr_text, test_type_name
June 20, 2013 at 3:29 pm
realvilla (6/20/2013)
June 20, 2013 at 3:02 pm
Here is a simple example to demonstrate.
create table #Left
(
LeftID int identity,
MyValue varchar(10)
)
create table #Right
(
RightID int identity,
MyValue varchar(10)
)
insert #Left
select 'no match' union all
select 'has match'
insert #Right
select 'has match' union all
select 'has...
June 20, 2013 at 1:54 pm
venkyzrocks (6/20/2013)
Please review the code below and I have pasted the DDL for it. The left outer returns more rows than the that in the left row itself and...
June 20, 2013 at 1:51 pm
jhager (6/20/2013)
A developer created several tables with PKs but no FKs. I used the Database Diagram feature to "map out" where the FKs should be, but when I saved the...
June 20, 2013 at 1:10 pm
Try this:
AND isnull(table.DischargeDate, dateadd(day, 1, getdate()) >= @enddate
Keep in mind that if the value of @enddate is greater than the current date plus 1 this will still evaluate to false.
With...
June 20, 2013 at 12:46 pm
ali.m.habib (6/20/2013)
Sean Lange (6/20/2013)
ali.m.habib (6/20/2013)
Sean Lange (6/20/2013)
ali.m.habib (6/20/2013)
create proc calcaulateavaerage
@studentid int
as
begin
-- some complecated business and query
return @result -- single decimale value value
end
and then...
June 20, 2013 at 12:22 pm
miker 8667 (6/20/2013)
Thanks a lot. I did not know about that possibility.About the 257 Columns, question an SAP ERP system!
Thanks again for your help.
Gotta love those ugly things. Glad...
June 20, 2013 at 12:19 pm
sqlsean (6/20/2013)
thank you sean, it worked.
You're welcome sqlme. 😀
Again my apologies for not reading the whole issue previously.
June 20, 2013 at 12:17 pm
DKG-967908 (6/20/2013)
Is it possible to stop SQL Injection Attack at SQL server level?
I have gone through some posts and articles that suggest all the checks at application level so...
June 20, 2013 at 12:15 pm
ali.m.habib (6/20/2013)
Sean Lange (6/20/2013)
ali.m.habib (6/20/2013)
create proc calcaulateavaerage
@studentid int
as
begin
-- some complecated business and query
return @result -- single decimale value value
end
and then I want to...
June 20, 2013 at 12:12 pm
miker 8667 (6/20/2013)
There are 257 Columns in the table and there are 3 or 4 columns with a ReturnCharachter.
257 columns and a select *??? Unless this is a DW that...
June 20, 2013 at 12:10 pm
ali.m.habib (6/20/2013)
create proc calcaulateavaerage
@studentid int
as
begin
-- some complecated business and query
return @result -- single decimale value value
end
and then I want to
create proc the...
June 20, 2013 at 12:03 pm
nicklibee (6/20/2013)
here is the answer!!!!!!!!,now run
Glad you found a solution.
June 20, 2013 at 10:51 am
Viewing 15 posts - 7,861 through 7,875 (of 15,381 total)