all groups > sql server programming > january 2006 > threads for saturday january 28
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
Adv. T-SQL: Finding closest match across multiple columns
Posted by Todd Brooks at 1/28/2006 5:31:33 PM
Without resorting to OLAP, I would like a way to query a table of multiple
columns to find a match within a specified tolerance level. For example, if
I have a table like below:
CREATE TABLE MyTable (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[Col1] [int] NOT NULL ,
[Col2] [int] N... more >>
Looping
Posted by EdB at 1/28/2006 4:29:29 PM
Is there any way to do a loop in a stored procedure?
I have a "ripple effect" delete I need to and appearantly you can't do a
join in a delete statement.
A->B->C->D
Table B is relationally tied to A
Table C is relationally tied to B
Table D is relationally tied to C
If I delete a rec... more >>
FIND OUT IT IS A NUMBER OR STRINg
Posted by Savas Ates at 1/28/2006 4:00:21 PM
I have a column with varchar type..
It has some records like this...
isbuluyorum
11222
a1285
12r23
How can i find out it is a number or string ?
... more >>
transfer data from remote sql server 2000 to local sql server 2005
Posted by Steve_at_BF at 1/28/2006 12:11:28 PM
My objective is to transfer data from a table in a remote sql server 2000 to
a table in a local sql server 2005.
Any relatively easy way would be OK. It is OK if it is a manual method
because I will not do it very often, just when upgrading to a new version of
SQL server.
I prefer a trouble... more >>
Tuning Wizard Quits Spontaneously
Posted by querylous at 1/28/2006 11:56:04 AM
Hi- I am trying to use ITW on my DB. I'd call it moderately sized; few
hundred tables, maybe 100 indexes. DB size is 7GB. I ran a profiler trace
(index tuning template) and generated 1700 lines of queries. Then I try to
apply tuning wizard. I uncheck limit queries to 200, and I select all tabl... more >>
enforce update statement order
Posted by éric at 1/28/2006 4:53:51 AM
I have a table with animals
in the update statement I have a self join on this table where one animal is
joined to itself (by father_id = animal_id)
the statement updates a field based on a value obtained from the father's
record.
I want to enforce in the statement that the oldest animlas a... more >>
COUNT with conditions
Posted by Gérard Leclercq at 1/28/2006 12:00:00 AM
SELECT rankingSong,
count(rankingPosition) as rankingWeeks,
max(rankingPosition) as rankingHighest
count(If rankingPosition=1)as rankingWeeksOnTop,
FROM tblPositions GROUP BY rankingSong
Can i add conditions to COUNT, something like
count(If rankingPosition=1)as rankingWeeksOnTop,
GL.... more >>
SUM
Posted by Gérard Leclercq at 1/28/2006 12:00:00 AM
Hi everybody,
We keep a hit charts in a database. On the end of the we make a Top 100. So
i need to calculate how many points a song have. This is done bu multiply
the rankingPosition by a number.
Our chart counts 30 entries
Problem is that the nr
1 wins 30 point
2 wins 29 point
....
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to perform multi-namespace?
Posted by Frank Lee at 1/28/2006 12:00:00 AM
I would like to arrange a table into a multi-namespace, for example, to be
db.FM.Accounting.JournalTable. How to do so?
The only way I got is db.FM_Accounting.JournalTable, anyway else?
Frank, using sql2005dev
... more >>
|