Viewing 15 posts - 1,006 through 1,020 (of 1,229 total)
You're checking the first six characters are digits, so why not:
WHERE LEFT(RCD.Variable4, 4) BETWEEN '5011' AND '7999'
which can potentially make use of an index?
December 6, 2010 at 12:49 pm
The two queries in your first post are functionally identical and show an indirect relationship between bill_info and accounts_transaction. Whilst the joins between the two tables are known, the cardinality...
December 5, 2010 at 7:10 am
dlam 18073 (11/21/2010)
I did a test on two different sp (test with 3400 rows),
one is my sp, processing time 46 sec
another one from tommyh, processing...
December 4, 2010 at 2:07 pm
ngreene (12/3/2010)
insert into tblClientList (clientNumber)
SELECT a.clientNumber
from tblOrder...
December 4, 2010 at 2:02 pm
CirquedeSQLeil (11/26/2010)
da-zero (11/26/2010)
November 26, 2010 at 12:02 pm
An entity-attribute-value system?
Your original post asked how best to store a value which could be either an integer or a character value in one or more columns of a table....
November 26, 2010 at 6:44 am
michel.zdw (11/26/2010)
i need to store a value that can be integer or string (depends on a key value)
is it better to use 2 columns or to use 1 column (varchar)...
November 26, 2010 at 3:14 am
Iulian -207023 (11/23/2010)
I have a big table 50MB containing just 1000 records ( a few small fields each record).
On indexes I have one primary key and one clustered index, which...
November 23, 2010 at 3:52 pm
stan-617410 (11/21/2010)
Thank you for your questions.
There are two tables - Tenant and Buildings.
The ID in Tenant = ID_U in Buildings.
If a tentant returns they will have...
November 23, 2010 at 2:38 pm
<<We get the file full of INSERT UPDATE and DELETE>>
Is this a transit file? If not, what is it? Can you post a few lines?
November 23, 2010 at 2:11 pm
In this particular case, the answer is straightforward:
Before
EXEC(@SQL)
Put PRINT @sql
and see what it returns 😉
November 23, 2010 at 2:07 pm
Cheryl McLaughlin-385812 (11/23/2010)
To Drew:
However, the correct name is not pulling up. The original code modified using everyone's input:
SELECT glbank.check_num
, glbank.ref_num
, glbank.check_amt
, glbank.check_date
,...
November 23, 2010 at 1:34 pm
Cheryl - try both options (conditional join or two left joins) and compare performance, preferably on a live or scaled-up test db. Usually the two (and only two, it usually...
November 23, 2010 at 12:27 pm
MonsterRocks (11/22/2010)
Chris.. the links in ur signature u want me to check out?
@MonsterRocks - Sorry mate, got tied up, but Wayne jumped in with solution.
@Wayne - cheers mate, sorted.
November 22, 2010 at 12:28 pm
Viewing 15 posts - 1,006 through 1,020 (of 1,229 total)