Viewing 15 posts - 151 through 165 (of 530 total)
Still don't see the problem with the quotes (well, depending on your environment).
In Visual Basic you would do something like :
Dim oCmd as new ADODB.Command
Dim oParam...
August 22, 2003 at 1:19 am
Normally, this should not be a problem if you can execute stored procedures from the front-end you are using.
If you pass in the SQL string as a parameter, SQL Server...
August 21, 2003 at 9:56 am
I do believe it should not be necessary to convert to a number to do a sort. String sorting should work fine, except when you are having troubles with leading...
August 21, 2003 at 9:52 am
From BOL (for SQL2K)...
quote:
RemarksA view can reference a maximum of 1,024 columns.
So that...
August 21, 2003 at 9:27 am
Agree with Mark.
This is most probably an issue with your data itself. Check if there are no duplicates in the linked tables somewhere.
To easily find those, you can execute the...
August 21, 2003 at 5:21 am
Other solution
SELECT C.*, O.NrOfRecords
FROM Customers C
LEFT OUTER JOIN
(SELECT CustomerID,
...
August 19, 2003 at 8:56 am
Stupid me.
You will have to add a group by to the first 'table' in the FROM like so
...
FROM (SELECT CustomerID FROM Orders GROUP BY CustomerID) M
...
August 19, 2003 at 8:50 am
I came up with this solution...
--Temp table to hold the criteria
CREATE TABLE #NrPct
(NrOfTests int,
Pct int)
--Insert the criteria in the table
INSERT INTO #NrPct (NrOfTests,Pct)
...
August 19, 2003 at 6:00 am
Just read your post more carefully...
quote:
The nested Select dont work because the number of test and the percent can be any...
August 19, 2003 at 5:56 am
I guess you are looking for a AND in the query.
Try this
SELECT Student
FROM TableA M
WHERE EXISTS (SELECT 1 FROM TableA S1
...
August 19, 2003 at 5:37 am
If your data contains spaces, they will be reproduced in the file.
Otherwise, I don't see any problem with your approach.
August 18, 2003 at 9:31 am
While you are testing for performance, try this. Wonder if it's better than CASE and the subqueries ...
SELECT M.customerID,
IsNull(T96.NumOrders,...
August 18, 2003 at 9:26 am
And add the date to that solution to yield
SELECT item_no, date, sum(qty)
FROM table
GROUP BY item_no, date
August 18, 2003 at 7:20 am
A bit off-topic, but this kind of thing is more of a representation issue that is best solved using the client application. I know this is fairly easy done in...
August 18, 2003 at 3:04 am
Viewing 15 posts - 151 through 165 (of 530 total)