Viewing 15 posts - 61 through 75 (of 87 total)
At this time, just "Insert".
INSERT INTO OrderReceived
(OrderNumber,
DateReceived)
SELECT OrderNumber, min(DateReceived) FROM OrderDetail
GROUP BY OrderNumber
This works fine!!! thanks.
But if you can provide sql for doing 'both, inserting where not already...
February 2, 2006 at 1:24 pm
Yes, I want to update the OrderReceived table from the OrderDetail table.
I need one record each for the Order Nmber with the earliest Received Date.
Your insert code only returns "One"...
February 2, 2006 at 12:54 pm
I think I found my anwser:
INSERT INTO tblCatalog ( Product_ID, img )
SELECT Product_Id, rtrim(Pattern) + '-' + rtrim(Color) + '.jpg' as img
FROM dbo.Product_Dimension
May 20, 2005 at 10:32 am
great, that works just fine...thanks..
now the img has the following data:
"FSP -01 .jpg"
I need the data to be "FSP-01.jpg"
May 20, 2005 at 10:29 am
Thanks for the feedback...being a newbie, can you provide the steps to check for runaway statements. I use task managar to view processes but how to check runaway statements....also how...
May 4, 2005 at 10:34 am
I can ping using the name; the server is not in a DMZ....When I use the cmd 'telnet servername 1433', could not open connection to host using port
April 22, 2005 at 10:37 am
Thanks for everyone's feedback...hopefully the new yukon DTS will be able to replace my current ETL software....
March 11, 2005 at 8:59 am
Thanks to everyone help. Have a nice holiday!
December 21, 2004 at 3:28 pm
Thanks again for that script information about the datetime stamp!!
By the way, how often should master and msdb be backed up; I currently back up our User Databases once a...
November 17, 2004 at 3:02 pm
Thanks for all the information!
I was trying to use a statement that I can use on an AS400:
select * from cptipdta/seams where date(ctime)='2004-05-17'
but that does not work on a SQL...
August 4, 2004 at 8:13 am
When running the wizard to create the target table, the primary key contraint goes away.
In the prompt "Specify Table Copy or Query", three options are available:
1. Copy Tables and views...
July 22, 2004 at 7:31 am
Yes, I am using the wizard. Initially, the target table does not exits.
Once the target table is created, I delete the records and add the keys.
Then I use the wizard...
July 21, 2004 at 11:33 am
Hi, Chris...
You had already provided the sql statement:
Use master
go
exec sp_kill @dbname='dbname'
Use master
go
alter database dbname
set SINGLE_USER
But when I run it, I get:
Could not find stored procedure 'sp_kill'.
What is the...
June 17, 2004 at 11:22 am
Hi Chris,
Please help me one more time, can you please provide the script for "sp_kill" as I think it is a User Procedure?
Thanks, Richard
June 16, 2004 at 2:53 pm
Viewing 15 posts - 61 through 75 (of 87 total)