Viewing 15 posts - 1 through 15 (of 17 total)
Sean Lange (9/9/2011)
ash0550 (9/9/2011)
Say it contains 3 rows name,age and gender
I want to retrieve name and gender through age.
Instead of using Select...
September 9, 2011 at 9:30 am
Lowell (6/22/2011)
the FIRST function is an access function, and doesn't have a true equivilent in SQL server...the best you can do is TOP 1...ORDER BY
Thanks it worked
June 22, 2011 at 10:00 am
Jeremy-475548 (6/21/2011)
Declare @number int, @acc int
select @number = 219, @acc = 0
while 1=1
Begin
set @acc = @acc + @number % 10 ; set @number...
June 21, 2011 at 11:01 am
Steve Jones - SSC Editor (6/21/2011)
Out of curiosity, why do you need to do this?
Its dam easy when u do that in Java or C. But I dont even get...
June 21, 2011 at 10:35 am
oops thats a bit stupid one. I didnt check the brackets properly.
Actually I am trying to design a query that would allocate the number of hours per month based on...
June 17, 2011 at 1:10 pm
Could you tell me where did you do that multiplication I mean the Query
June 17, 2011 at 12:55 pm
opc.three (6/16/2011)
ash0550 (6/16/2011)
Nope it is not workingAnyways thanks
It may not be "working" because only you can see your screen. Please provide sample DDL and DML as well as your expected...
June 16, 2011 at 3:57 pm
ColdCoffee (6/16/2011)
ash0550 (6/16/2011)
Say the number of ID below 100 are 67 then in the result 67 should be displayedu want all the 67 rows to have the row count value?
As...
June 16, 2011 at 3:55 pm
Ninja's_RGR'us (6/16/2011)
ash0550 (6/16/2011)
case when BillOfMaterialsID <= 100 then 'Cheap'
When BillofMaterialsID between 101 and 500 then 'Medium'
When BillofMaterialsID between 501 and 1000 then 'HIGH'
When BillofMaterialsID between 1001...
June 16, 2011 at 3:48 pm
select BillOfMaterialsID,
case when BillOfMaterialsID <= 100 then 'Cheap'
When BillofMaterialsID between 101 and 500 then 'Medium'
When BillofMaterialsID between 501 and 1000 then 'HIGH'
When BillofMaterialsID between 1001 and 3000...
June 16, 2011 at 3:34 pm
oh thanks for that.
I got it too before I specified a comma so it was not showing up
Anyways thanks again
June 14, 2011 at 1:44 pm
GilaMonster (6/9/2011)
Please don't post in all caps. It's the online equivalent of shouting at people.
SELECT TOP (10) <column list>
FROM <Some tables>
ORDER BY <column that defines the required ordering> DESC
Thanks for...
June 9, 2011 at 3:44 pm
wagnerbianchijr (6/9/2011)
GO
=> http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=47718%5B/quote%5D
yup thannks
it worked
June 9, 2011 at 11:18 am
Viewing 15 posts - 1 through 15 (of 17 total)