Skip to content

Does sql parser support MS SQL IF ELSE statements? #271

Answered by lovasoa
bruceus asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like what you need is just

SELECT 'Total CCE ports used' as title, COUNT(*) as description
FROM TetraPorts 
WHERE InUse = 1;

right ?

https://sqlfiddle.com/sql-server/online-compiler?id=9a919ccf-3309-4112-b828-389c4705b0e8

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@bruceus
Comment options

@lovasoa
Comment options

Answer selected by bruceus
@bruceus
Comment options

Comment options

You must be logged in to vote
1 reply
@lovasoa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sql Topic related to SQL, not specific to SQLPage
2 participants