Viewing 14 posts - 91 through 104 (of 104 total)
Table1
create table usertbl
(
userid int identity(100,1) primary key,
username varchar(50),
parentid int foreign key references usertbl(userid),
product varchar(50),
pValue decimal(7,2)
)
Table2
create table userscore
(
userid int foreign key references usertbl(userid),
score int
)
CREATE TRIGGER updating on usertbl for insert
as
begin
declare...
December 23, 2008 at 10:50 pm
nabajyoti.b (12/23/2008)
well, i tried to find out all the styles
by using below code:
declare @style int
set @style=1
while @style <= 500
begin
print CONVERT(CHAR(100),GETDATE(),@style)
set @style=@style + 1
end
however i did not get 20081223...
December 23, 2008 at 5:44 am
vbandlamudi (12/23/2008)
Correct Answer
Select id,name, sal, cumsal=
(select sum(t1.sal)
from employee_san t1
where t1.id <= t.id)
from employee_san t
This works fine.
But the salary is not ORDERed BY ASC
December 23, 2008 at 4:54 am
Chirag (12/23/2008)
HiI feel you need only one User table. Columns - UserID,Name,ParentUserID.
Whats the logic behind Right & Left. Wont knowing the parent of the user suffice?
Ok I created the...
December 23, 2008 at 4:18 am
Jeff Moden (12/22/2008)
--===== Move just the data we want to a place where we can work on it
SELECT ISNULL(Sal,0) AS Sal,
...
December 23, 2008 at 3:45 am
Jeff Moden (12/22/2008)
--===== Move just the data we want to a place where we can work on it
SELECT ISNULL(Sal,0) AS Sal,
...
December 23, 2008 at 3:38 am
r.hensbergen (12/22/2008)
December 23, 2008 at 3:36 am
Truncate is logged.
Basically you need to find a 3rd party log reader like Lumigent's LogExplorer[/url]
In reality you will probably need to restore the database to before the truncate...
December 9, 2008 at 8:21 am
Roy Ernest (12/9/2008)
December 9, 2008 at 7:54 am
Thanks jones,
But
I am not the member of sysadmin and I think there is no access for me to see all these things.
As said in articel,
"to check the default trace to...
December 9, 2008 at 7:50 am
Jerry Hung (12/4/2008)
It's a never ending journey, but you being here curious on SSC is a good start!Keep working hard at it and enjoy it
Thanks Jerry,
I will try my best...NO...I...
December 4, 2008 at 12:08 pm
Hi,
Thanks for the reply.
Yes it takes a lot of time to become a DBA.
Let my day 1 start from today....
and
What is this PASS?
Thanks
December 4, 2008 at 7:20 am
Also consider the values
1234.56
3456.67
45.67
78.34
0
0
-1234.56
-3456.67
-45.67
-78.34
The SUM of above must be equal to zero.
but at 1st execution it will show 0
next execution it will show -2.71243434E-11
next execution again -2.71243434E-11
next execution 0
like that.
So...
December 2, 2008 at 2:01 pm
Thanks Gila,
Actually these types of result are affecting the production in one or other way.
some batches will be having a query like
WHERE col = '0'
in...
December 2, 2008 at 1:56 pm
Viewing 14 posts - 91 through 104 (of 104 total)