jd_boss_hogg
Registered User.
- Local time
- Today, 18:02
- Joined
- Aug 5, 2009
- Messages
- 88
Hi All - i'm not very good at the basic structuring of queries/sql.... i want to check for 2 conditions, and do some maths depending on the condition. So, in my head, i'd just use an AND/OR condition, but it doesn;t work.
I'll not paste the complicated code because i'm looking for an overview of how i should structure it, basically if A is like "this" then select this stuff, or if A like "that" then select other stuff...
Do i need a 'union' query, and if so, how does that work with the conditions ?
I'll not paste the complicated code because i'm looking for an overview of how i should structure it, basically if A is like "this" then select this stuff, or if A like "that" then select other stuff...
Do i need a 'union' query, and if so, how does that work with the conditions ?
Code:
SELECT ([NOTES]*10) AS Chrometime,
FROM [jb-2001]
WHERE ([NOTES],4) Like "THIS")
OR
SELECT ([NOTES]*5) AS Chrometime,
FROM [jb-2001]
WHERE ([NOTES],4) Like "THAT") ;