Click here to Skip to main content
       

Database

 
AnswerRe: How to retrieve client IP address from sql server database Pinmemberdigimanus10-Oct-12 1:20 
QuestionMySQL code- Problems with cade when inside a WHERE clause PinmemberSQL Ed9-Oct-12 11:31 
AnswerRe: MySQL code- Problems with cade when inside a WHERE clause PinmemberJörgen Andersson9-Oct-12 11:47 
QuestionDatabase connectivity failure when using ODBC Pinmemberbharath_ben9-Oct-12 3:16 
AnswerRe: Database connectivity failure when using ODBC PinmemberJochen Arndt9-Oct-12 3:43 
GeneralRe: Database connectivity failure when using ODBC Pinmemberbharath_ben28-Nov-12 3:46 
QuestionSQL counting PinmemberQazzy648-Oct-12 8:27 
AnswerRe: SQL counting Pinmemberscottgp8-Oct-12 9:33 
You could turn the counts into separate columns:
select SUM (
CASE
WHEN ID = '-999' THEN 1
ELSE 0
END)
AS ID999_count,
SUM (
CASE
WHEN ID <> '-999' THEN 1
ELSE 0
END)
AS nonID999_count
from table_A
 
Scott
GeneralRe: SQL counting PinmemberQazzy648-Oct-12 10:07 
QuestionRe: SQL counting PinmemberEddy Vluggen8-Oct-12 13:25 
AnswerRe: SQL counting PinmemberQazzy648-Oct-12 17:35 
GeneralRe: SQL counting PinmemberEddy Vluggen9-Oct-12 5:08 
GeneralRe: SQL counting PinmemberQazzy649-Oct-12 7:16 
QuestionProblem in Import XML File From SSIS [modified] Pinmembermos_tafino@hotmail.com8-Oct-12 1:31 
AnswerRe: Problem in Import XML File From SSIS Pinmembermos_tafino@hotmail.com8-Oct-12 19:52 
QuestionProblem with MySQL stored procedure Pinmemberjrahma7-Oct-12 7:27 
AnswerRe: Problem with MySQL stored procedure PinmemberJörgen Andersson7-Oct-12 10:43 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma7-Oct-12 10:52 
AnswerRe: Problem with MySQL stored procedure PinmemberEddy Vluggen8-Oct-12 0:51 
AnswerRe: Problem with MySQL stored procedure PinmemberBernhard Hiller7-Oct-12 22:26 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma7-Oct-12 23:31 
AnswerRe: Problem with MySQL stored procedure PinmemberShameel8-Oct-12 1:56 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma8-Oct-12 6:54 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma8-Oct-12 7:11 
Questionterminating SqlConnection.Open() call while connecting PinmemberDan_K4-Oct-12 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 15 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid