puli_keka Posted February 26, 2015 Report Posted February 26, 2015 i have a simple query declare @id int using a select statement select top 1 @id = Id from <table> where <conditions> undi table empty so aa @Id lo empty vasthundi then I am selecting Select somedate from <table> where id = @id ani chesthe response empty string vasthundi but i want NULL ala empty string vachinappudu NULL ela theppinchali .. due to some reasons i cannot join those two queries..
Aryaa Posted February 26, 2015 Report Posted February 26, 2015 Count techukoni 0 vaste NULL ani pettu
rikki Posted February 26, 2015 Report Posted February 26, 2015 select coalesce((Select somedate from <table> where id = @id), NULL)
akkupakshi Posted February 26, 2015 Report Posted February 26, 2015 select coalesce((Select somedate from <table> where id = @id), NULL) +1
loveindia Posted February 26, 2015 Report Posted February 26, 2015 Tamari bondha man... int declare chestey empty string ela vastadi man... ideally em lekapotey null ye vastadi .. née query lo idi oka part r full??
loveindia Posted February 26, 2015 Report Posted February 26, 2015 select coalesce((Select somedate from <table> where id = @id), NULL) Very bad code man... serves the purpose but really bad way to write...
rikki Posted February 26, 2015 Report Posted February 26, 2015 declared integer is not the output read question properly Tamari bondha man... int declare chestey empty string ela vastadi man... ideally em lekapotey null ye vastadi .. née query lo idi oka part r full??
Pichkaari Posted February 26, 2015 Report Posted February 26, 2015 Very bad code man... serves the purpose but really bad way to write... Help chesina kuda .. tidataava man..
puli_keka Posted February 27, 2015 Author Report Posted February 27, 2015 Very bad code man... serves the purpose but really bad way to write... declared integer is not the output read question properly table is new.. em rows levu.. first ID int ni techukuntunna.. malli second query lo aa id use chesthunte column kindha empty naaku NULL kavali
rikki Posted February 27, 2015 Report Posted February 27, 2015 hahaha u know sql? tats the whole purpose of expressions kid Very bad code man... serves the purpose but really bad way to write...
Pichkaari Posted February 27, 2015 Report Posted February 27, 2015 hahaha u know sql? tats the whole purpose of expressions kid Idhi antha teliyakundaane.. 150k earn chesthunadu antunnava man..
rikki Posted February 27, 2015 Report Posted February 27, 2015 my boss earns more than me u ameerpet hostel owner va nuvu Idhi antha teliyakundaane.. 150k earn chesthunadu antunnava man..
puli_keka Posted February 27, 2015 Author Report Posted February 27, 2015 select coalesce((Select somedate from <table> where id = @id), NULL) +1 Tamari bondha man... int declare chestey empty string ela vastadi man... ideally em lekapotey null ye vastadi .. née query lo idi oka part r full?? work aithe ayyindhi , so used COALESCE .. thanks much
Recommended Posts