Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2005, 04:05 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default query related to function

hello
I have created a function but it takes good amount of time
CREATE FUNCTION dbo.fnMusic()
RETURNS TABLE
AS
RETURN

(SELECT dbo.tbl_A.Primary_Key ,tbl_A.Title, tbl_B.price
FROM dbo.tbl_A
LEFT OUTER JOIN dbo.tbl_B ON dbo.tbl_A.Primary_Key = dbo.tbl_B.primary_key)

there are 30,000 records in tbl_A
and 20 lacs records in tbl_B

Please tell me the solution for this i have already created the indexing on all the above mentioned fields.

thanks in advance






Similar Threads
Thread Thread Starter Forum Replies Last Post
database related query dkvaseeta Pro VB Databases 2 February 22nd, 2007 10:59 AM
Repeater Control Related Query param99 ASP.NET 1.0 and 1.1 Professional 1 December 14th, 2006 04:17 AM
Drop Down Evetnt Related Query param99 ASP.NET 1.0 and 1.1 Professional 1 December 4th, 2006 09:57 AM
query related problem Abhinav_jain_mca General .NET 2 September 6th, 2004 02:46 AM
problems with related query apek PHP How-To 5 February 4th, 2004 02:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.