Click here to Skip to main content
11,410,584 members (61,727 online)
   

Database

 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios. PinmemberSQL Ed10-Oct-12 14:15 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios. Pinmembermark merrens10-Oct-12 14:28 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios. PinmemberJörgen Andersson10-Oct-12 23:26 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios. PinmemberShameel11-Oct-12 1:27 
GeneralRe: tried to use a case when inside a WHERE clause but did not work. Need more efficient way to cover all IF ELSE scenarios. PinmemberEddy Vluggen11-Oct-12 1:35 
QuestionHow to retrieve client IP address from sql server database PinmemberTridip Bhattacharjee9-Oct-12 21:53 
AnswerRe: How to retrieve client IP address from sql server database Pinmemberdigimanus10-Oct-12 2:20 
QuestionMySQL code- Problems with cade when inside a WHERE clause PinmemberSQL Ed9-Oct-12 12:31 
AnswerRe: MySQL code- Problems with cade when inside a WHERE clause PinmemberJörgen Andersson9-Oct-12 12:47 
QuestionDatabase connectivity failure when using ODBC Pinmemberbharath_ben9-Oct-12 4:16 
AnswerRe: Database connectivity failure when using ODBC PinmemberJochen Arndt9-Oct-12 4:43 
GeneralRe: Database connectivity failure when using ODBC Pinmemberbharath_ben28-Nov-12 4:46 
QuestionSQL counting PinmemberQazzy648-Oct-12 9:27 
AnswerRe: SQL counting Pinmemberscottgp8-Oct-12 10: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 11:07 
QuestionRe: SQL counting PinmemberEddy Vluggen8-Oct-12 14:25 
AnswerRe: SQL counting PinmemberQazzy648-Oct-12 18:35 
GeneralRe: SQL counting PinmemberEddy Vluggen9-Oct-12 6:08 
GeneralRe: SQL counting PinmemberQazzy649-Oct-12 8:16 
QuestionProblem in Import XML File From SSIS [modified] Pinmembermos_tafino@hotmail.com8-Oct-12 2:31 
AnswerRe: Problem in Import XML File From SSIS Pinmembermos_tafino@hotmail.com8-Oct-12 20:52 
QuestionProblem with MySQL stored procedure Pinmemberjrahma7-Oct-12 8:27 
AnswerRe: Problem with MySQL stored procedure PinmemberJörgen Andersson7-Oct-12 11:43 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma7-Oct-12 11:52 
AnswerRe: Problem with MySQL stored procedure PinmemberEddy Vluggen8-Oct-12 1:51 
AnswerRe: Problem with MySQL stored procedure PinmemberBernhard Hiller7-Oct-12 23:26 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma8-Oct-12 0:31 
AnswerRe: Problem with MySQL stored procedure PinmemberShameel8-Oct-12 2:56 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma8-Oct-12 7:54 
GeneralRe: Problem with MySQL stored procedure Pinmemberjrahma8-Oct-12 8:11 
Questionterminating SqlConnection.Open() call while connecting PinmemberDan_K4-Oct-12 8:43 
AnswerRe: terminating SqlConnection.Open() call while connecting [modified] PinmemberShameel4-Oct-12 9:46 
AnswerRe: terminating SqlConnection.Open() call while connecting PinmemberEddy Vluggen4-Oct-12 10:10 
GeneralRe: terminating SqlConnection.Open() call while connecting PinmemberDan_K5-Oct-12 5:37 
GeneralRe: terminating SqlConnection.Open() call while connecting PinmemberEddy Vluggen5-Oct-12 5:57 
QuestionSQL 2000 to 2008R2 Query Performance Pinmembercjb1104-Oct-12 6:13 
AnswerRe: SQL 2000 to 2008R2 Query Performance PinmemberShameel4-Oct-12 10:01 
GeneralRe: SQL 2000 to 2008R2 Query Performance Pinmembercjb1104-Oct-12 23:30 
AnswerExecution plan PinmemberDavid Mujica4-Oct-12 11:25 
GeneralRe: Execution plan Pinmembercjb1104-Oct-12 21:58 
GeneralRe: Execution plan PinmemberDavid Mujica8-Oct-12 9:54 
GeneralRe: Execution plan Pinmembercjb1109-Oct-12 0:41 
GeneralRe: Execution plan PinmemberDavid Mujica9-Oct-12 4:12 
GeneralRe: Execution plan Pinmembercjb1109-Oct-12 5:34 
GeneralHigh CPU PinmemberDavid Mujica9-Oct-12 10:13 
GeneralRe: High CPU Pinmembercjb11010-Oct-12 22:30 
GeneralRe: High CPU Pinmembercjb11011-Oct-12 0:15 
QuestionMySQL Server timestamp changed! Pinmemberjrahma2-Oct-12 22:53 
AnswerRe: MySQL Server timestamp changed! PinmemberShameel3-Oct-12 5:05 
QuestionConnection String for Ms access 2010 to Windows 7 64 Bit PinmemberSatyam Tripathi2-Oct-12 22:33 

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
Web04 | 2.8.150414.5 | Last Updated 24 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid