Jump to content

Sql Help........


Recommended Posts

Posted

Count stetement lo Case statement vadali case statement lo 3 conditions unnayi and oka cont vale undhi so syntax ela rayali .nenu koni try chesanu kani error vasthondhi................... $s@d $s@d

Posted

[font="courier"][size="2"]Online Choosa Bayya. Hope this helps:

select count(case when checked = 0 then messageFromID else NULL end) as OutboundMessages_UnChecked,count(case when checked = 1 then messageFromID else NULL end) as OutboundMessages_checked,
count(messageFromID) as OutboundMessages_total
FROM tblMessage
WHERE messageFromID = 1000[/size][/font]

Posted

[quote name='TITANIC' timestamp='1343330113' post='1302205465']
Count stetement lo Case statement vadali case statement lo 3 conditions unnayi and oka cont vale undhi so syntax ela rayali .nenu koni try chesanu kani error vasthondhi................... $s@d $s@d
[/quote]
inner query vadithe better unless huge data ayyithe thappa

Give more details

Posted

inka nayam TiTANIC sequel Anukunna...!!! kaaju

Posted

select count(case when condition then ' ' when condition then ' ' else ' ' end) from

Posted

COUNT( case when DETAIL_POSITION IS NULL then 1 else 0 END
when NVL(A.sample_drop_qty,0) <> 0 then 1 else 0 END
when (PROMO_DROP_QTY IS NULL OR PROMO_DROP_QTY = 0 ) then 1 else 0 END
A.CALL_HEADER_ID) AS CALL_CNT



idhi bhayya asalu query........

Posted

HELP PLS.........

Posted

[quote name='Vivian_afdb' timestamp='1343334248' post='1302205839']
lttt
[/quote]
endi neeedi sql aa?

Posted

[quote name='badboy7' timestamp='1343334312' post='1302205847']
endi neeedi sql aa?
[/quote]


Helping titanic

Posted

[quote name='TITANIC' timestamp='1343330623' post='1302205511']
COUNT( case when DETAIL_POSITION IS NULL then 1 else 0 [color=#FF0000]END[/color]
when NVL(A.sample_drop_qty,0) <> 0 then 1 else 0 END
when (PROMO_DROP_QTY IS NULL OR PROMO_DROP_QTY = 0 ) then 1 else 0 END
A.CALL_HEADER_ID) AS CALL_CNT



idhi bhayya asalu query........
[/quote]
end anedi last lo ravali kada nuventi prati daniki petav

×
×
  • Create New...