Wm Allen Smith
asked on
SQL Query If Statement
Good Day,
I need to write a SQL query that goes something like this:
Select [apples], [oranges], {bananas], [price] from Fruit_Tabletable where
if [price] >0, then [apples] =Yes and oranges= Yes
I need to only show apples and oranges where the cost is grater than zero and have "Yes" appear in the apples and oranges fields .
Please advise.
Thanks,
wasmithpfs
I need to write a SQL query that goes something like this:
Select [apples], [oranges], {bananas], [price] from Fruit_Tabletable where
if [price] >0, then [apples] =Yes and oranges= Yes
I need to only show apples and oranges where the cost is grater than zero and have "Yes" appear in the apples and oranges fields .
Please advise.
Thanks,
wasmithpfs
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Regards,
Wasmithpfs