Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anders Altberg
  Where is Anders Altberg?
 Uppsala
 Sweden
 Anders Altberg
 To: Nadeem Shah
  Where is Nadeem Shah?
 Rawalpindi
 Pakistan
 Nadeem Shah
 Tags
Subject: RE: SQL query problem
Thread ID: 268724 Message ID: 268766 # Views: 31 # Ratings: 2
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Wednesday, July 14, 2010 1:00:13 PM         
   


> > Yeh it will. becaz ur first result is 0-0 so its better u return value '0 - 0' OR Wrap in CAST() FUNCTION
> >
> >
> > CAST(convert(stkstatus.sale, products.unit) AS CHAR(10)) As qtypack
> >
> > Anil
> >
> > My Blog
>
>
> Thanks Anil.
>
> Cast function is working properly.
>
> Nadeem Iqbal

Calling a UDF (UserDefined Function) is quite slow in SQL queries; you should put those different search conditions and result strings in an ICASE() structure instead.

-Anders

ENTIRE THREAD

SQL query problem Posted by Nadeem Iqbal @ 7/14/2010 9:34:01 AM
RE: SQL query problem Posted by Martin Krivka @ 7/14/2010 9:36:41 AM
RE: SQL query problem Posted by Nadeem Iqbal @ 7/14/2010 9:47:03 AM
RE: SQL query problem Posted by Anil Sharma @ 7/14/2010 9:42:34 AM
RE: SQL query problem Posted by Nadeem Iqbal @ 7/14/2010 9:47:53 AM
RE: SQL query problem Posted by Anders Altberg @ 7/14/2010 1:00:13 PM
RE: SQL query problem Posted by Samir H. @ 7/14/2010 4:02:02 PM
RE: SQL query problem Posted by Anders Altberg @ 7/15/2010 3:06:12 PM