Viewing 9 posts - 16 through 24 (of 24 total)
Hi skc,
Thanks, I've copied the desired output of my records above in the post. As per the query, It will give me all the records for a particular
Tid except...
April 18, 2011 at 3:46 am
My Query:
---------------
Select tid, transtype, amt
from GLTbl a
Left outer join DetTblt b on a.transtype=b.transtype
where tid=12345
And transtype not in (Select transtype from gltbl where transtype in('debit','credit')
Group by transtype
Having SUM(Amt)=0)
Order by tid,transtype
April 18, 2011 at 3:08 am
The result should be like:
Id Type Amt
-----------------
101 Cash 100
-- 101 Credit -100
101 Expense 200
-- 101 Debit 100
101 Expense 200
102 Cash 200
102 Credit -50
102 Debit 100
--------------
Could you provide me How...
April 18, 2011 at 2:44 am
Thanks Dave, I tried but didnot work. Even I tried using Row_Number clause but no luck.
April 18, 2011 at 2:42 am
In my SP, I'm trying to delete the No. of rows on the basis of some conditions.
So, that query is acting as recurssive. Is there a way to change that...
March 23, 2009 at 10:32 pm
IN SQL-2000
To disable / enable selective triggers...
ALTER TABLE tableName DISABLE TRIGGER triggername
ALTER TABLE tableName ENABLE TRIGGER triggername
To disable / enable all triggers...
ALTER TABLE tableName DISABLE TRIGGER ALL
ALTER TABLE tableName ENABLE...
January 22, 2009 at 11:58 pm
I tested this & not satisfied the answer. Please provide with an valid example.
April 28, 2008 at 1:11 pm
Hi Brandie
Little doubt, as Functions execute once per row, so How the UDF runs only once in From Clause.
April 28, 2008 at 12:32 pm
When you do 'restore database --> From Device --> File; click the 'ADD' Button-->
Get the FULL UNC path as "\\ComputerName\Shared folder\Backup\abc.Bak" by mapping in the
explore window.
Copy the path &...
April 24, 2008 at 7:16 am
Viewing 9 posts - 16 through 24 (of 24 total)