Viewing 15 posts - 10,021 through 10,035 (of 18,926 total)
Here's the basic idea of the select you need :
SELECT dtLastSales.PartNum, dtLastSales.mxShipDate, inv.UnitPrice FROM invcdtl inv INNER JOIN
(Select PartNum, MAX(ShipDate) AS mxShipDate FROM dbo.Invcdtl GROUP BY PartNum) dtLastSales
on inv.PartNum =...
March 20, 2007 at 11:27 am
Oops, I meant
1.333 means =
1 hour 20 minutes
Also what do you want us to do?
Straight select?
Insert the data into a new table?
Insert in the main table +...
March 20, 2007 at 11:21 am
We still need the required results from that sample data.
>> Does 1.33 mean 1 minutes 33 seconds or 1 min 19.9999 seconds?
Just to confirm what you said :
0.37 should be...
March 20, 2007 at 10:22 am
Can you give us a starting point?
Can you show us some sample data and the required results after the insert statement has run?
March 19, 2007 at 2:35 pm
Ya that makes more sens. Thanx for the hint
.
March 18, 2007 at 6:13 am
I strongly suggest you use Sriram's version as it outperforms mine by a mile. I would also strongly suggest that you change...
March 18, 2007 at 5:32 am
What results did those 2 queries sent out?
March 18, 2007 at 5:28 am
Not sure. I'd check the database properties or the books online alter database. But I don't have any 2005 installed here so I can't check for you.
March 17, 2007 at 9:49 am
Check if the server and database collation settings are case sensitive. If they are you can change them back to case insensitive to completely solve the problem.
March 17, 2007 at 8:51 am
You forgot the 6th field in the sample data, but this will give you the right path to go down on :
USE SSC
GO
DECLARE @demo TABLE (id INT, f1 INT,...
March 16, 2007 at 7:44 pm
Let's just say that this opens up a whole new whelm of possibilities :
SELECT * FROM dbo.SysColumns C1 WHERE Colid IN (SELECT MIN(C2.Colid) FROM dbo.SysColumns C2 where C1.id =...
March 15, 2007 at 7:37 am
That's the way correlated subqueries work. This doesn't fail because this query has to be valid :
Select * from dbo.SysColumns C where exists (SELECT * from dbo.SysObjects O where...
March 15, 2007 at 6:49 am
Simple problem Jeff. Nobody is in your car and no one is using the remote starter so it will remain off untill any of those conditions change
March 14, 2007 at 7:28 pm
Viewing 15 posts - 10,021 through 10,035 (of 18,926 total)