Viewing 15 posts - 1 through 15 (of 65 total)
You can use NTILE() for the same. Below is the query that you can use on the line table after adding the Actual_Line_Number field:
UPDATE X SET X.Actual_Line_Number = Y.Rank
FROM LINE...
September 16, 2009 at 3:20 am
Hey Nolan,
It was being very difficult for me to guide you toward the lane however, below is the solution for your situation.
create table book(id int identity(1,1), name varchar(20))
create table employee(id...
May 20, 2009 at 12:08 am
also provide the amount of data in both the tables along with the available indexes.
May 19, 2009 at 7:19 am
icampbell (5/19/2009)
A.ref_no= b.ref_no
how do i retrieve the detail of table A which do not appear in table B. The rows which only...
May 19, 2009 at 7:08 am
try sp_who2. it will give you the detailed information about who all are logged into the server and the tasks being performed by them.
November 17, 2008 at 12:41 am
Chandru (10/23/2008)
create table login(name varchar(20),pwd varchar(20));insert into login values('Martin','Test123');
insert into login values('Ricky','test123');
insert into login values('Watson','tesT123');
If such situation is very common, I would suggest you to look in the...
October 23, 2008 at 4:23 am
dva2007 (10/23/2008)
hi,
my query is below:
declare @myfield varchar(20)
declare @mysql nvarchar(100)
declare @myresult varchar(100)
set @myfield='CategoryName'
set @mysql='select ' + @myfield + ' from Categories...
October 23, 2008 at 4:11 am
I just got the error myself. There was a call made to an external procedure with in the proc. This call was also wrapped in the transaction and was covered...
October 6, 2008 at 4:26 am
SQL Server takes as much RAM as it needs and never let go of it, even though that doesn't seem right to me :ermm: but it seems like sql server...
September 30, 2008 at 5:38 am
I am afraid that there is no way out then dynamic SQL. Its not that bad why dont you want to use it?
September 23, 2008 at 6:56 am
b_boy (9/19/2008)
Does anyone know how I can script in T-SQL a result similar to the attached excel template?
I just need a sample, not an actual script to put me in...
September 19, 2008 at 3:47 am
me (9/15/2008)
select * from table...
September 16, 2008 at 12:31 am
please provide the table schema
September 16, 2008 at 12:13 am
anilyadav83 (9/15/2008)
In stored procedure I am unable to write "USE DataBaseName"
Is there any other command?
declare @TargetDB as varchar(100)
declare @DBQry as varchar(100)
select @TargetDB...
September 15, 2008 at 11:53 pm
Viewing 15 posts - 1 through 15 (of 65 total)