Jump to content

Sql Guys Ravali


Recommended Posts

Posted

use isnull function

first edo NULLIF ani try chesa adhi thannidhi..  ee null scenario only for the day 1 , from day 2 some date will be there in the table.. ee COALESCE worked inka

  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

  • loveindia

    19

  • rikki

    13

  • lolbob_fan

    7

  • puli_keka

    5

Top Posters In This Topic

Posted

first edo NULLIF ani try chesa adhi thannidhi..  ee null scenario only for the day 1 , from day 2 some date will be there in the table.. ee COALESCE worked inka

 

 

mari day 2 roje query raasukovachu gaa.. Y writing on day 1 n experiencing errors n problms?

Posted

mari day 2 roje query raasukovachu gaa.. Y writing on day 1 n experiencing errors n problms?

 

maa manager lite, but manager manager unnadu, vaadu vinte naa G paguludhi.. day 1 table empty badulu i can give a seed script to insert one record with 1753-01-01  but aa vishayam vaadiki telisthe class padthadi naaku

Posted

hahaha u know sql? tats the whole purpose of expressions kid

Yes man, I am a kid. So trying to correct ur big mistake.. so exactly tell me what will your expression based high level query will return if there is more than . One date, even though with a coalesce.. can't laugh more if you ever thought about that case before you answered..
Posted

If I were you I would write it based of
if not exists (Select 1 from table where id = @id)
Select null
Else
My actual query here..

Sorry again to donnie, sql champ...

Posted

If I were you I would write it based of
if not exists (Select 1 from table where id = @id)
Select null
Else
My actual query here..

sorry again to donnie, sql champ...

Lol..sunil3.gif

Posted

first edo NULLIF ani try chesa adhi thannidhi.. ee null scenario only for the day 1 , from day 2 some date will be there in the table.. ee COALESCE worked inka

Nullif gives you null if input1 and input2 are equal man... coalesce will give first non null value in a series of values..
Posted

I bet u have to..that id though

Yes man, I am a kid. So trying to correct ur big mistake.. so exactly tell me what will your expression based high level query will return if there is more than . One date, even though with a coalesce.. can't laugh more if you ever thought about that case before you answered..

 

Posted

I bet u have to..that id though

rofl... so one Id will have only one date.. was it ever mentioned or designed to be that way... when you write something , you have to encounter for everything not just today's need... sorry again sql champ man...
Posted

ts use something like below this is simple and perfect

If I were you I would write it based of
if not exists (Select 1 from table where id = @id)
Select null
Else
My actual query here..

sorry again to donnie, sql champ...

 

Posted

ts use something like below this is simple and perfect

dude purpose serve avthundhi ne code as loveindia said not good way of coding..loveindia paina mention chesindhe mind loki osthundhi regular developer ki .just my opinion 

Posted

ts use something like below this is simple and perfect

You couldn't even take a suggestion then y do u even want to show sarcasm man..
Posted

never imagined i would talk to someone with such a sheer brilliance but tats not how u deal in the beginning

rofl... so one Id will have only one date.. was it ever mentioned or designed to be that way... when you write something , you have to encounter for everything not just today's need... sorry again sql champ man...

 

 

Posted

dude purpose serve avthundhi ne code as loveindia said not good way of coding..loveindia paina mention chesindhe mind loki osthundhi regular developer ki .just my opinion


Paalu taagi line lo raa kid..
×
×
  • Create New...