Viewing 15 posts - 2,881 through 2,895 (of 3,543 total)
Does the table have a unique id? If so then
select a.*
from tablea a
where a.[uniqueid] in
(select top 20 percent [uniqueid]
from tablea
where...
December 15, 2003 at 9:47 am
bcp each select into different file and then concatenate files.
or
If all the selects have same columns then use union.
or
Concatenate each column (converting to char/narchar if necessary) into single column with...
December 15, 2003 at 9:13 am
Check your data (dbo.Progress_Notes.Date_) the lowest date allowed (SQL7) is '1753-01-01'. Subtracting from a date that produces a value less than this will cause the error.
December 12, 2003 at 6:12 am
quote:
It said that the first 8 lines are used for determining whether the column will be imported as char or float....
December 12, 2003 at 2:18 am
Something like this was mentioned in another thread. It seems that if you use Excel import in DTS, Excel will not convert char and numeric in same column, if it...
December 11, 2003 at 6:57 am
quote:
but if you put a single quote before the numeric value, Excel will automatically treat it as text
December 11, 2003 at 5:59 am
Either
a) Install email client (Outlook 2000 or greater), create profile (under account running sql server) that uses a mailbox on exchange, set up sqlmail to use profile, use xp_sendmail to...
December 10, 2003 at 6:16 am
Sqlmail will only work with mapi profile and you need email client installed (Outlook 2000 or greater) although I believe SQL2000 SP3 allows the use of Outlook Express. Otherwise you...
December 9, 2003 at 6:52 am
Agree with Frank.
(Wow did I really say that )
But if you do want to put the results in another table then
INSERT...
December 9, 2003 at 6:27 am
quote:
The outer join should be faster than the Not Exists
Hmmm, interesting. I thought...
December 9, 2003 at 6:08 am
quote:
Am I wrong or are you much older than me
Age is relative my...
December 5, 2003 at 8:08 am
SELECT s.id, s.item,
SUM(ISNULL(e.in,0)) as 'total_in',
SUM(ISNULL(e.out,0)) as 'total_out',
SUM(ISNULL(e.in,0)-ISNULL(e.out,0)) as 'total_stock'
FROM stock s
LEFT OUTER JOIN event e
ON s.id = e.item_id
GROUP BY...
December 5, 2003 at 8:05 am
Congrats and well done Frank, you sentimental sycophantic old fool.
quote:
Now, can a moderator please...
December 5, 2003 at 7:57 am
quote:
From OP's code, it doesn't appear that Cust is in the primary key, so perhaps that shouldn't be in the join.
December 5, 2003 at 7:43 am
I would use and IF statement on CASESETTLED to decide which table to join to TBLCASE.
December 5, 2003 at 7:25 am
Viewing 15 posts - 2,881 through 2,895 (of 3,543 total)