puli_keka Posted February 27, 2015 Author Report Posted February 27, 2015 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
mtkr Posted February 27, 2015 Report Posted February 27, 2015 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?
puli_keka Posted February 27, 2015 Author Report Posted February 27, 2015 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
loveindia Posted February 27, 2015 Report Posted February 27, 2015 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..
loveindia Posted February 27, 2015 Report Posted February 27, 2015 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...
Hyderabad_Nawab Posted February 27, 2015 Report Posted February 27, 2015 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..
loveindia Posted February 27, 2015 Report Posted February 27, 2015 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..
rikki Posted February 27, 2015 Report Posted February 27, 2015 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..
loveindia Posted February 27, 2015 Report Posted February 27, 2015 I bet u have to..that id thoughrofl... 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...
rikki Posted February 27, 2015 Report Posted February 27, 2015 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...
DaleSteyn1 Posted February 27, 2015 Report Posted February 27, 2015 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
loveindia Posted February 27, 2015 Report Posted February 27, 2015 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..
rikki Posted February 27, 2015 Report Posted February 27, 2015 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...
loveindia Posted February 27, 2015 Report Posted February 27, 2015 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..
DaleSteyn1 Posted February 27, 2015 Report Posted February 27, 2015 Paalu taagi line lo raa kid.. endhi nee ego hurt ayndha
Recommended Posts