Solved

Tuple and domain calculus

Posted on 2011-03-06
2
368 Views
Last Modified: 2012-05-11
In these calculus's (databse calculus), how do you deal with if statements?
0
Comment
Question by:JCW2
2 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 500 total points
ID: 35050912
can you give an example?

typically, when you're writing a query and you need to have an "if" on a specific column, there's a function that allows you to do that

in access, you can do iif(<if statement>, <true value>, <false value>)
in sql server, you can do case when <if statement=true> then <do stuff> else <do other stuff> end

etc
0
 

Author Closing Comment

by:JCW2
ID: 35059489
Thank you for your help.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question