| | |||||||
|
Welcome to the YD Scuba forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
| Technology: Discuss Using MS query part 2 in the Non-Diving Related Forums forums: Another little gem of a question, still using MS Query. I have a set of transactions - accounting journals hence debits ... |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| How about something along the lines of: Code: SELECT id, ref, IF trans_val < 0 THEN trans_val ELSE null AS debit, IF trans_val > 0 THEN trans_val ELSE null AS credit FROM transactions Cheers/Nic
__________________ Quote:
Don't wrestle with a pig. You'll only get as dirty as the pig & the pig likes it |
| Thread Tools | |
| Display Modes | |
| |
| | ||