|
Posted by Hugo Kornelis on 10/02/71 11:48
On 24 May 2006 06:23:58 -0700, jazpar wrote:
(snip)
>The statement below works fine if I have stated a budgetmodel in table
>Admin.
>But if no budetmodel stated in table Admin, I want the statement to
>select every ledgerbudget with active = 1 and allocatemethod = 0
>Could anyone help me with this.
(snip)
Hi jazpar,
Try changing the join from INNER JOIN to LEFT OUTER JOIN.
If that doesn't do what you need, post table structure (as CREATE TABLE
statements, including constraints, properties and indexes), sample data
(as INSERT statements) and expected results. See www.aspfaq.com/5006
--
Hugo Kornelis, SQL Server MVP
Navigation:
[Reply to this message]
|