Viewing 15 posts - 1,666 through 1,680 (of 2,171 total)
SQL Server will convert the value for you!
Only zero value will be "BIT" zero. All other values (1, -1, 245, 40000) evaluates as "BIT" 1.
April 13, 2007 at 7:10 am
-- Prepare sample data
DECLARE @Appt TABLE (Patient INT, Ser_DT DATETIME,
April 12, 2007 at 11:17 pm
April 12, 2007 at 4:40 pm
-- Prepare sample data
DECLARE @Appt TABLE (Patient INT, Ser_DT DATETIME,
April 12, 2007 at 3:20 pm
You should start a new topic.
But... One way is to use fully qualified names.
April 12, 2007 at 2:24 am
This can be done with 3 or 4 SET operations.
With this, you get all year at once!
SELECT
d.FRSOM_ACCT_KEY,
d.FRSOM_ORG_KEY
April 11, 2007 at 7:29 am
Yes you did provide expected output, but you did not tell what the rules are!
I couldn't see a simple way to figure it out.
Please tell which duplicates to remove and...
April 11, 2007 at 7:13 am
This is wrong on so many levels....
Use this query to get all your expected record AT ONCE!
SELECT
t2.Entry_Z
April 11, 2007 at 5:12 am
INSERT Table3 (Field1, Field2)
SELECT t1.Key, t2.SomeField
FROM Table1 AS t1
INNER JOIN Table2 AS t2 ON t2.Key = t1.Key
April 11, 2007 at 3:52 am
Please post your query/code.
Do you have any [clustered] index on the large table?
April 11, 2007 at 2:53 am
SELECT t1.Key AS Field1, t2.SomeField AS Field2
INTO Table3
FROM Table1 AS t1
INNER JOIN Table2 AS t2 ON t2.Key = t1.Key
April 11, 2007 at 2:53 am
Too bad you not let other people gain from your success...
And yes, there is a DELETE POST button when editing the message.
April 11, 2007 at 1:51 am
exec ('select * into TempTable from sysdatabases')
exec ('select * into ##TempTable from sysdatabases')
If you use single #, the table is not accesible outside the exec statement
April 11, 2007 at 1:14 am
And for SQL Server 2005, you have to drop the underscore
SELECT OBJECT_NAME(@@procid)
April 10, 2007 at 11:40 pm
NO!
For SQL Server 2005 there are more efficient methods. Read about the ROW_NUMBER() function.
SELECT * FROM (
SELECT *, ROW_NUMBER() OVER (PARTITION BY ... ORDER BY ... 
April 10, 2007 at 11:38 pm
Viewing 15 posts - 1,666 through 1,680 (of 2,171 total)