all groups > sql server programming > july 2005 > threads for sunday july 10
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Help with a query
Posted by J Rieggle at 7/10/2005 7:47:26 PM
Hi,
I have a problem with a query.
Select distinct count(*)
from
Products B1,
categoryProducts B2
where
B1.ProductID = B2.ProductID and
B2.CategoryID in (
SELECT categoryID FROM Categories WHERE
Linkage LIKE (SELECT Linkage+'%' FROM Categories WHERE
CategoryID=4... more >>
converting string to integer
Posted by Stephen at 7/10/2005 4:42:14 PM
I have a table where the user enters a coupon number for each record. The
coupon number is usually an integer, however the user sometimes enters a
suffix charater to the coupon number (i..e "M") so the coupon field is a
nvarchar type. Hence the coupon number list might look like this:
567... more >>
Passing several keywords in a string parameter to an SP for IN function
Posted by k.roberts NO[at]SPAM web.de at 7/10/2005 2:15:40 AM
Hi,
How cann I pass more than one Keyword in a parameter for the IN
comparism?
I want to get all records with "ENGLAND" and "WALES" in the KeyWord
field.
.....AND [a].[KeyWord] IN ('ENGLAND','WALES') works fine ...
but AND [a].[KeyWord] IN (@KeyWords) doesn't ...
Thanks for any help
... more >>
query works on one server but not another
Posted by randy at 7/10/2005 2:10:02 AM
I'm looking for direction in figuring out why a query that works on my system
doesn'nt work on another.
SELECT CUSTNO, MODDATE, ACTIVE, WLRFQ, CONTACTTYPE
FROM SSCONTACT_Tall
WHERE (CUSTNO NOT IN
(SELECT CUSTNO
FROM SSCONTACT))
this query works o... more >>
Problems with IX locks on a table
Posted by Veeru at 7/10/2005 12:50:03 AM
Scenario:
1. Create a test table with the following statement
create table test(colA int identity not null, colB varchar(10))
2. Open SQL Server Query Analyzer window and type in the following
which begins a transaction on test table and leaves it open
DECLARE @i int
SET @i=1
WHILE(@i<... more >>
|