Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF(,,) in an SQL Server SQL Statement
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00360347
Message ID:
00361116
Views:
19
< snipped >
>What value should SQL Server return for city? Within this table there will probably be more than one city for each state. VFP picks a value. I don't know of there's any reasoning to the value that's chosen nor would I want to rely on it. SQL Server (and the ANSI standard I believe) take the easy approach and just don't allow it.
>
< snipped >
Mike,
VFP will group all the records togther using the GROUP BY clause and select the value(s) not specified in the clause from the last record that is physically in the table. This can and does lead to numerous problems because some developers don't realize this.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform