Viewing 15 posts - 1,111 through 1,125 (of 1,346 total)
Distance is a derived column, and you cannot use it in the where clause, It is okay in the order by though.
Your code has some parsing error, but the example...
August 8, 2005 at 4:47 pm
Okay,
So you want to aggregate by the stock id.
but how do you want to calculate by the minimum amount which is a subscriber level attribute.
the previous query returned
1 34000
1...
August 8, 2005 at 4:38 pm
I don't know your table definition.
But do you have a primary key on the table?
if so
UPDATE table_info
SET q_active = '1'
WHERE table_info.pkfield in (select top 10 pkField from table_info...
August 8, 2005 at 4:24 pm
In your example, how do you figure the result should b
1 5400 ?
in your query you should modify it to be
SELECT #tblTempRetros.Stock, #tblTempSubscriber.MinimumValue, sum(#tblTempRetros.Amount) AS iMin
FROM #tblTempRetros INNER JOIN
...
August 8, 2005 at 2:15 pm
I would implement some method of invalidating the question so it is not used on future tests, and is still visible when viewing older tests. and questions are only added...
August 8, 2005 at 1:55 pm
Another poster supplied the following script.
Sorry cant find the thread to give credit.
CREATE FUNCTION RemoveDecimalsWithoutRounding
( @InputValue Float
, @Decimals Int
)
-- Get the rounded value
DECLARE @ReturnValue Float;
SET @ReturnValue = Round(@InputValue, @Decimals);
-- If the value...
August 8, 2005 at 11:22 am
You need to join once for each column using the same table.
SELECT table1.ID, table1.Master_ID, table1.Firm_ID, table1.Message_Headline, table1.Message_Body,
table1.Template, table1.Article1_ID, table1.Article2_ID, table1.Article3_ID,
table1.Article4_ID, table1.Article5_ID, table1.Article6_ID,
art1.title, art2.title, art3.title,...
August 8, 2005 at 10:46 am
DBCC SHRINKFILE
( { file_name | file_id }
{ [ , target_size ]
| [ , { EMPTYFILE | NOTRUNCATE | TRUNCATEONLY } ]
}
)
file_name
Is the logical name of...
August 4, 2005 at 1:42 pm
There are plenty of pieces and parts in the scripts section of this site, but what you are looking for is not there in a single script.
August 4, 2005 at 1:34 pm
Sure you could do it this way, but if xml doc does exceed 8000 characters, then you are in trouble, because you cannot declare @variable text within a stored procedure.
Server:...
August 4, 2005 at 1:23 pm
Declare @t Table is a temporary object, and if declared within the Calling procedure, it cannot be passed to a nested procedure.
create procedure TestpasstableParamChild @TitleType varchar(50), @TTable table (pk int...
August 4, 2005 at 1:21 pm
I do not believe it will effect the performance where a user would see it.
Recovery model will only pertain to how much information the t-Log holds, and helps you with...
August 4, 2005 at 12:59 pm
What problems are you having exactly?
How are you trying to connect to sql server?
Do you have the proper credentials created in sql server?
In sql server you need to grant a...
August 4, 2005 at 11:03 am
Not sure, perhaps your having compatibility issues with the version of excel, and version of the oledb you declared in the opendata source call.
Post your code.
What version of sql server,...
August 4, 2005 at 10:50 am
Viewing 15 posts - 1,111 through 1,125 (of 1,346 total)