Viewing 3 posts - 31 through 33 (of 33 total)
If U'll Learn to play with Variables U'll learn lot more.
DECLARE @Table NVARCHAR(128)
SELECT @Table =
CASE Condition
WHEN 'Condition 1' THEN 'Table1'
WHEN 'Condition 2' THEN 'Table2'
ELSE 'Table3'
END
EXEC('SELECT...
November 30, 2006 at 2:09 am
Hi,
U can give breath to you will. Simply make a Stored Procedure. I'm giving the smaple query as below...
CREATE PROCEDURE mst_spJoinTableConditionally
@Condition NVARCHAR(2000)
AS
DECLARE @Table NVARCHAR(200)
SELECT @Table = CASE @Condition WHEN...
November 29, 2006 at 5:50 am
Hi jmowery
If there is proper Indexing on working tables then it must improve the performance.
There is Simple concept behind Indexing. Make...
November 29, 2006 at 5:02 am
Viewing 3 posts - 31 through 33 (of 33 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy