Jump to content

Recommended Posts

Posted

this was the same argument that came up last week with an architect..I defended it saying both are same performance(and its true they are same at least it is justified based on the execution plan) but it is advisable because its more clear to the second eye what the intention is and sometimes not in works weirdly based on the column property..grammar thapul unte kshminchu asal ardam lekunte marninchu

 

grammar tappul vethikentha matter ledu le mayya naa daggara,,,,,,, cheers  photo-thumb-29519.jpg?_r=1366161420

  • Replies 67
  • Created
  • Last Reply

Top Posters In This Topic

  • tejak123

    16

  • puli_keka

    12

  • JollyBoy

    11

  • SUbba LIngam

    10

Popular Days

Top Posters In This Topic

Posted
select a.* from table a where LENGTH(REPLACE(TRANSLATE(a.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) > 0 and not exists ( select 'x' from table b where a.user=b.user and
 LENGTH(REPLACE(TRANSLATE(b.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) <= 0 )
 
 
idi try chesi cheppu vay, maa maanana memu kottinchukuntunnam kani nuvvu matram em cheppatle
Posted
select a.* from table a where LENGTH(REPLACE(TRANSLATE(a.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) <= 0 and exists 
 ( select 'x' from table b where a.user=b.user and
 LENGTH(REPLACE(TRANSLATE(b.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) > 0 )
.//
 
 
Chesthunna bhaiya.. i am 100 times more tensed.. first job bhaiya.. koppadaku
Posted

edhi correct ye kada va its working I tried

 

SELECT * FROM UserProduct WHERE PRODUCT NOT LIKE '%[0-9]%'

correste...aithe this works....

 

 

select  distinct  USER  from table_name

where  PRODUCT_BOUGHT_CATEGORY  not like   '%[0-9]%' 

 

Posted

 

select a.* from table a where LENGTH(REPLACE(TRANSLATE(a.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) <= 0 and exists 
 ( select 'x' from table b where a.user=b.user and
 LENGTH(REPLACE(TRANSLATE(b.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) > 0 )
.//
 
 
Chesthunna bhaiya.. i am 100 times more tensed.. first job bhaiya.. koppadaku

 

 

kopam endi va.. em using SQL ki

Posted

joke ga ana ne gussa kaku gsb12.gif

grammar tappul vethikentha matter ledu le mayya naa daggara,,,,,,, cheers  photo-thumb-29519.jpg?_r=1366161420

 

Posted

bujja TS  nuvvu HDInsight annav kada.. SQl azure using aa

Posted

annay nenu sarigga substitute cheyyalekunna values..

 

select a.* from table a where LENGTH(REPLACE(TRANSLATE(a.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) <= 0 and exists 
 ( select 'x' from table b where a.user=b.user and
 LENGTH(REPLACE(TRANSLATE(b.PRODUCT_BOUGHT_CATEGORY,
’0123456789′, ‘a’), ‘a’, NULL)) > 0 )
.//
 
 
Chesthunna bhaiya.. i am 100 times more tensed.. first job bhaiya.. koppadaku

 

Posted

bujja TS  nuvvu HDInsight annav kada.. SQl azure using aa.//

 

 

Yes.. :)

Posted

error vasthundhi bhaiya

 

user anedhi nee column name aithe   [USER]  ivvu ..user anedhi reserved keyword..  error emi vasthundo vey ikkada

Posted
SELECT DISTINCT [USER]
FROM Products
WHERE [USER] NOT IN (
        SELECT DISTINCT [USER]
        FROM Products
        WHERE PRODUCT_BOUGHT_CATEGORY LIKE '%[0-9]%'
        )

idhi work aithe we can see performance improvements.. 

Posted

cannot recognise input near "select"  "from " in expression ani vasthundhi

Posted
DECLARE @t TABLE (userid CHAR(1),prod_category VARCHAR(15))
INSERT @t
SELECT 'A','YUI'
UNION ALL
SELECT 'B','JHI'
UNION ALL
SELECT 'C','WER'
UNION ALL
SELECT 'E','123'
UNION ALL
SELECT 'A','456'
UNION ALL
SELECT 'C','DFG'
UNION ALL
SELECT 'B','CFT'
UNION ALL
SELECT 'E','365'
UNION ALL
SELECT 'S','ASD'
UNION ALL
SELECT 'H','HJK'
UNION ALL
SELECT 'E','ASD'
 
 
SELECT DISTINCT userid FROM @t
WHERE userid NOT IN(
SELECT DISTINCT userid FROM @t
WHERE ISNUMERIC(prod_category)=1
)
AND ISNUMERIC(prod_category)!=1
×
×
  • Create New...