wehre: rebuttments, diversions, dams, nets placed across streams or rivers,
actually kind of like a filter... (or a WHERE).
Arnie Rowland, Ph.D.
Most good judgment comes from experience.
Most experience comes from bad judgment.
top yourself.
- H. Norman Schwarzkopf
"Raymond D'Anjou" <thisisatest@gotyou.com> wrote in message
news:eG%23l8vMFHHA.1356@TK2MSFTNGP06.phx.gbl...
> Or he can use a 'WHERE EXISTS'.
> You also forgot to mention that the 'WHERE' in the second delete is
> spelled 'WEHRE'
> which has a completely different definition.
>
> From Google definition:
> für Gewehre, I. 43. Wehrgeschmeide, III. 4, für Waffenschmuck,
> Waffenrüstung. - Wörter, die in der Dichtersprache erhalten zu werden
> verdienen.
>
> Now if someone can translate that to English...
>
> "Hugo Kornelis" <hugo@perFact.REMOVETHIS.info.INVALID> wrote in message
> news:skkum21jghtpsade9h3h41unbvrcma1586@4ax.com...
>> On Wed, 29 Nov 2006 22:00:07 -0800, Arnie Rowland wrote:
>>
>>>It would be nice to have the table DDL, and perhaps some sample data in
>>>the form of input statements. (See:
http://www.aspfaq.com/5006 )
>>>
>>>In general, (not knowing your column names), something like this:
>>>
>>>DELETE A_Appointment
>>>WHERE A_Appointment.PK = ( SELECT Appointment_FK
>>> FROM AX_Appointment_Entity
>>> GROUP BY Appointment_FK
>>> HAVING Appointment_FK = 1
>>> )
>>>
>>>DELETE AX_Appointment_Entity
>>>WEHRE Appointment_FK = ( SELECT Appointment_FK
>>> FROM AX_Appointment_Entity
>>> GROUP BY Appointment_FK
>>> HAVING Appointment_FK = 1
>>> )
>>>
>>>
>>>This does NOT delete anything from E_Entity.
>>
>> Hi Arnie,
>>
>> I think you meant to use IN instead of = in those two queries.
>>
>> (Time for another coffee shot??)
>>
>> --
>> Hugo Kornelis, SQL Server MVP
>
>