Viewing 15 posts - 136 through 150 (of 381 total)
The problem with this is that you have min(column1) and group by Column1. Think about it. This query is identical to (Select column1 from table1 group by Column1).
Try
SELECT Column1, column2
from...
March 28, 2007 at 8:13 am
This is fairly easy to write from a table. It is hard to describe in abstract.
I usually have to use a subquery embedded in a subquery that identifies uniquely the first...
March 27, 2007 at 5:08 pm
If you had a table that had all of the keys in it, you could iterate through that table, delete all of the records based on that key, then delete...
March 21, 2007 at 7:03 pm
Try
UPDATE clean SET branchid = branches.branchid
FROM clean inner join branches on clean.ppi = branches.ppi
March 14, 2007 at 10:37 am
There is too much detail to weed out. Let's say I have an incident table with an action.
create table incident (incidentid int)
create table action (actionid int identity(1,1) , incidentid int,...
March 8, 2007 at 3:51 pm
goPackage.SaveToSQLServer "(local)",,, DTSSQLStgFlag_UseTrustedConnection
March 8, 2007 at 11:32 am
select count(*) from
table1 inner join table2
on table1.name = table2.name
where table2.job = 'driver'
March 8, 2007 at 11:26 am
Set nocount on
declare @results varchar(8000)
select @results = isnull(@results + ',', '') + inventoryname from inventory
inner JOIN InventoryUsage
on Inventory.inventoryID = InventoryUsage.inventoryID
and Inventory.InventoryVersion = InventoryUsage.InventoryVersion
inner JOIN inventorysale
on inventorysale.InventoryUsageID = InventoryUsage.InventoryUsageID
and InventorySale.InventoryUsageVersion =...
March 8, 2007 at 11:24 am
You absolutely have to comment out or delete the following line:
goPackage.Execute
This is what executes the package and you don't want this to apply.
March 8, 2007 at 10:05 am
First of all, how do you run the VB code? I usually use MS Access. I create a module, then I paste the code in. You may need to fix...
March 8, 2007 at 9:16 am
select Country, count(*) as NoOfMatchesPlayed,
sum(case when MyScore > OppScore then 1 else 0 end) as Win,
sum(case when MyScore < OppScore then 1 else 0 end) as Loss,
sum(case...
March 7, 2007 at 2:35 pm
The only way that I can think of to do this (and I haven't tested it) is to have a second job that runs every five or so minutes to...
March 7, 2007 at 2:26 pm
I would suggest that you post this on a .Net framework or ASP.Net user group.
March 7, 2007 at 9:27 am
The application doesn't need to get input from the user does it? Message box, console application waiting for hit return.
March 6, 2007 at 12:08 pm
Viewing 15 posts - 136 through 150 (of 381 total)